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
e6a501bb
Commit
e6a501bb
authored
Mar 29, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Apr 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Trace DriverCallback once upon entry.
parent
7c06fef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
driver.c
dlls/winmm/driver.c
+17
-7
No files found.
dlls/winmm/driver.c
View file @
e6a501bb
...
...
@@ -531,34 +531,44 @@ LRESULT WINAPI DefDriverProc(DWORD_PTR dwDriverIdentifier, HDRVR hDrv,
}
/**************************************************************************
* DRIVER_getCallback [internal]
*/
static
const
char
*
DRIVER_getCallback
(
DWORD
uFlags
)
{
switch
(
uFlags
&
DCB_TYPEMASK
)
{
case
DCB_NULL
:
return
"null"
;
case
DCB_WINDOW
:
return
"window"
;
case
DCB_TASK
:
return
"task"
;
case
DCB_EVENT
:
return
"event"
;
case
DCB_FUNCTION
:
return
"32bit function"
;
default:
return
"UNKNOWN"
;
}
}
/**************************************************************************
* DriverCallback [WINMM.@]
*/
BOOL
WINAPI
DriverCallback
(
DWORD_PTR
dwCallBack
,
DWORD
uFlags
,
HDRVR
hDev
,
DWORD
wMsg
,
DWORD_PTR
dwUser
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
TRACE
(
"(%08lX, %04X, %p, %04X, %08lX, %08lX, %08lX)
\n
"
,
dwCallBack
,
uFlags
,
hDev
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
TRACE
(
"(%08lX, %
s %
04X, %p, %04X, %08lX, %08lX, %08lX)
\n
"
,
dwCallBack
,
DRIVER_getCallback
(
uFlags
),
uFlags
,
hDev
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
uFlags
&
DCB_TYPEMASK
)
{
case
DCB_NULL
:
TRACE
(
"Null !
\n
"
);
break
;
case
DCB_WINDOW
:
TRACE
(
"Window(%04lX) handle=%p!
\n
"
,
dwCallBack
,
hDev
);
PostMessageA
((
HWND
)
dwCallBack
,
wMsg
,
(
WPARAM
)
hDev
,
dwParam1
);
break
;
case
DCB_TASK
:
/* aka DCB_THREAD */
TRACE
(
"Task(%04lx) !
\n
"
,
dwCallBack
);
PostThreadMessageA
(
dwCallBack
,
wMsg
,
(
WPARAM
)
hDev
,
dwParam1
);
break
;
case
DCB_FUNCTION
:
TRACE
(
"Function (32 bit) !
\n
"
);
if
(
dwCallBack
)
((
LPDRVCALLBACK
)
dwCallBack
)(
hDev
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
break
;
case
DCB_EVENT
:
TRACE
(
"Event(%08lx) !
\n
"
,
dwCallBack
);
SetEvent
((
HANDLE
)
dwCallBack
);
break
;
#if 0
...
...
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