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