user32: Implement GetWindowModuleFileName.
This commit is contained in:
parent
8253824669
commit
90f0795971
|
@ -378,7 +378,7 @@
|
||||||
@ stdcall GetWindowLongPtrA(long long)
|
@ stdcall GetWindowLongPtrA(long long)
|
||||||
@ stdcall GetWindowLongPtrW(long long)
|
@ stdcall GetWindowLongPtrW(long long)
|
||||||
@ stdcall GetWindowLongW(long long)
|
@ stdcall GetWindowLongW(long long)
|
||||||
# @ stub GetWindowModuleFileName
|
@ stdcall GetWindowModuleFileName(long ptr long) GetWindowModuleFileNameA
|
||||||
@ stdcall GetWindowModuleFileNameA(long ptr long)
|
@ stdcall GetWindowModuleFileNameA(long ptr long)
|
||||||
@ stdcall GetWindowModuleFileNameW(long ptr long)
|
@ stdcall GetWindowModuleFileNameW(long ptr long)
|
||||||
@ stdcall GetWindowPlacement(long ptr)
|
@ stdcall GetWindowPlacement(long ptr)
|
||||||
|
|
|
@ -3162,22 +3162,46 @@ BOOL WINAPI DragDetect( HWND hWnd, POINT pt )
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* GetWindowModuleFileNameA (USER32.@)
|
* GetWindowModuleFileNameA (USER32.@)
|
||||||
*/
|
*/
|
||||||
UINT WINAPI GetWindowModuleFileNameA( HWND hwnd, LPSTR lpszFileName, UINT cchFileNameMax)
|
UINT WINAPI GetWindowModuleFileNameA( HWND hwnd, LPSTR module, UINT size )
|
||||||
{
|
{
|
||||||
FIXME("GetWindowModuleFileNameA(hwnd %p, lpszFileName %p, cchFileNameMax %u) stub!\n",
|
WND *win;
|
||||||
hwnd, lpszFileName, cchFileNameMax);
|
HINSTANCE hinst;
|
||||||
|
|
||||||
|
TRACE( "%p, %p, %u\n", hwnd, module, size );
|
||||||
|
|
||||||
|
win = WIN_GetPtr( hwnd );
|
||||||
|
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP)
|
||||||
|
{
|
||||||
|
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
hinst = win->hInstance;
|
||||||
|
WIN_ReleasePtr( win );
|
||||||
|
|
||||||
|
return GetModuleFileNameA( hinst, module, size );
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* GetWindowModuleFileNameW (USER32.@)
|
* GetWindowModuleFileNameW (USER32.@)
|
||||||
*/
|
*/
|
||||||
UINT WINAPI GetWindowModuleFileNameW( HWND hwnd, LPWSTR lpszFileName, UINT cchFileNameMax)
|
UINT WINAPI GetWindowModuleFileNameW( HWND hwnd, LPWSTR module, UINT size )
|
||||||
{
|
{
|
||||||
FIXME("GetWindowModuleFileNameW(hwnd %p, lpszFileName %p, cchFileNameMax %u) stub!\n",
|
WND *win;
|
||||||
hwnd, lpszFileName, cchFileNameMax);
|
HINSTANCE hinst;
|
||||||
|
|
||||||
|
TRACE( "%p, %p, %u\n", hwnd, module, size );
|
||||||
|
|
||||||
|
win = WIN_GetPtr( hwnd );
|
||||||
|
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP)
|
||||||
|
{
|
||||||
|
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
hinst = win->hInstance;
|
||||||
|
WIN_ReleasePtr( win );
|
||||||
|
|
||||||
|
return GetModuleFileNameW( hinst, module, size );
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* GetWindowInfo (USER32.@)
|
* GetWindowInfo (USER32.@)
|
||||||
|
|
Loading…
Reference in New Issue