Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetProcessImageFileName() question

Status
Not open for further replies.

dc2000

Programmer
Jun 7, 2005
48
US
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?
 
Its a symbolic link, so that code can be developed without knowing wherer you are booting from, the system just looks up the symbolic link to find out where \Device\HardDisk1 is.
(Im guessing in case you have multiple OS's on a PC, or boot from Network)

There are some api calls you can use to extract its location, detailed here


K
 
Hey, thanks a lot. Just one question though -- it looks like I need "ntddk.h" and DDK, right? Can I still use it in a non-driver app?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top