![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Location: Portland, OR
Posts: 12
Rep Power: 0
![]() |
GetProcessImageFileName() and "\Device\HarddiskVolume1"
Hi everyone:
I seem to have an issue with GetProcessImageFileName() function on my Windows XP. It returns file path that looks like this: "\Device\HarddiskVolume1\Windows\system32\notepad.exe" But when I try to open this file I get an error "ERROR_PATH_NOT_FOUND" -- what is this "\Device\HarddiskVolume1" part????? Anybody know -- please help? |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 915
Rep Power: 4
![]() |
Try using GetModuleFileNameEx instead.
You can pass NULL as the module handle (second parameter) and it gives the top level module. GetModuleFileNameEx(hProcess, NULL, name, sizeof name); |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Location: Portland, OR
Posts: 12
Rep Power: 0
![]() |
Thanks, I'll try...
I was also able to locate that this is a "symbolic-link" and the closest API to decode it could be ZwQuerySymbolicLinkObject() function from DDK. Any thoughts on it? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|