|
|
ntStatus = pNTQueryInformationProcess(hProcess,ProcessBasicInformation,&pBasicInfo,sizeof(PROCESS_BASIC_INFORMATION),&ReturnLength);
pBasicInfo is a pointer, so you don't need to pass an address of it.ntStatus = pNTQueryInformationProcess(hProcess,ProcessBasicInformation,pBasicInfo,sizeof(PROCESS_BASIC_INFORMATION),&ReturnLength);
should work