[WIN32K] Implement NtUserSetWindowLongPtr for 64 bit builds

Also fix return type of NtUserQueryWindow and type of WND::dwUserData and the value for bAnsi in SetWindowLongPtrA
This commit is contained in:
Timo Kreuzer 2017-12-29 10:46:19 +01:00
parent ee7f479c57
commit 173971d947
5 changed files with 111 additions and 45 deletions

View file

@ -702,7 +702,7 @@ typedef struct _WND
ULONG cbwndExtra;
struct _WND *spwndLastActive;
HIMC hImc; // Input context associated with this window.
LONG dwUserData;
LONG_PTR dwUserData;
PVOID pActCtx;
//PD3DMATRIX pTransForm;
struct _WND *spwndClipboardListener;
@ -2801,7 +2801,7 @@ NtUserQueryUserCounters(
#define QUERY_WINDOW_REAL_ID 0x05
#define QUERY_WINDOW_FOREGROUND 0x06
DWORD
DWORD_PTR
NTAPI
NtUserQueryWindow(
HWND hWnd,
@ -3235,6 +3235,16 @@ NtUserSetWindowLong(
LONG NewValue,
BOOL Ansi);
#ifdef _WIN64
LONG_PTR
NTAPI
NtUserSetWindowLongPtr(
HWND hWnd,
DWORD Index,
LONG_PTR NewValue,
BOOL Ansi);
#endif // _WIN64
BOOL
NTAPI
NtUserSetWindowPlacement(