Last night, being too tired, I wrote this strange line:
::TerminateThread(::TerminateThread, 0);
To my surprise, the compiler does not complain (it even starts ...)
Since TerminateThread () is defined as
BOOL WINAPI TerminateThread(HANDLE hThread, DWORD dwExitCode);
I am not sure why I can compile it.
Any explanation?
c ++ compilation visual-studio-2008 winapi
Lior kogan
source share