1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
3 * Wine Driver for Open Sound System
5 * Copyright 1999 Eric Pouech
15 static struct WINE_OSS
* oss
= NULL
;
17 /**************************************************************************
18 * OSS_drvOpen [internal]
20 static DWORD
OSS_drvOpen(LPSTR str
)
25 /* I know, this is ugly, but who cares... */
26 oss
= (struct WINE_OSS
*)1;
30 /**************************************************************************
31 * OSS_drvClose [internal]
33 static DWORD
OSS_drvClose(DWORD dwDevID
)
42 /**************************************************************************
43 * OSS_DriverProc [internal]
45 LONG CALLBACK
OSS_DriverProc(DWORD dwDevID
, HDRVR hDriv
, DWORD wMsg
,
46 DWORD dwParam1
, DWORD dwParam2
)
48 /* EPP TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n", */
49 /* EPP dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
52 case DRV_LOAD
: return 1;
53 case DRV_FREE
: return 1;
54 case DRV_OPEN
: return OSS_drvOpen((LPSTR
)dwParam1
);
55 case DRV_CLOSE
: return OSS_drvClose(dwDevID
);
56 case DRV_ENABLE
: return 1;
57 case DRV_DISABLE
: return 1;
58 case DRV_QUERYCONFIGURE
: return 1;
59 case DRV_CONFIGURE
: MessageBoxA(0, "OSS MultiMedia Driver !", "OSS Driver", MB_OK
); return 1;
60 case DRV_INSTALL
: return DRVCNF_RESTART
;
61 case DRV_REMOVE
: return DRVCNF_RESTART
;
63 return DefDriverProc(dwDevID
, hDriv
, wMsg
, dwParam1
, dwParam2
);