return FALSE ;
InitializeObjectAttributes(&ObjectAttributes,0,OBJ_CASE_INSENSITIVE|OBJ_KER NEL_HANDLE,0,0);
if (status!=STATUS_INFO_LENGTH_MISMATCH)
return FALSE;
bufferLength = returnedLength - sizeof(UNICODE_STRING); buffer=ExAllocatePoolWithTag(PagedPool,returnedLength,'ipgD'); if (buffer==NULL)
return FALSE;
status=ZwQueryInformationProcess(hProcess,ProcessImageFileName,buffer,retur nedLength,&returnedLength);
uniNtProcename=(PUNICODE_STRING)buffer;
KdPrint(("Current ProcessImageFileName: Unknow\r\n")) ;
return TRUE ;
}
//得到 NT 式全路径
RtlUnicodeStringToAnsiString (pImageName,uniNtProcename,TRUE);
ExFreePool(buffer);
HANDLE FileHandle; OBJECT_ATTRIBUTES oa; IO_STATUS_BLOCK iosb={0}; UNICODE_STRING uniProcessPath={0}; NTSTATUS status; RtlInitUnicodeString(&uniProcessPath,ProcessPathw);
FILE_ATTRIBUTE_NORMAL,
result = 0; |