Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenentry.c
Go to the documentation of this file.
00001 /* 00002 * 00003 * COPYRIGHT: See COPYING in the top level directory 00004 * PROJECT: ReactOS Multimedia 00005 * FILE: dll/win32/mmdrv/entry.c 00006 * PURPOSE: Multimedia User Mode Driver (DriverProc) 00007 * PROGRAMMER: Andrew Greenwood 00008 * UPDATE HISTORY: 00009 * Jan 14, 2007: Created 00010 */ 00011 00012 #include <mmdrv.h> 00013 00014 00015 /* 00016 Nothing particularly special happens here. 00017 00018 Back in the days of Windows 3.1, we would do something more useful here, 00019 as this is effectively the old-style equivalent of NT's "DriverEntry", 00020 though far more primitive. 00021 00022 In summary, we just implement to satisfy the MME API (winmm) requirements. 00023 */ 00024 00025 LONG WINAPI 00026 DriverProc( 00027 DWORD driver_id, 00028 HANDLE driver_handle, 00029 UINT message, 00030 LONG parameter1, 00031 LONG parameter2) 00032 { 00033 switch ( message ) 00034 { 00035 case DRV_LOAD : 00036 DPRINT("DRV_LOAD\n"); 00037 return 1L; 00038 00039 case DRV_FREE : 00040 DPRINT("DRV_FREE\n"); 00041 return 1L; 00042 00043 case DRV_OPEN : 00044 DPRINT("DRV_OPEN\n"); 00045 return 1L; 00046 00047 case DRV_CLOSE : 00048 DPRINT("DRV_CLOSE\n"); 00049 return 1L; 00050 00051 case DRV_ENABLE : 00052 DPRINT("DRV_ENABLE\n"); 00053 return 1L; 00054 00055 case DRV_DISABLE : 00056 DPRINT("DRV_DISABLE\n"); 00057 return 1L; 00058 00059 /* 00060 We don't provide configuration capabilities. This used to be 00061 for things like I/O port, IRQ, DMA settings, etc. 00062 */ 00063 00064 case DRV_QUERYCONFIGURE : 00065 DPRINT("DRV_QUERYCONFIGURE\n"); 00066 return 0L; 00067 00068 case DRV_CONFIGURE : 00069 DPRINT("DRV_CONFIGURE\n"); 00070 return 0L; 00071 00072 case DRV_INSTALL : 00073 DPRINT("DRV_INSTALL\n"); 00074 return DRVCNF_RESTART; 00075 }; 00076 00077 return DefDriverProc(driver_id, 00078 driver_handle, 00079 message, 00080 parameter1, 00081 parameter2); 00082 } Generated on Sun May 27 2012 04:24:41 for ReactOS by
1.7.6.1
|