W
worlman385
The prototype of GetExitCodeThread is like this -
GetExitCodeThread(
__in HANDLE hThread,
__out LPDWORD lpExitCode
);
=============================
why we put &dwExitCod in the parameter? like -
DWORD dwExitCode;
GetExitCodeThread( hth2, &dwExitCode );
=============================
digging further i found -
typedef DWORD near *PDWORD;
typedef DWORD far *LPDWORD;
=============================
So DWORD* "equals" LPDWORD ???
then above
LPDWORD lpExitCode
should be taking parameter of
DWORD* lpExitCode
(Given DWORD* "equals" LPDWORD) ???
=============================
that's why &dwExitCode ? since &dwExitCode "returns" a pointer to
DWORD.
GetExitCodeThread(
__in HANDLE hThread,
__out LPDWORD lpExitCode
);
=============================
why we put &dwExitCod in the parameter? like -
DWORD dwExitCode;
GetExitCodeThread( hth2, &dwExitCode );
=============================
digging further i found -
typedef DWORD near *PDWORD;
typedef DWORD far *LPDWORD;
=============================
So DWORD* "equals" LPDWORD ???
then above
LPDWORD lpExitCode
should be taking parameter of
DWORD* lpExitCode
(Given DWORD* "equals" LPDWORD) ???
=============================
that's why &dwExitCode ? since &dwExitCode "returns" a pointer to
DWORD.