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
99f0d3d7
Commit
99f0d3d7
authored
Jul 31, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move packed structures declaration from ntuser.h.
parent
3aa7f9d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
163 deletions
+163
-163
message.c
dlls/win32u/message.c
+163
-0
ntuser.h
include/ntuser.h
+0
-163
No files found.
dlls/win32u/message.c
View file @
99f0d3d7
...
...
@@ -66,6 +66,169 @@ struct packed_hook_extra_info
ULONGLONG
lparam
;
};
/* the various structures that can be sent in messages, in platform-independent layout */
struct
packed_CREATESTRUCTW
{
ULONGLONG
lpCreateParams
;
ULONGLONG
hInstance
;
user_handle_t
hMenu
;
DWORD
__pad1
;
user_handle_t
hwndParent
;
DWORD
__pad2
;
INT
cy
;
INT
cx
;
INT
y
;
INT
x
;
LONG
style
;
ULONGLONG
lpszName
;
ULONGLONG
lpszClass
;
DWORD
dwExStyle
;
DWORD
__pad3
;
};
struct
packed_DRAWITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
UINT
itemAction
;
UINT
itemState
;
user_handle_t
hwndItem
;
DWORD
__pad1
;
user_handle_t
hDC
;
DWORD
__pad2
;
RECT
rcItem
;
ULONGLONG
itemData
;
};
struct
packed_MEASUREITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
UINT
itemWidth
;
UINT
itemHeight
;
ULONGLONG
itemData
;
};
struct
packed_DELETEITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
user_handle_t
hwndItem
;
DWORD
__pad
;
ULONGLONG
itemData
;
};
struct
packed_COMPAREITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
user_handle_t
hwndItem
;
DWORD
__pad1
;
UINT
itemID1
;
ULONGLONG
itemData1
;
UINT
itemID2
;
ULONGLONG
itemData2
;
DWORD
dwLocaleId
;
DWORD
__pad2
;
};
struct
packed_WINDOWPOS
{
UINT
hwnd
;
DWORD
__pad1
;
user_handle_t
hwndInsertAfter
;
DWORD
__pad2
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
UINT
flags
;
DWORD
__pad3
;
};
struct
packed_COPYDATASTRUCT
{
ULONGLONG
dwData
;
DWORD
cbData
;
ULONGLONG
lpData
;
};
struct
packed_HELPINFO
{
UINT
cbSize
;
INT
iContextType
;
INT
iCtrlId
;
user_handle_t
hItemHandle
;
DWORD
__pad
;
ULONGLONG
dwContextId
;
POINT
MousePos
;
};
struct
packed_NCCALCSIZE_PARAMS
{
RECT
rgrc
[
3
];
ULONGLONG
__pad1
;
user_handle_t
hwnd
;
DWORD
__pad2
;
user_handle_t
hwndInsertAfter
;
DWORD
__pad3
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
UINT
flags
;
DWORD
__pad4
;
};
struct
packed_MSG
{
user_handle_t
hwnd
;
DWORD
__pad1
;
UINT
message
;
ULONGLONG
wParam
;
ULONGLONG
lParam
;
DWORD
time
;
POINT
pt
;
DWORD
__pad2
;
};
struct
packed_MDINEXTMENU
{
user_handle_t
hmenuIn
;
DWORD
__pad1
;
user_handle_t
hmenuNext
;
DWORD
__pad2
;
user_handle_t
hwndNext
;
DWORD
__pad3
;
};
struct
packed_MDICREATESTRUCTW
{
ULONGLONG
szClass
;
ULONGLONG
szTitle
;
ULONGLONG
hOwner
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
DWORD
style
;
ULONGLONG
lParam
;
};
struct
packed_COMBOBOXINFO
{
DWORD
cbSize
;
RECT
rcItem
;
RECT
rcButton
;
DWORD
stateButton
;
ULONGLONG
hwndCombo
;
ULONGLONG
hwndItem
;
ULONGLONG
hwndList
;
};
/* the structures are unpacked on top of the packed ones, so make sure they fit */
C_ASSERT
(
sizeof
(
struct
packed_CREATESTRUCTW
)
>=
sizeof
(
CREATESTRUCTW
)
);
C_ASSERT
(
sizeof
(
struct
packed_DRAWITEMSTRUCT
)
>=
sizeof
(
DRAWITEMSTRUCT
)
);
...
...
include/ntuser.h
View file @
99f0d3d7
...
...
@@ -515,169 +515,6 @@ struct ime_driver_call_params
#define WM_SYSTIMER 0x0118
/* the various structures that can be sent in messages, in platform-independent layout */
struct
packed_CREATESTRUCTW
{
ULONGLONG
lpCreateParams
;
ULONGLONG
hInstance
;
UINT
hMenu
;
DWORD
__pad1
;
UINT
hwndParent
;
DWORD
__pad2
;
INT
cy
;
INT
cx
;
INT
y
;
INT
x
;
LONG
style
;
ULONGLONG
lpszName
;
ULONGLONG
lpszClass
;
DWORD
dwExStyle
;
DWORD
__pad3
;
};
struct
packed_DRAWITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
UINT
itemAction
;
UINT
itemState
;
UINT
hwndItem
;
DWORD
__pad1
;
UINT
hDC
;
DWORD
__pad2
;
RECT
rcItem
;
ULONGLONG
itemData
;
};
struct
packed_MEASUREITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
UINT
itemWidth
;
UINT
itemHeight
;
ULONGLONG
itemData
;
};
struct
packed_DELETEITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
itemID
;
UINT
hwndItem
;
DWORD
__pad
;
ULONGLONG
itemData
;
};
struct
packed_COMPAREITEMSTRUCT
{
UINT
CtlType
;
UINT
CtlID
;
UINT
hwndItem
;
DWORD
__pad1
;
UINT
itemID1
;
ULONGLONG
itemData1
;
UINT
itemID2
;
ULONGLONG
itemData2
;
DWORD
dwLocaleId
;
DWORD
__pad2
;
};
struct
packed_WINDOWPOS
{
UINT
hwnd
;
DWORD
__pad1
;
UINT
hwndInsertAfter
;
DWORD
__pad2
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
UINT
flags
;
DWORD
__pad3
;
};
struct
packed_COPYDATASTRUCT
{
ULONGLONG
dwData
;
DWORD
cbData
;
ULONGLONG
lpData
;
};
struct
packed_HELPINFO
{
UINT
cbSize
;
INT
iContextType
;
INT
iCtrlId
;
UINT
hItemHandle
;
DWORD
__pad
;
ULONGLONG
dwContextId
;
POINT
MousePos
;
};
struct
packed_NCCALCSIZE_PARAMS
{
RECT
rgrc
[
3
];
ULONGLONG
__pad1
;
UINT
hwnd
;
DWORD
__pad2
;
UINT
hwndInsertAfter
;
DWORD
__pad3
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
UINT
flags
;
DWORD
__pad4
;
};
struct
packed_MSG
{
UINT
hwnd
;
DWORD
__pad1
;
UINT
message
;
ULONGLONG
wParam
;
ULONGLONG
lParam
;
DWORD
time
;
POINT
pt
;
DWORD
__pad2
;
};
struct
packed_MDINEXTMENU
{
UINT
hmenuIn
;
DWORD
__pad1
;
UINT
hmenuNext
;
DWORD
__pad2
;
UINT
hwndNext
;
DWORD
__pad3
;
};
struct
packed_MDICREATESTRUCTW
{
ULONGLONG
szClass
;
ULONGLONG
szTitle
;
ULONGLONG
hOwner
;
INT
x
;
INT
y
;
INT
cx
;
INT
cy
;
DWORD
style
;
ULONGLONG
lParam
;
};
struct
packed_COMBOBOXINFO
{
DWORD
cbSize
;
RECT
rcItem
;
RECT
rcButton
;
DWORD
stateButton
;
ULONGLONG
hwndCombo
;
ULONGLONG
hwndItem
;
ULONGLONG
hwndList
;
};
HKL
WINAPI
NtUserActivateKeyboardLayout
(
HKL
layout
,
UINT
flags
);
BOOL
WINAPI
NtUserAddClipboardFormatListener
(
HWND
hwnd
);
...
...
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