HANDLE hProcess, // handle to process
HMODULE hModule, // handle to module
LPTSTR lpFilename, // path buffer
DWORD nSize // maximum characters to retrieve
[in] Handle to the process that contains the module.
[in] Handle to the module.
[out] Pointer to the buffer that receives the fully qualified path to the module. If the file name is longer than maximum number of characters specified by the nSize parameter, the file name is truncated.
[in] Specifies the maximum number of characters to copy to the lpFilename buffer.