credui: Add a banner and message box to the dialog presented by CredUIPromptForCreden...
[wine] / dlls / wineesd.drv / esound.c
1 /*
2  * Wine Driver for EsounD Sound Server
3  * http://www.tux.org/~ricdude/EsounD.html
4  *
5  * Copyright 2004 Zhangrong Huang <hzhr@users.sourceforge.net>
6  *
7  * Code massively copied from Eric Pouech's OSS driver
8  * and Chris Morgan aRts driver
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24
25 #include "config.h"
26
27 #include <stdarg.h>
28
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "mmddk.h"
34 #include "esound.h"
35
36 #ifdef HAVE_ESD
37
38 /**************************************************************************
39  *                              ESD_drvOpen                     [internal]
40  */
41 static LRESULT ESD_drvOpen(LPSTR str)
42 {
43     return 1;
44 }
45
46 /**************************************************************************
47  *                              ESD_drvClose                    [internal]
48  */
49 static LRESULT ESD_drvClose(DWORD_PTR dwDevID)
50 {
51     return 1;
52 }
53 #endif /* #ifdef HAVE_ESD */
54
55
56 /**************************************************************************
57  *                              DriverProc (WINEESD.@)
58  */
59 LRESULT CALLBACK ESD_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
60                                 LPARAM dwParam1, LPARAM dwParam2)
61 {
62 /* EPP     TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n",  */
63 /* EPP    dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
64
65     switch(wMsg) {
66 #ifdef HAVE_ESD
67     case DRV_LOAD:              if (ESD_WaveInit()<0) return 0;
68                                 return 1;
69     case DRV_FREE:              return ESD_WaveClose();
70     case DRV_OPEN:              return ESD_drvOpen((LPSTR)dwParam1);
71     case DRV_CLOSE:             return ESD_drvClose(dwDevID);
72     case DRV_ENABLE:            return 1;
73     case DRV_DISABLE:           return 1;
74     case DRV_QUERYCONFIGURE:    return 1;
75     case DRV_CONFIGURE:         MessageBoxA(0, "EsounD MultiMedia Driver!", "EsounD Driver", MB_OK);    return 1;
76     case DRV_INSTALL:           return DRVCNF_RESTART;
77     case DRV_REMOVE:            return DRVCNF_RESTART;
78 #endif
79     default:
80         return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
81     }
82 }