Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than psapi, prefix the name with the module name and a period.
Declare Function GetProcessImageFileName Lib "psapi.dll" (TODO) As TODO
Alternative Managed API:
Do you know one? Please contribute it!
From MSDN: The GetProcessImageFileName function returns the path in device form, rather than drive letters. For example, the file name C:\Winnt\System32\Ctype.nls would look as follows in device form:
This can be used in place of the GetModuleFileName call, which doesn't work on processes that haven't been loaded by the current one.
Tips & Tricks:
I found this to be more comprehensive than GetModuleFileNameEx. Didnt need to enumerate windows or modules
uint pid = 0;
Retrieves the name of the executable file for the specified process.
5/28/2010 6:04:08 PM - patrick-184.108.40.206
Please edit this page!
Do you have...