A variable declared as HANDLE
can be compared with NULL
in C? Thank you.
Edition:
For example:
HANDLE hProcess = NULL;
status = ZwOpenProcess(&hProcess, PROCESS_DUP_HANDLE, &ob, &Cid);
if (hProcess != NULL)
{
ZwClose(hProcess);
hProcess = NULL;
}
The goal is check if hProcess
is != 0
. Then if i'm checking != NULL
, means the same thing?