Re: GetModuleFileNameEx
From: daniel kaplan (nospam_at_nospam.com)
Date: 09/02/04
- Next message: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Previous message: Jiangsheng[MVP of VC++]: "Re: RICHEDIT / ActiveX control"
- In reply to: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Next in thread: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Reply: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Sep 2004 17:03:29 -0400
below is EVERYTHING my MSDN has for it...not a mention of libs, h's
nothing...but that leads to an important question:
does this function ONLY in NT version (2k, etc)
cause i need 95 and 98....so if that's the case, i will have to go the
longer route with the SNAPSHOT
GetModuleFileNameEx
The GetModuleFileNameEx function retrieves the fully qualified path for the
specified module.
DWORD GetModuleFileNameEx(
HANDLE hProcess, // handle to the process
HMODULE hModule, // handle to the module
LPTSTR lpFilename, // buffer that receives the path
DWORD nSize // size of the buffer
);
Parameters
hProcess
Handle to the process that contains the module.
hModule
Handle to the module.
lpFilename
Pointer to the buffer that receives the fully qualified path to the module.
nSize
Specifies the size, in bytes, of the lpFilename buffer.
Return Value
If the function succeeds, the return value specifies the length of the
string copied to the buffer.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
See Also
Process Status Helper Overview, PSAPI Functions, EnumProcesses,
GetModuleBaseName
- Next message: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Previous message: Jiangsheng[MVP of VC++]: "Re: RICHEDIT / ActiveX control"
- In reply to: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Next in thread: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Reply: William DePalo [MVP VC++]: "Re: GetModuleFileNameEx"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|