Author: dchapyshev
Date: Tue Jun 24 10:17:28 2008
New Revision: 34074
URL:
http://svn.reactos.org/svn/reactos?rev=34074&view=rev
Log:
- Start implementing MediaClassInstaller function
Modified:
trunk/reactos/dll/cpl/mmsys/mmsys.c
trunk/reactos/dll/cpl/mmsys/mmsys.def
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] Tue Jun 24 10:17:28 2008
@@ -1,31 +1,14 @@
/*
- * ReactOS
- * Copyright (C) 2005 ReactOS Team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-/* $Id: main.c 12852 2005-01-06 13:58:04Z mf $
*
* PROJECT: ReactOS Multimedia Control Panel
- * FILE: lib/cpl/mmsys/mmsys.c
+ * FILE: dll/cpl/mmsys/mmsys.c
* PURPOSE: ReactOS Multimedia Control Panel
* PROGRAMMER: Thoams Weidenmueller <w3seek(a)reactos.com>
* Dmitry Chapyshev <dmitry(a)reactos.org>
* UPDATE HISTORY:
* 2005/11/23 Created
*/
+
#include <windows.h>
#include <commctrl.h>
#include <initguid.h>
@@ -153,31 +136,85 @@
DPRINT1("mmseRunOnce() stubs\n");
}
+BOOL WINAPI
+MediaPropPageProvider(LPVOID Info,
+ LPFNADDPROPSHEETPAGE PropSheetPage,
+ LPARAM lParam)
+{
+ DPRINT1("MediaPropPageProvider() stubs\n");
+ return TRUE;
+}
+
+VOID WINAPI
+ShowFullControlPanel(HWND hwnd,
+ HINSTANCE hInstance,
+ LPTSTR lpszCmd,
+ int nCmdShow)
+{
+ DPRINT1("ShowFullControlPanel() stubs\n");
+}
+
+DWORD
+MMSYS_InstallDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
+DWORD
+MMSYS_RemoveDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
+DWORD
+MMSYS_AllowInstallDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
+DWORD
+MMSYS_SelectDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
+DWORD
+MMSYS_DetectDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
+DWORD
+MMSYS_SelectBestCompatDRV(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData)
+{
+ return 0x0;
+}
+
DWORD WINAPI
MediaClassInstaller(DI_FUNCTION diFunction,
HDEVINFO hDevInfo,
PSP_DEVINFO_DATA pspDevInfoData)
{
- DPRINT1("MediaClassInstaller() stubs\n");
- return 0x0;
-}
-
-BOOL WINAPI
-MediaPropPageProvider(LPVOID Info,
- LPFNADDPROPSHEETPAGE PropSheetPage,
- LPARAM lParam)
-{
- DPRINT1("MediaPropPageProvider() stubs\n");
- return TRUE;
-}
-
-VOID WINAPI
-ShowFullControlPanel(HWND hwnd,
- HINSTANCE hInstance,
- LPTSTR lpszCmd,
- int nCmdShow)
-{
- DPRINT1("ShowFullControlPanel() stubs\n");
+ switch (diFunction)
+ {
+ case DIF_INSTALLDEVICE:
+ return MMSYS_InstallDevice(hDevInfo, pspDevInfoData);
+ case DIF_REMOVE:
+ return MMSYS_RemoveDevice(hDevInfo, pspDevInfoData);
+ case DIF_ALLOW_INSTALL:
+ return MMSYS_AllowInstallDevice(hDevInfo, pspDevInfoData);
+ case DIF_SELECTDEVICE:
+ return MMSYS_SelectDevice(hDevInfo, pspDevInfoData);
+ case DIF_DETECT:
+ return MMSYS_DetectDevice(hDevInfo, pspDevInfoData);
+ case DIF_SELECTBESTCOMPATDRV:
+ return MMSYS_SelectBestCompatDRV(hDevInfo, pspDevInfoData);
+ default:
+ {
+ DPRINT1("MediaClassInstaller() not supported function\n");
+ return 0x0;
+ }
+ }
}
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.def?re…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.def [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.def [iso-8859-1] Tue Jun 24 10:17:28 2008
@@ -12,7 +12,7 @@
ShowDriverSettingsAfterFork
ShowDriverSettingsAfterForkW
ShowDriverSettingsAfterForkA
-MediaClassInstaller
+MediaClassInstaller@12
MediaPropPageProvider
;Multichannel
ShowFullControlPanel