tags:

views:

51

answers:

0

hi, i want to convert device path to dos path.. actually I want to get process name by process id,so i am using this code... PsLookupProcessByProcessId(processId,&pEProcess); ObOpenObjectByPointer(pEProcess, OBJ_KERNEL_HANDLE, NULL, 0, NULL, KernelMode, &hProcess); ObDereferenceObject (pEProcess);

nts = ZwQueryInformationProcess (hProcess, 27, 0,0, &ulSize);

but it gives path as "\Device\hardDiskVolume1\windows\system32\taskmgr.exe" and i want this as dos format "C:\windows\system32\taskmgr.exe"

please help me.i will appreciate if u can give me a working code. thanks.