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
86f5d82f
Commit
86f5d82f
authored
Oct 18, 1998
by
Turchanov Sergey
Committed by
Alexandre Julliard
Oct 18, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented DefDriverProc32 from winmm.dll.
parent
92c8178a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
16 deletions
+39
-16
user.spec
if1632/user.spec
+1
-1
driver.h
include/driver.h
+5
-2
audio.c
multimedia/audio.c
+2
-2
mcianim.c
multimedia/mcianim.c
+2
-2
mcicda.c
multimedia/mcicda.c
+2
-2
midi.c
multimedia/midi.c
+2
-2
mmsystem.c
multimedia/mmsystem.c
+21
-1
winmm.spec
relay32/winmm.spec
+1
-1
driver.c
windows/driver.c
+3
-3
No files found.
if1632/user.spec
View file @
86f5d82f
...
...
@@ -259,7 +259,7 @@ file user.exe
252 pascal16 OpenDriver(str str long) OpenDriver16
253 pascal CloseDriver(word long long) CloseDriver16
254 pascal16 GetDriverModuleHandle(word) GetDriverModuleHandle16
255 pascal DefDriverProc(long word word long long) DefDriverProc
255 pascal DefDriverProc(long word word long long) DefDriverProc
16
256 pascal16 GetDriverInfo(word ptr) GetDriverInfo
257 pascal16 GetNextDriver(word long) GetNextDriver
258 pascal16 MapWindowPoints(word word ptr word) MapWindowPoints16
...
...
include/driver.h
View file @
86f5d82f
...
...
@@ -79,8 +79,11 @@ typedef struct tagDRIVERITEM32A {
DRIVERPROC32
driverproc
;
}
DRIVERITEM32A
,
*
LPDRIVERITEM32A
;
LRESULT
WINAPI
DefDriverProc
(
DWORD
dwDevID
,
HDRVR16
hDriv
,
UINT16
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
);
LRESULT
WINAPI
DefDriverProc16
(
DWORD
dwDevID
,
HDRVR16
hDriv
,
UINT16
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
);
LRESULT
WINAPI
DefDriverProc32
(
DWORD
dwDriverIdentifier
,
HDRVR32
hdrvr
,
UINT32
Msg
,
LPARAM
lParam1
,
LPARAM
lParam2
);
#define DefDriverProc WINELIB_NAME(DefDriverProc)
HDRVR16
WINAPI
OpenDriver16
(
LPCSTR
szDriverName
,
LPCSTR
szSectionName
,
LPARAM
lParam2
);
HDRVR32
WINAPI
OpenDriver32A
(
LPCSTR
szDriverName
,
LPCSTR
szSectionName
,
...
...
multimedia/audio.c
View file @
86f5d82f
...
...
@@ -1760,7 +1760,7 @@ LONG WAVE_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
case
MCI_PASTE
:
return
MMSYSERR_NOTSUPPORTED
;
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
return
DefDriverProc
16
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_NOTENABLED
;
}
...
...
@@ -1817,7 +1817,7 @@ LONG WAVE_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
default:
FIXME
(
mciwave
,
"is probably wrong
\n
"
);
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
return
DefDriverProc
32
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_NOTENABLED
;
}
...
...
multimedia/mcianim.c
View file @
86f5d82f
...
...
@@ -570,7 +570,7 @@ LONG ANIM_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
case
MCI_PAUSE
:
return
ANIM_mciPause
(
dwDevID
,
dwParam1
,
(
LPMCI_GENERIC_PARMS
)
PTR_SEG_TO_LIN
(
dwParam2
));
case
MCI_RESUME
:
return
ANIM_mciResume
(
dwDevID
,
dwParam1
,
(
LPMCI_GENERIC_PARMS
)
PTR_SEG_TO_LIN
(
dwParam2
));
case
MCI_SEEK
:
return
ANIM_mciSeek
(
dwDevID
,
dwParam1
,
(
LPMCI_SEEK_PARMS
)
PTR_SEG_TO_LIN
(
dwParam2
));
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
default:
return
DefDriverProc
16
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
}
/**************************************************************************
...
...
@@ -603,7 +603,7 @@ LONG ANIM_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
case
MCI_PAUSE
:
return
ANIM_mciPause
(
dwDevID
,
dwParam1
,
(
LPMCI_GENERIC_PARMS
)
dwParam2
);
case
MCI_RESUME
:
return
ANIM_mciResume
(
dwDevID
,
dwParam1
,
(
LPMCI_GENERIC_PARMS
)
dwParam2
);
case
MCI_SEEK
:
return
ANIM_mciSeek
(
dwDevID
,
dwParam1
,
(
LPMCI_SEEK_PARMS
)
dwParam2
);
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
default:
return
DefDriverProc
32
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
}
...
...
multimedia/mcicda.c
View file @
86f5d82f
...
...
@@ -1075,7 +1075,7 @@ LONG CDAUDIO_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
CDADev
[
dwDevID
].
nTracks
=
0
;
return
0
;
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
return
DefDriverProc
16
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
#else
return
MCIERR_HARDWARE
;
...
...
@@ -1133,7 +1133,7 @@ LONG CDAUDIO_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
CDADev
[
dwDevID
].
nTracks
=
0
;
return
0
;
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
return
DefDriverProc
32
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
#else
return
MCIERR_HARDWARE
;
...
...
multimedia/midi.c
View file @
86f5d82f
...
...
@@ -2662,7 +2662,7 @@ LONG MIDI_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
case
MCI_STATUS
:
return
MIDI_mciStatus
(
dwDevID
,
dwParam1
,
(
LPMCI_STATUS_PARMS
)
PTR_SEG_TO_LIN
(
dwParam2
));
case
MCI_GETDEVCAPS
:
return
MIDI_mciGetDevCaps
(
dwDevID
,
dwParam1
,
(
LPMCI_GETDEVCAPS_PARMS
)
PTR_SEG_TO_LIN
(
dwParam2
));
case
MCI_INFO
:
return
MIDI_mciInfo
(
dwDevID
,
dwParam1
,
(
LPMCI_INFO_PARMS16
)
PTR_SEG_TO_LIN
(
dwParam2
));
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
default:
return
DefDriverProc
16
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
}
...
...
@@ -2696,7 +2696,7 @@ LONG MIDI_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
case
MCI_STATUS
:
return
MIDI_mciStatus
(
dwDevID
,
dwParam1
,
(
LPMCI_STATUS_PARMS
)
dwParam2
);
case
MCI_GETDEVCAPS
:
return
MIDI_mciGetDevCaps
(
dwDevID
,
dwParam1
,
(
LPMCI_GETDEVCAPS_PARMS
)
dwParam2
);
case
MCI_INFO
:
return
MIDI_mciInfo
(
dwDevID
,
dwParam1
,
(
LPMCI_INFO_PARMS16
)
dwParam2
);
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
default:
return
DefDriverProc
32
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
}
/*-----------------------------------------------------------------------*/
multimedia/mmsystem.c
View file @
86f5d82f
...
...
@@ -4262,7 +4262,27 @@ HANDLE16 WINAPI DrvGetModuleHandle16(HDRVR16 hDrvr)
LRESULT
WINAPI
DrvDefDriverProc
(
DWORD
dwDriverID
,
HDRVR16
hDriv
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
return
DefDriverProc
(
dwDriverID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
return
DefDriverProc16
(
dwDriverID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
/**************************************************************************
* DefDriverProc32 [WINMM.5]
*/
LRESULT
WINAPI
DefDriverProc32
(
DWORD
dwDriverIdentifier
,
HDRVR32
hdrvr
,
UINT32
Msg
,
LPARAM
lParam1
,
LPARAM
lParam2
)
{
switch
(
Msg
)
{
case
DRV_LOAD
:
case
DRV_DISABLE
:
case
DRV_INSTALL
:
return
0
;
case
DRV_ENABLE
:
case
DRV_FREE
:
case
DRV_REMOVE
:
return
1
;
default
:
return
0
;
}
}
/**************************************************************************
...
...
relay32/winmm.spec
View file @
86f5d82f
...
...
@@ -5,7 +5,7 @@ type win32
2 stdcall WINMM_2(ptr long long) PlaySound32A
3 stub WINMM_3
4 stub CloseDriver
5 stdcall DefDriverProc(long long long long long) DefDriverProc
5 stdcall DefDriverProc(long long long long long) DefDriverProc
32
6 stub DriverCallback
7 stub DrvClose
8 stub DrvDefDriverProc
...
...
windows/driver.c
View file @
86f5d82f
...
...
@@ -335,10 +335,10 @@ HMODULE32 WINAPI GetDriverModuleHandle32(HDRVR32 hDrvr)
}
/**************************************************************************
* DefDriverProc [USER.255]
* DefDriverProc
16
[USER.255]
*/
LRESULT
WINAPI
DefDriverProc
(
DWORD
dwDevID
,
HDRVR16
hDriv
,
UINT16
wMsg
,
LPARAM
lParam1
,
LPARAM
lParam2
)
LRESULT
WINAPI
DefDriverProc
16
(
DWORD
dwDevID
,
HDRVR16
hDriv
,
UINT16
wMsg
,
LPARAM
lParam1
,
LPARAM
lParam2
)
{
switch
(
wMsg
)
{
...
...
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