The prototype of GetExitCodeThre ad is like this -
GetExitCodeThre ad(
__in HANDLE hThread,
__out LPDWORD lpExitCode
);
=============== ==============
why we put &dwExitCod in the parameter? like -
DWORD dwExitCode;
GetExitCodeThre ad( 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.
GetExitCodeThre ad(
__in HANDLE hThread,
__out LPDWORD lpExitCode
);
=============== ==============
why we put &dwExitCod in the parameter? like -
DWORD dwExitCode;
GetExitCodeThre ad( 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.
Comment