2002-07-30 04:44:19 +02:00
|
|
|
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wine Driver for NAS Network Audio System
|
|
|
|
* http://radscan.com/nas.html
|
|
|
|
*
|
|
|
|
* Copyright 2002 Nicolas Escuder <n.escuder@alineanet.com>
|
|
|
|
*
|
|
|
|
* Code massively copied from Eric Pouech's OSS driver
|
|
|
|
* and Chris Morgan aRts driver
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-07-30 04:44:19 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-07-30 04:44:19 +02:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "mmddk.h"
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* DriverProc (WINENAS.@)
|
|
|
|
*/
|
2005-11-28 20:53:22 +01:00
|
|
|
LRESULT CALLBACK NAS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
|
|
|
|
LPARAM dwParam1, LPARAM dwParam2)
|
2002-07-30 04:44:19 +02:00
|
|
|
{
|
|
|
|
switch(wMsg) {
|
|
|
|
#ifdef HAVE_NAS
|
2010-04-21 13:45:30 +02:00
|
|
|
case DRV_LOAD:
|
|
|
|
case DRV_FREE:
|
2010-04-21 13:45:29 +02:00
|
|
|
case DRV_OPEN:
|
|
|
|
case DRV_CLOSE:
|
|
|
|
case DRV_ENABLE:
|
|
|
|
case DRV_DISABLE:
|
|
|
|
case DRV_QUERYCONFIGURE:
|
|
|
|
return 1;
|
2002-07-30 04:44:19 +02:00
|
|
|
case DRV_CONFIGURE: MessageBoxA(0, "NAS MultiMedia Driver !", "NAS Driver", MB_OK); return 1;
|
2010-04-21 13:45:29 +02:00
|
|
|
case DRV_INSTALL:
|
|
|
|
case DRV_REMOVE:
|
|
|
|
return DRV_SUCCESS;
|
2002-07-30 04:44:19 +02:00
|
|
|
#endif
|
|
|
|
default:
|
2010-04-21 13:45:29 +02:00
|
|
|
return 0;
|
2002-07-30 04:44:19 +02:00
|
|
|
}
|
|
|
|
}
|