29 DWORD value_name_length = 256;
32 DWORD value_data_length = 256;
35 char wavemapper[256] = { 0 };
36 char midimapper[256] = { 0 };
42 TRACE(
"ERROR: Could not open: HKEY_LOCAL_MACHINE\\%s\n",
key);
58 if ( value_type ==
REG_SZ )
63 if ( !
stricmp(
"wavemapper", value_name) )
65 TRACE(
"Found a Wave-mapper: %s\n", value_data);
67 strcpy(wavemapper, value_data);
71 else if ( !
stricmp(
"midimapper", value_name) )
73 TRACE(
"Found a MIDI-mapper: %s\n", value_data);
75 strcpy(midimapper, value_data);
79 else if ( !
_strnicmp(
"wave", value_name, 4) )
81 TRACE(
"Found a Wave driver: %s\n", value_data);
85 else if ( !
_strnicmp(
"midi", value_name, 4) )
87 TRACE(
"Found a MIDI driver: %s\n", value_data);
91 else if ( !
_strnicmp(
"mixer", value_name, 5) )
93 TRACE(
"Found a mixer driver: %s\n", value_data);
97 else if ( !
_strnicmp(
"aux", value_name, 4) )
99 TRACE(
"Found an aux driver: %s\n", value_data);
105 TRACE(
"Not supported: %s\n", value_data);
115 TRACE(
"FAILED when initializing %s\n", value_data);
121 TRACE(
"Invalid data format\n");
125 value_name_length = 256;
126 value_data_length = 256;
127 memset(value_name, 0, value_name_length);
128 memset(value_data, 0, value_data_length);
138 TRACE(
"FAILED when initializing %s\n", wavemapper);
146 TRACE(
"FAILED when initializing %s\n", midimapper);
char * strcpy(char *DstString, const char *SrcString)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
LONG WINAPI RegOpenKeyA(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult)
#define _strnicmp(_String1, _String2, _MaxCount)
#define stricmp(_String1, _String2)
BOOL LoadRegistryMMEDrivers(char *key)
static unsigned driver_count
BOOL MMDRV_Install(LPCSTR drvRegName, LPCSTR drvFileName, BOOL bIsMapper)
static const WCHAR drivers_key[]
#define HKEY_LOCAL_MACHINE