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
0ceed8be
Commit
0ceed8be
authored
Apr 21, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winenas.drv: Clean up DriverProc.
parent
d54dcdfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
32 deletions
+10
-32
nas.c
dlls/winenas.drv/nas.c
+10
-32
No files found.
dlls/winenas.drv/nas.c
View file @
0ceed8be
...
...
@@ -35,51 +35,29 @@
#include "mmddk.h"
#include "nas.h"
#ifdef HAVE_NAS
/**************************************************************************
* NAS_drvOpen [internal]
*/
static
LRESULT
NAS_drvOpen
(
LPSTR
str
)
{
return
1
;
}
/**************************************************************************
* NAS_drvClose [internal]
*/
static
LRESULT
NAS_drvClose
(
DWORD_PTR
dwDevID
)
{
return
1
;
}
#endif
/* #ifdef HAVE_NAS */
/**************************************************************************
* DriverProc (WINENAS.@)
*/
LRESULT
CALLBACK
NAS_DriverProc
(
DWORD_PTR
dwDevID
,
HDRVR
hDriv
,
UINT
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
)
{
/* EPP TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n", */
/* EPP dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
switch
(
wMsg
)
{
#ifdef HAVE_NAS
case
DRV_LOAD
:
NAS_WaveInit
();
/* NAS_MidiInit(); FIXME: no midi */
return
1
;
case
DRV_FREE
:
return
NAS_WaveClose
();
case
DRV_OPEN
:
return
NAS_drvOpen
((
LPSTR
)
dwParam1
);
case
DRV_CLOSE
:
return
NAS_drvClose
(
dwDevID
);
case
DRV_ENABLE
:
return
1
;
case
DRV_DISABLE
:
return
1
;
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"NAS MultiMedia Driver !"
,
"NAS Driver"
,
MB_OK
);
return
1
;
case
DRV_INSTALL
:
return
DRVCNF_RESTART
;
case
DRV_REMOVE
:
return
DRVCNF_RESTART
;
case
DRV_INSTALL
:
case
DRV_REMOVE
:
return
DRV_SUCCESS
;
#endif
default:
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
)
;
return
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