int HookId; /* Hook table index */
ULONG_PTR offPfn;
ULONG flags; /* Some internal flags */
- INT ihmod;
+ INT_PTR ihmod;
struct _THREADINFO *ptiHooked;
struct _DESKTOP *rpdesk;
/* ReactOS */
typedef struct _WND
{
THRDESKHEAD head;
+#if 0
+ WW ww;
+#else
+ /* These fields should be moved in the WW at some point. */
+ /* Plese do not change them to keep the same layout with WW. */
DWORD state;
DWORD state2;
/* Extended style. */
/* Handle of the module that created the window. */
HINSTANCE hModule;
DWORD fnid;
+#endif
struct _WND *spwndNext;
struct _WND *spwndPrev;
struct _WND *spwndParent;
HMENU SystemMenu;
//PMENU spmenuSys;
/* Window menu handle or window id */
- UINT IDMenu; // Use spmenu
+ UINT_PTR IDMenu; // Use spmenu
//PMENU spmenu;
HRGN hrgnClip;
HRGN hrgnNewFrame;
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;
NTAPI
NtUserCallHwndParam(
HWND hWnd,
- DWORD Param,
+ DWORD_PTR Param,
DWORD Routine);
DWORD
NTAPI
NtUserCallHwndParamLock(
HWND hWnd,
- DWORD Param,
+ DWORD_PTR Param,
DWORD Routine);
BOOL
#define QUERY_WINDOW_REAL_ID 0x05
#define QUERY_WINDOW_FOREGROUND 0x06
-DWORD
+DWORD_PTR
NTAPI
NtUserQueryWindow(
HWND hWnd,
ATOM Atom);
HDESK
-APIENTRY
+NTAPI
NtUserResolveDesktop(
IN HANDLE ProcessHandle,
IN PUNICODE_STRING DesktopPath,
- DWORD dwUnknown,
+ IN BOOL bInherit,
OUT HWINSTA* phWinSta);
DWORD
LONG NewValue,
BOOL Ansi);
+#ifdef _WIN64
+LONG_PTR
+NTAPI
+NtUserSetWindowLongPtr(
+ HWND hWnd,
+ DWORD Index,
+ LONG_PTR NewValue,
+ BOOL Ansi);
+#endif // _WIN64
+
BOOL
NTAPI
NtUserSetWindowPlacement(
BOOL
NTAPI
NtUserSetWindowStationUser(
- HWINSTA hWindowStation,
- PLUID pluid,
- PSID psid,
- DWORD size);
+ IN HWINSTA hWindowStation,
+ IN PLUID pluid,
+ IN PSID psid OPTIONAL,
+ IN DWORD size);
WORD
NTAPI