diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c index 52b8f1fcd5f..84a471bf75f 100644 --- a/dlls/d3d8/d3d8_main.c +++ b/dlls/d3d8/d3d8_main.c @@ -82,6 +82,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" ); wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" ); } + /* @@ Wine registry key: HKLM\Software\Wine\Direct3D */ if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) ) { if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) ) diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 3cf48af66c9..9fa6e9dc33c 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -275,12 +275,14 @@ static HRESULT setup_dinput_options(JoystickImpl * device) buffer[MAX_PATH]='\0'; + /* @@ Wine registry key: HKLM\Software\Wine\dinput */ if (RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\dinput", &hkey)) hkey = 0; len = GetModuleFileNameA( 0, buffer, MAX_PATH ); if (len && len < MAX_PATH) { HKEY tmpkey; + /* @@ Wine registry key: HKLM\Software\Wine\AppDefaults\app.exe\dinput */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\AppDefaults", &tmpkey )) { char appname[MAX_PATH+16]; char *p = strrchr( buffer, '\\' ); diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 4ba54d219ac..ab1c72a66f2 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -132,6 +132,7 @@ void setup_dsound_options(void) buffer[MAX_PATH]='\0'; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\dsound */ if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\dsound", 0, NULL, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL )) { @@ -144,6 +145,7 @@ void setup_dsound_options(void) { HKEY tmpkey; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\dsound */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\AppDefaults", &tmpkey )) { char appname[MAX_PATH+16]; diff --git a/dlls/gdi/driver.c b/dlls/gdi/driver.c index d0bf253c326..0d01f17be85 100644 --- a/dlls/gdi/driver.c +++ b/dlls/gdi/driver.c @@ -222,6 +222,7 @@ static struct graphics_driver *load_display_driver(void) } strcpy( buffer, "x11,tty" ); /* default value */ + /* @@ Wine registry key: HKLM\Software\Wine\Drivers */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey )) { DWORD type, count = sizeof(buffer); diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index 3bedcc1e62d..1a08e1fd429 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -756,6 +756,7 @@ static void LoadReplaceList(void) struct list *family_elem_ptr, *face_elem_ptr; WCHAR old_nameW[200]; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\FontReplacements */ if(RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\FontReplacements", &hkey) == ERROR_SUCCESS) { @@ -955,6 +956,7 @@ static void update_reg_entries(void) ERR("Can't create Windows font reg key\n"); goto end; } + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Fonts\ExternalFonts */ if(RegCreateKeyExW(HKEY_LOCAL_MACHINE, external_fonts_reg_key, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &externalkey, NULL) != ERROR_SUCCESS) { ERR("Can't create external font reg key\n"); @@ -1220,6 +1222,7 @@ BOOL WineEngInit(void) load_fontconfig_fonts(); /* then look in any directories that we've specified in the config file */ + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\FontDirs */ if(RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\FontDirs", &hkey) == ERROR_SUCCESS) { diff --git a/dlls/gdi/gdiobj.c b/dlls/gdi/gdiobj.c index 19621e693d1..6fad078c9f4 100644 --- a/dlls/gdi/gdiobj.c +++ b/dlls/gdi/gdiobj.c @@ -625,6 +625,7 @@ BOOL GDI_Init(void) const struct DefaultFontInfo* deffonts; int i; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Tweak.Fonts */ if (RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Tweak.Fonts", &hkey)) hkey = 0; diff --git a/dlls/gdi/printdrv.c b/dlls/gdi/printdrv.c index 8826d4d244d..75afd10e473 100644 --- a/dlls/gdi/printdrv.c +++ b/dlls/gdi/printdrv.c @@ -463,6 +463,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) psCmd[0] = 0; if (!strncmp("LPR:",pszOutput,4)) { + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\spooler */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey)) { DWORD type, count = sizeof(psCmd); @@ -474,6 +475,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) } else { + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\spooler */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey)) { DWORD type, count = sizeof(psCmd); diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index 838e2e91a08..af07c35e1a2 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -619,6 +619,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen) IP_ADDRESS_STRING primaryWINS, secondaryWINS; memset(pAdapterInfo, 0, size); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Network */ if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Network", 0, KEY_READ, &hKey) == ERROR_SUCCESS) { diff --git a/dlls/kernel/computername.c b/dlls/kernel/computername.c index 5eadc403f78..46bb62e53ae 100644 --- a/dlls/kernel/computername.c +++ b/dlls/kernel/computername.c @@ -212,6 +212,7 @@ static BOOL get_use_dns_option(void) _init_attr( &attr, &nameW ); RtlInitUnicodeString( &nameW, NetworkW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Network */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { RtlInitUnicodeString( &nameW, UseDNSW ); diff --git a/dlls/kernel/oldconfig.c b/dlls/kernel/oldconfig.c index 7f72a149a8a..8588b6fcd9b 100644 --- a/dlls/kernel/oldconfig.c +++ b/dlls/kernel/oldconfig.c @@ -88,6 +88,7 @@ static int create_drives( int devices_only ) { RtlInitUnicodeString( &nameW, driveW ); nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Drive A */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue; RtlInitUnicodeString( &nameW, PathW ); @@ -134,6 +135,7 @@ static int create_drives( int devices_only ) { RtlInitUnicodeString( &nameW, driveW ); nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Drive A */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue; RtlInitUnicodeString( &nameW, DeviceW ); @@ -202,6 +204,7 @@ static void create_dos_devices(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, serialportsW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\SerialPorts */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { RtlInitUnicodeString( &nameW, com ); @@ -226,6 +229,7 @@ static void create_dos_devices(void) NtClose( hkey ); } + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ParallelPorts */ RtlInitUnicodeString( &nameW, parallelportsW ); if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { @@ -313,6 +317,7 @@ static void convert_drive_types(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, drive_types_keyW ); + /* @@ Wine registry key: HKLM\Software\Wine\Drives */ if (NtCreateKey( &hkey_new, KEY_ALL_ACCESS, &attr, 0, NULL, 0, &disp )) return; if (disp != REG_CREATED_NEW_KEY) { @@ -324,6 +329,7 @@ static void convert_drive_types(void) { RtlInitUnicodeString( &nameW, driveW ); nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Drive A */ if (NtOpenKey( &hkey_old, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue; RtlInitUnicodeString( &nameW, TypeW ); if (!NtQueryValueKey( hkey_old, &nameW, KeyValuePartialInformation, tmp, sizeof(tmp), &dummy )) @@ -378,6 +384,7 @@ static void convert_environment( HKEY hkey_current_user ) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, wineW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Wine */ if (NtOpenKey( &hkey_old, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) return; attr.RootDirectory = hkey_current_user; diff --git a/dlls/kernel/relay16.c b/dlls/kernel/relay16.c index 69e4c5cf25c..d8398ea4c09 100644 --- a/dlls/kernel/relay16.c +++ b/dlls/kernel/relay16.c @@ -131,6 +131,7 @@ void RELAY16_InitDebugLists(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &name, configW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return; str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data; diff --git a/dlls/kernel/version.c b/dlls/kernel/version.c index f73e7265d7e..01b016979e9 100644 --- a/dlls/kernel/version.c +++ b/dlls/kernel/version.c @@ -120,6 +120,7 @@ WORD get_dos_version(void) TRACE( "getting version from %s\n", debugstr_w(appversion) ); RtlInitUnicodeString( &nameW, appversion ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\Version */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { ret = parse_dos_version( hkey ); @@ -131,6 +132,7 @@ WORD get_dos_version(void) { TRACE( "getting default version\n" ); RtlInitUnicodeString( &nameW, versionW + 1 ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Version */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { ret = parse_dos_version( hkey ); diff --git a/dlls/kernel/volume.c b/dlls/kernel/volume.c index e27c7a0ced2..3c108fe674e 100644 --- a/dlls/kernel/volume.c +++ b/dlls/kernel/volume.c @@ -185,6 +185,7 @@ static UINT get_registry_drive_type( const WCHAR *root ) attr.SecurityDescriptor = NULL; attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, drive_types_keyW ); + /* @@ Wine registry key: HKLM\Software\Wine\Drives */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) return DRIVE_UNKNOWN; if (root) driveW[0] = root[0]; diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c index 50e624a6c45..24b3fcd1bdf 100644 --- a/dlls/mpr/pwcache.c +++ b/dlls/mpr/pwcache.c @@ -99,6 +99,7 @@ DWORD WINAPI WNetCachePassword( pbPassword, debugstr_a(pbPassword), cbPassword, nType, x ); + /* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */ r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey ); if( r ) return WN_ACCESS_DENIED; @@ -137,6 +138,7 @@ UINT WINAPI WNetRemoveCachedPassword( WARN( "(%p(%s), %d, %d): totally insecure\n", pbResource, debugstr_a(pbResource), cbResource, nType ); + /* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */ r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey ); if( r ) return WN_ACCESS_DENIED; @@ -191,6 +193,7 @@ DWORD WINAPI WNetGetCachedPassword( memset( pbPassword, 0, *pcbPassword); + /* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */ r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey ); if( r ) return WN_ACCESS_DENIED; @@ -249,6 +252,7 @@ UINT WINAPI WNetEnumCachedPasswords( debugstr_an(pbPrefix,cbPrefix), cbPrefix, nType, enumPasswordProc, param ); + /* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */ r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey ); if( r ) return WN_ACCESS_DENIED; diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c index 980a1905a1f..9cd6296334d 100644 --- a/dlls/netapi32/nbt.c +++ b/dlls/netapi32/nbt.c @@ -1517,6 +1517,7 @@ void NetBTInit(void) * different than MS', we can't do per-adapter WINS configuration in the * same place. Just do a global WINS configuration instead. */ + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Network */ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, Config_NetworkW, 0, KEY_READ, &hKey) == ERROR_SUCCESS) { diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 2cfbec34031..3eb206c76ef 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -518,6 +518,7 @@ static void init_options(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, WineW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Wine */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { RtlInitUnicodeString( &nameW, ShowDotFilesW ); diff --git a/dlls/ntdll/loadorder.c b/dlls/ntdll/loadorder.c index fc7bb7ad863..fc369ee7aef 100644 --- a/dlls/ntdll/loadorder.c +++ b/dlls/ntdll/loadorder.c @@ -414,6 +414,7 @@ static HKEY open_app_key( const WCHAR *app_name, const WCHAR *module ) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, str ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\DllOverrides */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) hkey = 0; RtlFreeHeap( GetProcessHeap(), 0, str ); return hkey; @@ -549,6 +550,7 @@ void MODULE_GetLoadOrderW( enum loadorder_type loadorder[], const WCHAR *app_nam attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, DllOverridesW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\DllOverrides */ if (NtOpenKey( &std_key, KEY_ALL_ACCESS, &attr )) std_key = 0; } diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index 8c5d087127d..bb1a1055356 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -139,6 +139,7 @@ void RELAY_InitDebugLists(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &name, configW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return; str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data; diff --git a/dlls/ntdll/version.c b/dlls/ntdll/version.c index 5e37f1a1098..85d54428f69 100644 --- a/dlls/ntdll/version.c +++ b/dlls/ntdll/version.c @@ -283,6 +283,7 @@ void VERSION_Init( const WCHAR *appname ) TRACE( "getting version from %s\n", debugstr_w(appversion) ); RtlInitUnicodeString( &nameW, appversion ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\Version */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { got_win_ver = parse_win_version( hkey ); @@ -293,6 +294,7 @@ void VERSION_Init( const WCHAR *appname ) TRACE( "getting default version\n" ); RtlInitUnicodeString( &nameW, versionW + 1 ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Version */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { parse_win_version( hkey ); diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index 8d39cacd7e4..ceaf5724bd6 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -884,6 +884,8 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr) hRootKey = HKEY_CURRENT_USER; } + /* @@ Wine registry key: HKLM\Software\Wine\Crypto\RSA */ + /* @@ Wine registry key: HKCU\Software\Wine\Crypto\RSA */ if (RegCreateKeyExA(hRootKey, szRSABase, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS) { @@ -1013,6 +1015,8 @@ static HCRYPTPROV new_key_container(PCHAR pszContainerName, DWORD dwFlags, PVTab hRootKey = HKEY_CURRENT_USER; } + /* @@ Wine registry key: HKLM\Software\Wine\Crypto\RSA */ + /* @@ Wine registry key: HKCU\Software\Wine\Crypto\RSA */ RegCreateKeyA(hRootKey, szRSABase, &hKey); RegCloseKey(hKey); } @@ -1053,6 +1057,8 @@ static HCRYPTPROV read_key_container(PCHAR pszContainerName, DWORD dwFlags, PVTa hRootKey = HKEY_CURRENT_USER; } + /* @@ Wine registry key: HKLM\Software\Wine\Crypto\RSA */ + /* @@ Wine registry key: HKCU\Software\Wine\Crypto\RSA */ if (RegOpenKeyExA(hRootKey, szRSABase, 0, KEY_READ, &hKey) != ERROR_SUCCESS) { SetLastError(NTE_BAD_KEYSET); diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c index de0a60449da..927a9fa4ba8 100644 --- a/dlls/shdocvw/shdocvw_main.c +++ b/dlls/shdocvw/shdocvw_main.c @@ -318,6 +318,7 @@ static DWORD WINAPI ThreadFunc( LPVOID info ) /* find the name of the thing to download */ szUrl[0] = 0; + /* @@ Wine registry key: HKLM\Software\Wine\shdocw */ r = RegOpenKeyW( HKEY_LOCAL_MACHINE, szMozDlPath, &hkey ); if( r == ERROR_SUCCESS ) { diff --git a/dlls/user/spy.c b/dlls/user/spy.c index 93a14d3b973..60769b18130 100644 --- a/dlls/user/spy.c +++ b/dlls/user/spy.c @@ -2584,6 +2584,7 @@ int SPY_Init(void) if (!TRACE_ON(message)) return TRUE; indent_tls_index = TlsAlloc(); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Debug", &hkey)) { DWORD type, count = sizeof(buffer); diff --git a/dlls/user/sysparams.c b/dlls/user/sysparams.c index 5be71247d89..70505d8b2ad 100644 --- a/dlls/user/sysparams.c +++ b/dlls/user/sysparams.c @@ -476,6 +476,7 @@ static HKEY get_volatile_regkey(void) if (!volatile_key) { + /* @@ Wine registry key: HKCU\Wine */ if (RegCreateKeyExW( HKEY_CURRENT_USER, WINE_CURRENT_USER_REGKEY, 0, 0, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, 0, &volatile_key, 0 ) != ERROR_SUCCESS) diff --git a/dlls/user/user_main.c b/dlls/user/user_main.c index bfd52e17379..5ca814473b5 100644 --- a/dlls/user/user_main.c +++ b/dlls/user/user_main.c @@ -67,6 +67,7 @@ static BOOL load_driver(void) HKEY hkey; strcpy( buffer, "x11,tty" ); /* default value */ + /* @@ Wine registry key: HKLM\Software\Wine\Drivers */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey )) { DWORD type, count = sizeof(buffer); diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index d0f5a03541d..701b59721f7 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -64,6 +64,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" ); wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" ); } + /* @@ Wine registry key: HKLM\Software\Wine\Direct3D */ if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) ) { if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) ) diff --git a/dlls/winedos/dosconf.c b/dlls/winedos/dosconf.c index 47e2d2d7b16..b1018170b4b 100644 --- a/dlls/winedos/dosconf.c +++ b/dlls/winedos/dosconf.c @@ -465,6 +465,7 @@ DOSCONF *DOSCONF_GetConfig(void) /* default value */ filename[0] = '*'; filename[1] = '\0'; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\wine */ if (!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\wine", &hkey)) diff --git a/dlls/winedos/ioports.c b/dlls/winedos/ioports.c index b71bb799174..37b8b6e2957 100644 --- a/dlls/winedos/ioports.c +++ b/dlls/winedos/ioports.c @@ -280,6 +280,7 @@ static void IO_port_init(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, portsW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Ports */ if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) { RtlInitUnicodeString( &nameW, readW ); diff --git a/dlls/winedos/ppdev.c b/dlls/winedos/ppdev.c index ce538f3aee8..20fd16b773f 100644 --- a/dlls/winedos/ppdev.c +++ b/dlls/winedos/ppdev.c @@ -100,6 +100,7 @@ char IO_pp_init(void) attr.SecurityQualityOfService = NULL; RtlInitUnicodeString( &nameW, configW ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ppdev */ if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return 1; for (;;) diff --git a/dlls/wineps/init.c b/dlls/wineps/init.c index f5d2e74f5a6..ede1c541766 100644 --- a/dlls/wineps/init.c +++ b/dlls/wineps/init.c @@ -597,6 +597,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name) /* Look for a ppd file for this printer in the config file. * First look under that printer's name, and then under 'generic' */ + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ppd */ if((res != ERROR_SUCCESS) && !RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ppd", &hkey)) { const char* value_name; diff --git a/dlls/wineps/truetype.c b/dlls/wineps/truetype.c index 609e9af59aa..1dfa4dd8a74 100644 --- a/dlls/wineps/truetype.c +++ b/dlls/wineps/truetype.c @@ -590,6 +590,7 @@ BOOL PSDRV_GetTrueTypeMetrics(void) HKEY hkey; DWORD type, name_len, value_len; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\TrueType Font Directories */ if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\TrueType Font Directories", 0, KEY_READ, &hkey) != ERROR_SUCCESS) diff --git a/dlls/wineps/type1afm.c b/dlls/wineps/type1afm.c index 21888192b4f..4b26e601178 100644 --- a/dlls/wineps/type1afm.c +++ b/dlls/wineps/type1afm.c @@ -1177,6 +1177,7 @@ BOOL PSDRV_GetType1Metrics(void) HKEY hkey; DWORD type, name_len, value_len; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\afmdirs */ if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\afmdirs", 0, KEY_READ, &hkey) != ERROR_SUCCESS) diff --git a/dlls/winmm/lolvldrv.c b/dlls/winmm/lolvldrv.c index 24bdd7c491a..0b620993af8 100644 --- a/dlls/winmm/lolvldrv.c +++ b/dlls/winmm/lolvldrv.c @@ -733,6 +733,7 @@ BOOL MMDRV_Init(void) strcpy(mapper_buffer, WINE_DEFAULT_WINMM_MAPPER); strcpy(midi_buffer, WINE_DEFAULT_WINMM_MIDI); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\WinMM */ if (! RegCreateKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\WinMM", &hKey)) { size = sizeof(driver_buffer); if (RegQueryValueExA(hKey, "Drivers", 0, &type, (LPVOID)driver_buffer, &size)) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index 142ee1872be..c3f405c2ac6 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -725,6 +725,7 @@ static char *ALSA_GetDeviceFromReg(const char *value) char *result = NULL; DWORD resultSize; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\alsa */ res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ALSA", 0, KEY_QUERY_VALUE, &key); if (res != ERROR_SUCCESS) goto end; diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index 328ea5033af..490a00a624a 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -508,6 +508,7 @@ void WINSPOOL_LoadSystemPrinters(void) if(!done) { /* If we have any CUPS based printers, skip looking for printcap printers */ /* Check for [ppd] section in config file before parsing /etc/printcap */ + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ppd */ if (RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ppd", &hkey) == ERROR_SUCCESS) { RegCloseKey(hkey); diff --git a/dlls/x11drv/bitblt.c b/dlls/x11drv/bitblt.c index e71c0bbbbf1..02ce297bba2 100644 --- a/dlls/x11drv/bitblt.c +++ b/dlls/x11drv/bitblt.c @@ -549,6 +549,7 @@ static int perfect_graphics(void) char buffer[20]; /* default value */ perfect = 0; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey)) { DWORD type, count = sizeof(buffer); diff --git a/dlls/x11drv/init.c b/dlls/x11drv/init.c index 62470b84e3d..9d812c319b0 100644 --- a/dlls/x11drv/init.c +++ b/dlls/x11drv/init.c @@ -65,6 +65,7 @@ static DWORD get_dpi( void ) DWORD dpi = 96; HKEY hkey; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(RegOpenKeyW(HKEY_LOCAL_MACHINE, INIFontSection, &hkey) == ERROR_SUCCESS) { char buffer[20]; diff --git a/dlls/x11drv/palette.c b/dlls/x11drv/palette.c index 07a218ad361..ee8953b1c84 100644 --- a/dlls/x11drv/palette.c +++ b/dlls/x11drv/palette.c @@ -137,6 +137,7 @@ int X11DRV_PALETTE_Init(void) { HKEY hkey; BOOL private_color_map = FALSE; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey)) { char buffer[20]; @@ -396,6 +397,7 @@ static BOOL X11DRV_PALETTE_BuildSharedMap( const PALETTEENTRY *sys_pal_template defaultCM_max_copy = 128; COLOR_max = 256; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey)) { char buffer[20]; diff --git a/dlls/x11drv/x11drv_main.c b/dlls/x11drv/x11drv_main.c index 38cf09a269c..04667e754f3 100644 --- a/dlls/x11drv/x11drv_main.c +++ b/dlls/x11drv/x11drv_main.c @@ -222,6 +222,7 @@ static void setup_options(void) HKEY hkey, appkey = 0; DWORD len; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */ if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", 0, NULL, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL )) { @@ -239,6 +240,7 @@ static void setup_options(void) if ((p = strrchr( appname, '/' ))) appname = p + 1; if ((p = strrchr( appname, '\\' ))) appname = p + 1; strcat( appname, "\\x11drv" ); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\x11drv */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\AppDefaults", &tmpkey )) { if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0; diff --git a/dlls/x11drv/xfont.c b/dlls/x11drv/xfont.c index b00ef46f869..e16e0ddc3d5 100644 --- a/dlls/x11drv/xfont.c +++ b/dlls/x11drv/xfont.c @@ -1451,6 +1451,7 @@ static void XFONT_LoadDefault(LPCSTR ini, LPCSTR fonttype) HKEY hkey; buffer[0] = 0; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = sizeof(buffer); @@ -1657,6 +1658,7 @@ static void XFONT_LoadAliases(void) /* built-ins first */ strcpy(buffer, "-bitstream-charter-"); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = sizeof(buffer); @@ -1675,6 +1677,7 @@ static void XFONT_LoadAliases(void) } strcpy(buffer, "-adobe-helvetica-"); + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = sizeof(buffer); @@ -1701,6 +1704,7 @@ static void XFONT_LoadAliases(void) snprintf( subsection, sizeof(subsection), "%s%i", INIAliasSection, i++ ); buffer[0] = 0; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = sizeof(buffer); @@ -1830,6 +1834,7 @@ static void XFONT_LoadIgnores(void) sprintf( subsection, "%s%i", INIIgnoreSection, i++ ); buffer[0] = 0; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = sizeof(buffer); @@ -2920,6 +2925,7 @@ void X11DRV_FONT_InitX11Metrics( void ) /* deal with systemwide font metrics cache */ buffer[0] = 0; + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey)) { DWORD type, count = buf_size; diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c index 8c881a44edb..098936e4950 100644 --- a/programs/taskmgr/taskmgr.c +++ b/programs/taskmgr/taskmgr.c @@ -668,7 +668,7 @@ void OnSize( UINT nType, int cx, int cy ) void LoadSettings(void) { HKEY hKey; - TCHAR szSubKey[] = _T("Software\\ReactWare\\TaskManager"); + TCHAR szSubKey[] = _T("Software\\Wine\\TaskManager"); int i; DWORD dwSize; @@ -761,6 +761,7 @@ void LoadSettings(void) TaskManagerSettings.ShowKernelTimes = FALSE; /* Open the key */ + /* @@ Wine registry key: HKCU\Software\Wine\TaskManager */ if (RegOpenKeyEx(HKEY_CURRENT_USER, szSubKey, 0, KEY_READ, &hKey) != ERROR_SUCCESS) return; /* Read the settings */ @@ -774,18 +775,11 @@ void LoadSettings(void) void SaveSettings(void) { HKEY hKey; - TCHAR szSubKey1[] = _T("Software"); - TCHAR szSubKey2[] = _T("Software\\ReactWare"); - TCHAR szSubKey3[] = _T("Software\\ReactWare\\TaskManager"); + TCHAR szSubKey3[] = _T("Software\\Wine\\TaskManager"); /* Open (or create) the key */ - hKey = NULL; - RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey1, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL); - RegCloseKey(hKey); - hKey = NULL; - RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey2, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL); - RegCloseKey(hKey); - hKey = NULL; + + /* @@ Wine registry key: HKCU\Software\Wine\TaskManager */ if (RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey3, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL) != ERROR_SUCCESS) return; /* Save the settings */ diff --git a/programs/winebrowser/main.c b/programs/winebrowser/main.c index 86af5bb8123..fc714f3d315 100644 --- a/programs/winebrowser/main.c +++ b/programs/winebrowser/main.c @@ -75,6 +75,7 @@ int main (int argc, char *argv[]) maxLength = sizeof(szBrowsers); + /* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */ if(RegCreateKeyEx( HKEY_CURRENT_USER, "Software\\Wine\\WineBrowser", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index 8f8f44b489c..7a11f890cbf 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -169,6 +169,7 @@ static unsigned dbg_load_internal_vars(void) #include "intvar.h" #undef INTERNAL_VAR + /* @@ Wine registry key: HKCU\Software\Wine\WineDbg */ if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey)) { WINE_ERR("Cannot create WineDbg key in registry\n"); @@ -196,6 +197,7 @@ static unsigned dbg_save_internal_vars(void) HKEY hkey; int i; + /* @@ Wine registry key: HKCU\Software\Wine\WineDbg */ if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey)) { WINE_ERR("Cannot create WineDbg key in registry\n"); diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index 15e120b06ea..17276a93975 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -445,6 +445,7 @@ static char *extract_icon( LPCWSTR path, int index) /* Where should we save the icon? */ WINE_TRACE("path=[%s] index=%d\n", wine_dbgstr_w(path), index); iconsdir=NULL; /* Default is no icon */ + /* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Wine */ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Wine", &hkey )) { static const WCHAR IconsDirW[] = {'I','c','o','n','s','D','i','r',0}; diff --git a/programs/winemine/main.c b/programs/winemine/main.c index b076ff2d4d8..98872711865 100644 --- a/programs/winemine/main.c +++ b/programs/winemine/main.c @@ -276,6 +276,7 @@ void LoadBoard( BOARD *p_board ) char key_name[8]; unsigned i; + /* @@ Wine registry key: HKCU\Software\Wine\WineMine */ RegOpenKeyEx( HKEY_CURRENT_USER, registry_key, 0, KEY_QUERY_VALUE, &hkey ); @@ -360,6 +361,7 @@ void SaveBoard( BOARD *p_board ) char data[16]; char key_name[8]; + /* @@ Wine registry key: HKCU\Software\Wine\WineMine */ if( RegCreateKeyEx( HKEY_CURRENT_USER, registry_key, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,