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
32ea3ec7
Commit
32ea3ec7
authored
Nov 08, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move NtUserGetProp implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97fa9db4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
12 deletions
+36
-12
property.c
dlls/user32/property.c
+1
-11
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.c
dlls/win32u/tests/win32u.c
+3
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
window.c
dlls/win32u/window.c
+21
-0
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+8
-0
No files found.
dlls/user32/property.c
View file @
32ea3ec7
...
...
@@ -126,17 +126,7 @@ HANDLE WINAPI GetPropA( HWND hwnd, LPCSTR str )
*/
HANDLE
WINAPI
GetPropW
(
HWND
hwnd
,
LPCWSTR
str
)
{
ULONG_PTR
ret
=
0
;
SERVER_START_REQ
(
get_window_property
)
{
req
->
window
=
wine_server_user_handle
(
hwnd
);
if
(
IS_INTRESOURCE
(
str
))
req
->
atom
=
LOWORD
(
str
);
else
wine_server_add_data
(
req
,
str
,
lstrlenW
(
str
)
*
sizeof
(
WCHAR
)
);
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
data
;
}
SERVER_END_REQ
;
return
(
HANDLE
)
ret
;
return
NtUserGetProp
(
hwnd
,
str
);
}
...
...
dlls/win32u/syscall.c
View file @
32ea3ec7
...
...
@@ -108,6 +108,7 @@ static void * const syscalls[] =
NtUserGetLayeredWindowAttributes
,
NtUserGetObjectInformation
,
NtUserGetProcessWindowStation
,
NtUserGetProp
,
NtUserGetThreadDesktop
,
NtUserOpenDesktop
,
NtUserOpenInputDesktop
,
...
...
dlls/win32u/tests/win32u.c
View file @
32ea3ec7
...
...
@@ -49,6 +49,9 @@ static void test_window_props(void)
prop
=
GetPropW
(
hwnd
,
L"test"
);
ok
(
prop
==
UlongToHandle
(
0xdeadbeef
),
"prop = %p
\n
"
,
prop
);
prop
=
NtUserGetProp
(
hwnd
,
UlongToPtr
(
atom
)
);
ok
(
prop
==
UlongToHandle
(
0xdeadbeef
),
"prop = %p
\n
"
,
prop
);
GlobalDeleteAtom
(
atom
);
DestroyWindow
(
hwnd
);
}
...
...
dlls/win32u/win32u.spec
View file @
32ea3ec7
...
...
@@ -980,7 +980,7 @@
@ stub NtUserGetProcessDpiAwarenessContext
@ stub NtUserGetProcessUIContextInformation
@ stdcall -syscall NtUserGetProcessWindowStation()
@ st
ub NtUserGetProp
@ st
dcall -syscall NtUserGetProp(long wstr)
@ stub NtUserGetQueueStatus
@ stub NtUserGetQueueStatusReadonly
@ stub NtUserGetRawInputBuffer
...
...
dlls/win32u/window.c
View file @
32ea3ec7
...
...
@@ -27,6 +27,27 @@
#include "wine/server.h"
/***********************************************************************
* NtUserGetProp (win32u.@)
*
* NOTE Native allows only ATOMs as the second argument. We allow strings
* to save extra server call in GetPropW.
*/
HANDLE
WINAPI
NtUserGetProp
(
HWND
hwnd
,
const
WCHAR
*
str
)
{
ULONG_PTR
ret
=
0
;
SERVER_START_REQ
(
get_window_property
)
{
req
->
window
=
wine_server_user_handle
(
hwnd
);
if
(
IS_INTRESOURCE
(
str
))
req
->
atom
=
LOWORD
(
str
);
else
wine_server_add_data
(
req
,
str
,
lstrlenW
(
str
)
*
sizeof
(
WCHAR
)
);
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
data
;
}
SERVER_END_REQ
;
return
(
HANDLE
)
ret
;
}
/*****************************************************************************
* NtUserSetProp (win32u.@)
*
...
...
dlls/wow64win/syscall.h
View file @
32ea3ec7
...
...
@@ -95,6 +95,7 @@
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserGetProp ) \
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
SYSCALL_ENTRY( NtUserOpenDesktop ) \
SYSCALL_ENTRY( NtUserOpenInputDesktop ) \
...
...
dlls/wow64win/user.c
View file @
32ea3ec7
...
...
@@ -156,6 +156,14 @@ NTSTATUS WINAPI wow64_NtUserSetObjectInformation( UINT *args )
return
NtUserSetObjectInformation
(
handle
,
index
,
info
,
len
);
}
NTSTATUS
WINAPI
wow64_NtUserGetProp
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
const
WCHAR
*
str
=
get_ptr
(
&
args
);
return
HandleToUlong
(
NtUserGetProp
(
hwnd
,
str
));
}
NTSTATUS
WINAPI
wow64_NtUserSetProp
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
...
...
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