GetModuleBaseName用法

The GetModuleBaseName function retrieves the base name of the specified module.
DWORD GetModuleBaseName(
HANDLE hProcess, // handle to process
HMODULE hModule, // handle to module
LPTSTR lpBaseName, // base name buffer
DWORD nSize // maximum characters to retrieve
);
Parameters
hProcess
[in] Handle to the process that contains the module.
hModule
[in] Handle to the module.
lpBaseName
[out] Pointer to the buffer that receives the base name of the module. If the base name is longer than maximum number of characters specified by the nSize parameter, the base name is truncated.
nSize
[in] Specifies the maximum number of characters to copy to the lpBaseName buffe

原文地址:https://www.cnblogs.com/ganxiang/p/13132057.html