GetModuleFileNameA (KERNEL32.@)
DWORD GetModuleFileNameA ( HMODULE hModule, LPSTR lpFileName, DWORD size )
hModule | [In] | Module handle (32 bit). |
lpFileName | [Out] | Destination for file name. |
[In] | Size of lpFileName in characters. |
GetModuleFileName32 (KERNEL.487).
Get the file name of a loaded module from its handle.
Success: The length of the file name, excluding the terminating NUL.
Failure: 0. Use GetLastError to determine the cause.
This function always returns the long path of hModule (as opposed to GetModuleFileName16 which returns short paths when the modules version field is < 4.0). The function doesn't write a terminating '\0' if the buffer is too small.
Defined in "winbase.h".
Implemented in "dlls/kernel32/module.c". source.winehq.org/source/dlls/kernel32/module.c
Debug channel "module".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jan 2008.