Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
90f07959
Commit
90f07959
authored
May 13, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement GetWindowModuleFileName.
parent
82538246
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
9 deletions
+33
-9
user32.spec
dlls/user32/user32.spec
+1
-1
win.c
dlls/user32/win.c
+32
-8
No files found.
dlls/user32/user32.spec
View file @
90f07959
...
...
@@ -378,7 +378,7 @@
@ stdcall GetWindowLongPtrA(long long)
@ stdcall GetWindowLongPtrW(long long)
@ stdcall GetWindowLongW(long long)
# @ stub GetWindowModuleFileName
@ stdcall GetWindowModuleFileName(long ptr long) GetWindowModuleFileNameA
@ stdcall GetWindowModuleFileNameA(long ptr long)
@ stdcall GetWindowModuleFileNameW(long ptr long)
@ stdcall GetWindowPlacement(long ptr)
...
...
dlls/user32/win.c
View file @
90f07959
...
...
@@ -3162,21 +3162,45 @@ BOOL WINAPI DragDetect( HWND hWnd, POINT pt )
/******************************************************************************
* 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
"
,
hwnd
,
lpszFileName
,
cchFileNameMax
);
return
0
;
WND
*
win
;
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
;
}
hinst
=
win
->
hInstance
;
WIN_ReleasePtr
(
win
);
return
GetModuleFileNameA
(
hinst
,
module
,
size
);
}
/******************************************************************************
* 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
"
,
hwnd
,
lpszFileName
,
cchFileNameMax
);
return
0
;
WND
*
win
;
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
;
}
hinst
=
win
->
hInstance
;
WIN_ReleasePtr
(
win
);
return
GetModuleFileNameW
(
hinst
,
module
,
size
);
}
/******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment