Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 7th, 2005, 8:52 PM   #1
dc2000
Newbie
 
Join Date: Jun 2005
Location: Portland, OR
Posts: 12
Rep Power: 0 dc2000 is on a distinguished road
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?
dc2000 is offline   Reply With Quote
Old Jun 8th, 2005, 3:34 AM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 915
Rep Power: 4 The Dark is on a distinguished road
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);
The Dark is offline   Reply With Quote
Old Jun 8th, 2005, 4:06 AM   #3
dc2000
Newbie
 
Join Date: Jun 2005
Location: Portland, OR
Posts: 12
Rep Power: 0 dc2000 is on a distinguished road
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?
dc2000 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC