setupapi: Add stubs for SetupQueryInfOriginalFileInformationA/W.
[wine] / dlls / winenas.drv / nas.c
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3  *
4  * Wine Driver for NAS Network Audio System
5  *   http://radscan.com/nas.html
6  *
7  * Copyright 2002 Nicolas Escuder <n.escuder@alineanet.com>
8  *
9  * Code massively copied from Eric Pouech's OSS driver
10  * and Chris Morgan aRts driver
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25  */
26
27 #include "config.h"
28
29 #include <stdarg.h>
30
31 #include "windef.h"
32 #include "winbase.h"
33 #include "wingdi.h"
34 #include "winuser.h"
35 #include "mmddk.h"
36 #include "nas.h"
37
38 #ifdef HAVE_NAS
39
40 /**************************************************************************
41  *                              NAS_drvOpen                     [internal]
42  */
43 static LRESULT NAS_drvOpen(LPSTR str)
44 {
45     return 1;
46 }
47
48 /**************************************************************************
49  *                              NAS_drvClose                    [internal]
50  */
51 static LRESULT NAS_drvClose(DWORD_PTR dwDevID)
52 {
53     return 1;
54 }
55 #endif /* #ifdef HAVE_NAS */
56
57
58 /**************************************************************************
59  *                              DriverProc (WINENAS.@)
60  */
61 LRESULT CALLBACK NAS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
62                                 LPARAM dwParam1, LPARAM dwParam2)
63 {
64 /* EPP     TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n",  */
65 /* EPP    dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
66
67     switch(wMsg) {
68 #ifdef HAVE_NAS
69     case DRV_LOAD:              NAS_WaveInit();
70 /*                              NAS_MidiInit(); FIXME: no midi */
71                                 return 1;
72     case DRV_FREE:              return NAS_WaveClose();
73     case DRV_OPEN:              return NAS_drvOpen((LPSTR)dwParam1);
74     case DRV_CLOSE:             return NAS_drvClose(dwDevID);
75     case DRV_ENABLE:            return 1;
76     case DRV_DISABLE:           return 1;
77     case DRV_QUERYCONFIGURE:    return 1;
78     case DRV_CONFIGURE:         MessageBoxA(0, "NAS MultiMedia Driver !", "NAS Driver", MB_OK); return 1;
79     case DRV_INSTALL:           return DRVCNF_RESTART;
80     case DRV_REMOVE:            return DRVCNF_RESTART;
81 #endif
82     default:
83         return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
84     }
85 }