Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a32b3e86
Commit
a32b3e86
authored
Mar 09, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Support packing/unpacking the WM_DEVICECHANGE message.
parent
1b8f7f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
message.c
dlls/user/message.c
+10
-2
No files found.
dlls/user/message.c
View file @
a32b3e86
...
...
@@ -32,6 +32,7 @@
#include "winuser.h"
#include "winerror.h"
#include "winnls.h"
#include "dbt.h"
#include "dde.h"
#include "wine/unicode.h"
#include "wine/server.h"
...
...
@@ -603,6 +604,12 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
case
WM_MDIGETACTIVE
:
if
(
lparam
)
return
sizeof
(
BOOL
);
return
0
;
case
WM_DEVICECHANGE
:
{
DEV_BROADCAST_HDR
*
header
=
(
DEV_BROADCAST_HDR
*
)
lparam
;
push_data
(
data
,
header
,
header
->
dbch_size
);
return
0
;
}
case
WM_WINE_SETWINDOWPOS
:
push_data
(
data
,
(
WINDOWPOS
*
)
lparam
,
sizeof
(
WINDOWPOS
)
);
return
0
;
...
...
@@ -646,7 +653,6 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
case
WM_DRAGLOOP
:
case
WM_DRAGSELECT
:
case
WM_DRAGMOVE
:
case
WM_DEVICECHANGE
:
FIXME
(
"msg %x (%s) not supported yet
\n
"
,
message
,
SPY_GetMsgName
(
message
,
hwnd
)
);
data
->
count
=
-
1
;
return
0
;
...
...
@@ -864,6 +870,9 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
if
(
!*
lparam
)
return
TRUE
;
if
(
!
get_buffer_space
(
buffer
,
sizeof
(
BOOL
)
))
return
FALSE
;
break
;
case
WM_DEVICECHANGE
:
minsize
=
sizeof
(
DEV_BROADCAST_HDR
);
break
;
case
WM_WINE_KEYBOARD_LL_HOOK
:
minsize
=
sizeof
(
KBDLLHOOKSTRUCT
);
break
;
...
...
@@ -904,7 +913,6 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
case
WM_DRAGLOOP
:
case
WM_DRAGSELECT
:
case
WM_DRAGMOVE
:
case
WM_DEVICECHANGE
:
FIXME
(
"msg %x (%s) not supported yet
\n
"
,
message
,
SPY_GetMsgName
(
message
,
hwnd
)
);
return
FALSE
;
...
...
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