GetWindowModuleFileName function
Applies to: desktop apps only
Retrieves the full path and file name of the module associated with the specified window handle.
Syntax
UINT WINAPI GetWindowModuleFileName( __in HWND hwnd, __out LPTSTR lpszFileName, __in UINT cchFileNameMax );
Parameters
- hwnd [in]
-
Type: HWND
A handle to the window whose module file name is to be retrieved.
- lpszFileName [out]
-
Type: LPTSTR
The path and file name.
- cchFileNameMax [in]
-
Type: UINT
The maximum number of characters that can be copied into the lpszFileName buffer.
Return value
Type:
Type: UINT
The return value is the total number of characters copied into the buffer.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | GetWindowModuleFileNameW (Unicode) and GetWindowModuleFileNameA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012
more info.
here more info about this function http://msdn.microsoft.com/en-us/library/ms683197%28v=vs.85%29.aspx
- 2/8/2011
- Tongas_1980