UINT GetWindowModuleFileName(
HWND hwnd, LPTSTR lpszFileName, UINT cchFileNameMax );
参数:
hwnd
- [in] Handle to the window whose module file name will be retrieved.
lpszFileName- [out] Pointer to a buffer that receives the path and file name.
cchFileNameMax- [in] Specifies the maximum number of TCHARs that can be copied into the lpszFileName buffer.
返回值:
The return value is the total number of TCHARs copied into the buffer.
Retrieves the full path and file name of the module associated with the specified window handle. (查找与指定窗口句柄相关联的完整路径和文件名。)