术语 | getwindowmodulefilename |
释义 | GetWindowModuleFileName 语法: UINT GetWindowModuleFileName( HWND hwnd, LPTSTR lpszFileName, UINT cchFileNameMax ); GetWindowModuleFileName功能 该GetWindowModuleFileName函数检索的完整路径和文件与指定的窗口句柄相关的模块名。 参数 hwnd [in]句柄的模块文件名称将检索窗口。 lpszFileName [out]指向的缓冲区接收路径和文件名。 cchFileNameMax [in]指定TCHARs的最大数量,可以到lpszFileName缓冲区复制。 返回值 返回值是进入缓冲区复制TCHARs总数。 备注 在Windows 95/98/Me:GetWindowModuleFileNameW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 4.0 SP3的 UnicodeImplemented为ANSI和Unicode版本。 参见 视窗概述 ==英文原文==GetWindowModuleFileName Function The GetWindowModuleFileName function retrieves the full path and file name of the module associated with the specified window handle. Syntax UINT GetWindowModuleFileName( HWND hwnd, LPTSTR lpszFileName, UINT cchFileNameMax ); Parameters 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. Return Value The return value is the total number of TCHARs copied into the buffer. Remarks Windows 95/98/Me: GetWindowModuleFileNameW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems . Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 4.0 SP3 UnicodeImplemented as ANSI and Unicode versions. See Also Windows Overview ==原始网址==http://msdn.microsoft.com/en-us/library/ms633517(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。