Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
This commit is contained in:
parent
6e92d382a3
commit
2e4bca9db5
|
@ -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_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
|
||||||
wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
|
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 ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) )
|
||||||
{
|
{
|
||||||
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
||||||
|
|
|
@ -275,12 +275,14 @@ static HRESULT setup_dinput_options(JoystickImpl * device)
|
||||||
|
|
||||||
buffer[MAX_PATH]='\0';
|
buffer[MAX_PATH]='\0';
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\dinput */
|
||||||
if (RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\dinput", &hkey)) hkey = 0;
|
if (RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\dinput", &hkey)) hkey = 0;
|
||||||
|
|
||||||
len = GetModuleFileNameA( 0, buffer, MAX_PATH );
|
len = GetModuleFileNameA( 0, buffer, MAX_PATH );
|
||||||
if (len && len < MAX_PATH) {
|
if (len && len < MAX_PATH) {
|
||||||
HKEY tmpkey;
|
HKEY tmpkey;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\AppDefaults\app.exe\dinput */
|
||||||
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\AppDefaults", &tmpkey )) {
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\AppDefaults", &tmpkey )) {
|
||||||
char appname[MAX_PATH+16];
|
char appname[MAX_PATH+16];
|
||||||
char *p = strrchr( buffer, '\\' );
|
char *p = strrchr( buffer, '\\' );
|
||||||
|
|
|
@ -132,6 +132,7 @@ void setup_dsound_options(void)
|
||||||
|
|
||||||
buffer[MAX_PATH]='\0';
|
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,
|
if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\dsound", 0, NULL,
|
||||||
REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL ))
|
REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL ))
|
||||||
{
|
{
|
||||||
|
@ -144,6 +145,7 @@ void setup_dsound_options(void)
|
||||||
{
|
{
|
||||||
HKEY tmpkey;
|
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 ))
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\AppDefaults", &tmpkey ))
|
||||||
{
|
{
|
||||||
char appname[MAX_PATH+16];
|
char appname[MAX_PATH+16];
|
||||||
|
|
|
@ -222,6 +222,7 @@ static struct graphics_driver *load_display_driver(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy( buffer, "x11,tty" ); /* default value */
|
strcpy( buffer, "x11,tty" ); /* default value */
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */
|
||||||
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
|
|
@ -756,6 +756,7 @@ static void LoadReplaceList(void)
|
||||||
struct list *family_elem_ptr, *face_elem_ptr;
|
struct list *family_elem_ptr, *face_elem_ptr;
|
||||||
WCHAR old_nameW[200];
|
WCHAR old_nameW[200];
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\FontReplacements */
|
||||||
if(RegOpenKeyA(HKEY_LOCAL_MACHINE,
|
if(RegOpenKeyA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\FontReplacements",
|
"Software\\Wine\\Wine\\FontReplacements",
|
||||||
&hkey) == ERROR_SUCCESS) {
|
&hkey) == ERROR_SUCCESS) {
|
||||||
|
@ -955,6 +956,7 @@ static void update_reg_entries(void)
|
||||||
ERR("Can't create Windows font reg key\n");
|
ERR("Can't create Windows font reg key\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Fonts\ExternalFonts */
|
||||||
if(RegCreateKeyExW(HKEY_LOCAL_MACHINE, external_fonts_reg_key,
|
if(RegCreateKeyExW(HKEY_LOCAL_MACHINE, external_fonts_reg_key,
|
||||||
0, NULL, 0, KEY_ALL_ACCESS, NULL, &externalkey, NULL) != ERROR_SUCCESS) {
|
0, NULL, 0, KEY_ALL_ACCESS, NULL, &externalkey, NULL) != ERROR_SUCCESS) {
|
||||||
ERR("Can't create external font reg key\n");
|
ERR("Can't create external font reg key\n");
|
||||||
|
@ -1220,6 +1222,7 @@ BOOL WineEngInit(void)
|
||||||
load_fontconfig_fonts();
|
load_fontconfig_fonts();
|
||||||
|
|
||||||
/* then look in any directories that we've specified in the config file */
|
/* 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,
|
if(RegOpenKeyA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\Config\\FontDirs",
|
"Software\\Wine\\Wine\\Config\\FontDirs",
|
||||||
&hkey) == ERROR_SUCCESS) {
|
&hkey) == ERROR_SUCCESS) {
|
||||||
|
|
|
@ -625,6 +625,7 @@ BOOL GDI_Init(void)
|
||||||
const struct DefaultFontInfo* deffonts;
|
const struct DefaultFontInfo* deffonts;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Tweak.Fonts */
|
||||||
if (RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Tweak.Fonts", &hkey))
|
if (RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Tweak.Fonts", &hkey))
|
||||||
hkey = 0;
|
hkey = 0;
|
||||||
|
|
||||||
|
|
|
@ -463,6 +463,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
||||||
psCmd[0] = 0;
|
psCmd[0] = 0;
|
||||||
if (!strncmp("LPR:",pszOutput,4))
|
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))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(psCmd);
|
DWORD type, count = sizeof(psCmd);
|
||||||
|
@ -474,6 +475,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\spooler */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(psCmd);
|
DWORD type, count = sizeof(psCmd);
|
||||||
|
|
|
@ -619,6 +619,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
|
||||||
IP_ADDRESS_STRING primaryWINS, secondaryWINS;
|
IP_ADDRESS_STRING primaryWINS, secondaryWINS;
|
||||||
|
|
||||||
memset(pAdapterInfo, 0, size);
|
memset(pAdapterInfo, 0, size);
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Network */
|
||||||
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\Config\\Network", 0, KEY_READ,
|
"Software\\Wine\\Wine\\Config\\Network", 0, KEY_READ,
|
||||||
&hKey) == ERROR_SUCCESS) {
|
&hKey) == ERROR_SUCCESS) {
|
||||||
|
|
|
@ -212,6 +212,7 @@ static BOOL get_use_dns_option(void)
|
||||||
_init_attr( &attr, &nameW );
|
_init_attr( &attr, &nameW );
|
||||||
RtlInitUnicodeString( &nameW, NetworkW );
|
RtlInitUnicodeString( &nameW, NetworkW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Network */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, UseDNSW );
|
RtlInitUnicodeString( &nameW, UseDNSW );
|
||||||
|
|
|
@ -88,6 +88,7 @@ static int create_drives( int devices_only )
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, driveW );
|
RtlInitUnicodeString( &nameW, driveW );
|
||||||
nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i;
|
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;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue;
|
||||||
|
|
||||||
RtlInitUnicodeString( &nameW, PathW );
|
RtlInitUnicodeString( &nameW, PathW );
|
||||||
|
@ -134,6 +135,7 @@ static int create_drives( int devices_only )
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, driveW );
|
RtlInitUnicodeString( &nameW, driveW );
|
||||||
nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i;
|
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;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue;
|
||||||
|
|
||||||
RtlInitUnicodeString( &nameW, DeviceW );
|
RtlInitUnicodeString( &nameW, DeviceW );
|
||||||
|
@ -202,6 +204,7 @@ static void create_dos_devices(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, serialportsW );
|
RtlInitUnicodeString( &nameW, serialportsW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\SerialPorts */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, com );
|
RtlInitUnicodeString( &nameW, com );
|
||||||
|
@ -226,6 +229,7 @@ static void create_dos_devices(void)
|
||||||
NtClose( hkey );
|
NtClose( hkey );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ParallelPorts */
|
||||||
RtlInitUnicodeString( &nameW, parallelportsW );
|
RtlInitUnicodeString( &nameW, parallelportsW );
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
|
@ -313,6 +317,7 @@ static void convert_drive_types(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, drive_types_keyW );
|
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 (NtCreateKey( &hkey_new, KEY_ALL_ACCESS, &attr, 0, NULL, 0, &disp )) return;
|
||||||
if (disp != REG_CREATED_NEW_KEY)
|
if (disp != REG_CREATED_NEW_KEY)
|
||||||
{
|
{
|
||||||
|
@ -324,6 +329,7 @@ static void convert_drive_types(void)
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, driveW );
|
RtlInitUnicodeString( &nameW, driveW );
|
||||||
nameW.Buffer[(nameW.Length / sizeof(WCHAR)) - 1] = 'A' + i;
|
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;
|
if (NtOpenKey( &hkey_old, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) continue;
|
||||||
RtlInitUnicodeString( &nameW, TypeW );
|
RtlInitUnicodeString( &nameW, TypeW );
|
||||||
if (!NtQueryValueKey( hkey_old, &nameW, KeyValuePartialInformation, tmp, sizeof(tmp), &dummy ))
|
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;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, wineW );
|
RtlInitUnicodeString( &nameW, wineW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Wine */
|
||||||
if (NtOpenKey( &hkey_old, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) return;
|
if (NtOpenKey( &hkey_old, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) return;
|
||||||
|
|
||||||
attr.RootDirectory = hkey_current_user;
|
attr.RootDirectory = hkey_current_user;
|
||||||
|
|
|
@ -131,6 +131,7 @@ void RELAY16_InitDebugLists(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &name, configW );
|
RtlInitUnicodeString( &name, configW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */
|
||||||
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return;
|
||||||
|
|
||||||
str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data;
|
str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data;
|
||||||
|
|
|
@ -120,6 +120,7 @@ WORD get_dos_version(void)
|
||||||
TRACE( "getting version from %s\n", debugstr_w(appversion) );
|
TRACE( "getting version from %s\n", debugstr_w(appversion) );
|
||||||
RtlInitUnicodeString( &nameW, appversion );
|
RtlInitUnicodeString( &nameW, appversion );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\Version */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
ret = parse_dos_version( hkey );
|
ret = parse_dos_version( hkey );
|
||||||
|
@ -131,6 +132,7 @@ WORD get_dos_version(void)
|
||||||
{
|
{
|
||||||
TRACE( "getting default version\n" );
|
TRACE( "getting default version\n" );
|
||||||
RtlInitUnicodeString( &nameW, versionW + 1 );
|
RtlInitUnicodeString( &nameW, versionW + 1 );
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Version */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
ret = parse_dos_version( hkey );
|
ret = parse_dos_version( hkey );
|
||||||
|
|
|
@ -185,6 +185,7 @@ static UINT get_registry_drive_type( const WCHAR *root )
|
||||||
attr.SecurityDescriptor = NULL;
|
attr.SecurityDescriptor = NULL;
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, drive_types_keyW );
|
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 (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) return DRIVE_UNKNOWN;
|
||||||
|
|
||||||
if (root) driveW[0] = root[0];
|
if (root) driveW[0] = root[0];
|
||||||
|
|
|
@ -99,6 +99,7 @@ DWORD WINAPI WNetCachePassword(
|
||||||
pbPassword, debugstr_a(pbPassword), cbPassword,
|
pbPassword, debugstr_a(pbPassword), cbPassword,
|
||||||
nType, x );
|
nType, x );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */
|
||||||
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
||||||
if( r )
|
if( r )
|
||||||
return WN_ACCESS_DENIED;
|
return WN_ACCESS_DENIED;
|
||||||
|
@ -137,6 +138,7 @@ UINT WINAPI WNetRemoveCachedPassword(
|
||||||
WARN( "(%p(%s), %d, %d): totally insecure\n",
|
WARN( "(%p(%s), %d, %d): totally insecure\n",
|
||||||
pbResource, debugstr_a(pbResource), cbResource, nType );
|
pbResource, debugstr_a(pbResource), cbResource, nType );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */
|
||||||
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
||||||
if( r )
|
if( r )
|
||||||
return WN_ACCESS_DENIED;
|
return WN_ACCESS_DENIED;
|
||||||
|
@ -191,6 +193,7 @@ DWORD WINAPI WNetGetCachedPassword(
|
||||||
|
|
||||||
memset( pbPassword, 0, *pcbPassword);
|
memset( pbPassword, 0, *pcbPassword);
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */
|
||||||
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
||||||
if( r )
|
if( r )
|
||||||
return WN_ACCESS_DENIED;
|
return WN_ACCESS_DENIED;
|
||||||
|
@ -249,6 +252,7 @@ UINT WINAPI WNetEnumCachedPasswords(
|
||||||
debugstr_an(pbPrefix,cbPrefix), cbPrefix,
|
debugstr_an(pbPrefix,cbPrefix), cbPrefix,
|
||||||
nType, enumPasswordProc, param );
|
nType, enumPasswordProc, param );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\Wine\Mpr */
|
||||||
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
r = RegCreateKeyA( HKEY_CURRENT_USER, mpr_key, &hkey );
|
||||||
if( r )
|
if( r )
|
||||||
return WN_ACCESS_DENIED;
|
return WN_ACCESS_DENIED;
|
||||||
|
|
|
@ -1517,6 +1517,7 @@ void NetBTInit(void)
|
||||||
* different than MS', we can't do per-adapter WINS configuration in the
|
* different than MS', we can't do per-adapter WINS configuration in the
|
||||||
* same place. Just do a global WINS configuration instead.
|
* 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)
|
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, Config_NetworkW, 0, KEY_READ, &hKey)
|
||||||
== ERROR_SUCCESS)
|
== ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -518,6 +518,7 @@ static void init_options(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, WineW );
|
RtlInitUnicodeString( &nameW, WineW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Wine */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, ShowDotFilesW );
|
RtlInitUnicodeString( &nameW, ShowDotFilesW );
|
||||||
|
|
|
@ -414,6 +414,7 @@ static HKEY open_app_key( const WCHAR *app_name, const WCHAR *module )
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, str );
|
RtlInitUnicodeString( &nameW, str );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\DllOverrides */
|
||||||
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) hkey = 0;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) hkey = 0;
|
||||||
RtlFreeHeap( GetProcessHeap(), 0, str );
|
RtlFreeHeap( GetProcessHeap(), 0, str );
|
||||||
return hkey;
|
return hkey;
|
||||||
|
@ -549,6 +550,7 @@ void MODULE_GetLoadOrderW( enum loadorder_type loadorder[], const WCHAR *app_nam
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, DllOverridesW );
|
RtlInitUnicodeString( &nameW, DllOverridesW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\DllOverrides */
|
||||||
if (NtOpenKey( &std_key, KEY_ALL_ACCESS, &attr )) std_key = 0;
|
if (NtOpenKey( &std_key, KEY_ALL_ACCESS, &attr )) std_key = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -139,6 +139,7 @@ void RELAY_InitDebugLists(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &name, configW );
|
RtlInitUnicodeString( &name, configW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */
|
||||||
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return;
|
||||||
|
|
||||||
str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data;
|
str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data;
|
||||||
|
|
|
@ -283,6 +283,7 @@ void VERSION_Init( const WCHAR *appname )
|
||||||
TRACE( "getting version from %s\n", debugstr_w(appversion) );
|
TRACE( "getting version from %s\n", debugstr_w(appversion) );
|
||||||
RtlInitUnicodeString( &nameW, appversion );
|
RtlInitUnicodeString( &nameW, appversion );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\AppDefaults\app.exe\Version */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
got_win_ver = parse_win_version( hkey );
|
got_win_ver = parse_win_version( hkey );
|
||||||
|
@ -293,6 +294,7 @@ void VERSION_Init( const WCHAR *appname )
|
||||||
|
|
||||||
TRACE( "getting default version\n" );
|
TRACE( "getting default version\n" );
|
||||||
RtlInitUnicodeString( &nameW, versionW + 1 );
|
RtlInitUnicodeString( &nameW, versionW + 1 );
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Version */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
parse_win_version( hkey );
|
parse_win_version( hkey );
|
||||||
|
|
|
@ -884,6 +884,8 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr)
|
||||||
hRootKey = HKEY_CURRENT_USER;
|
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,
|
if (RegCreateKeyExA(hRootKey, szRSABase, 0, NULL, REG_OPTION_NON_VOLATILE,
|
||||||
KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS)
|
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;
|
hRootKey = HKEY_CURRENT_USER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Crypto\RSA */
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\Crypto\RSA */
|
||||||
RegCreateKeyA(hRootKey, szRSABase, &hKey);
|
RegCreateKeyA(hRootKey, szRSABase, &hKey);
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
|
@ -1053,6 +1057,8 @@ static HCRYPTPROV read_key_container(PCHAR pszContainerName, DWORD dwFlags, PVTa
|
||||||
hRootKey = HKEY_CURRENT_USER;
|
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)
|
if (RegOpenKeyExA(hRootKey, szRSABase, 0, KEY_READ, &hKey) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
SetLastError(NTE_BAD_KEYSET);
|
SetLastError(NTE_BAD_KEYSET);
|
||||||
|
|
|
@ -318,6 +318,7 @@ static DWORD WINAPI ThreadFunc( LPVOID info )
|
||||||
|
|
||||||
/* find the name of the thing to download */
|
/* find the name of the thing to download */
|
||||||
szUrl[0] = 0;
|
szUrl[0] = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\shdocw */
|
||||||
r = RegOpenKeyW( HKEY_LOCAL_MACHINE, szMozDlPath, &hkey );
|
r = RegOpenKeyW( HKEY_LOCAL_MACHINE, szMozDlPath, &hkey );
|
||||||
if( r == ERROR_SUCCESS )
|
if( r == ERROR_SUCCESS )
|
||||||
{
|
{
|
||||||
|
|
|
@ -2584,6 +2584,7 @@ int SPY_Init(void)
|
||||||
if (!TRACE_ON(message)) return TRUE;
|
if (!TRACE_ON(message)) return TRUE;
|
||||||
|
|
||||||
indent_tls_index = TlsAlloc();
|
indent_tls_index = TlsAlloc();
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Debug */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Debug", &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Debug", &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
|
|
@ -476,6 +476,7 @@ static HKEY get_volatile_regkey(void)
|
||||||
|
|
||||||
if (!volatile_key)
|
if (!volatile_key)
|
||||||
{
|
{
|
||||||
|
/* @@ Wine registry key: HKCU\Wine */
|
||||||
if (RegCreateKeyExW( HKEY_CURRENT_USER, WINE_CURRENT_USER_REGKEY,
|
if (RegCreateKeyExW( HKEY_CURRENT_USER, WINE_CURRENT_USER_REGKEY,
|
||||||
0, 0, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, 0,
|
0, 0, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, 0,
|
||||||
&volatile_key, 0 ) != ERROR_SUCCESS)
|
&volatile_key, 0 ) != ERROR_SUCCESS)
|
||||||
|
|
|
@ -67,6 +67,7 @@ static BOOL load_driver(void)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
|
|
||||||
strcpy( buffer, "x11,tty" ); /* default value */
|
strcpy( buffer, "x11,tty" ); /* default value */
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */
|
||||||
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
|
|
@ -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_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
|
||||||
wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
|
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 ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) )
|
||||||
{
|
{
|
||||||
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
||||||
|
|
|
@ -465,6 +465,7 @@ DOSCONF *DOSCONF_GetConfig(void)
|
||||||
/* default value */
|
/* default value */
|
||||||
filename[0] = '*'; filename[1] = '\0';
|
filename[0] = '*'; filename[1] = '\0';
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\wine */
|
||||||
if (!RegOpenKeyA(HKEY_LOCAL_MACHINE,
|
if (!RegOpenKeyA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\Config\\wine",
|
"Software\\Wine\\Wine\\Config\\wine",
|
||||||
&hkey))
|
&hkey))
|
||||||
|
|
|
@ -280,6 +280,7 @@ static void IO_port_init(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, portsW );
|
RtlInitUnicodeString( &nameW, portsW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\Ports */
|
||||||
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
if (!NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ))
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, readW );
|
RtlInitUnicodeString( &nameW, readW );
|
||||||
|
|
|
@ -100,6 +100,7 @@ char IO_pp_init(void)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, configW );
|
RtlInitUnicodeString( &nameW, configW );
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\ppdev */
|
||||||
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return 1;
|
if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr )) return 1;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
|
|
@ -597,6 +597,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
|
||||||
/* Look for a ppd file for this printer in the config file.
|
/* Look for a ppd file for this printer in the config file.
|
||||||
* First look under that printer's name, and then under 'generic'
|
* 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))
|
if((res != ERROR_SUCCESS) && !RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ppd", &hkey))
|
||||||
{
|
{
|
||||||
const char* value_name;
|
const char* value_name;
|
||||||
|
|
|
@ -590,6 +590,7 @@ BOOL PSDRV_GetTrueTypeMetrics(void)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
DWORD type, name_len, value_len;
|
DWORD type, name_len, value_len;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\TrueType Font Directories */
|
||||||
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\Config\\TrueType Font Directories",
|
"Software\\Wine\\Wine\\Config\\TrueType Font Directories",
|
||||||
0, KEY_READ, &hkey) != ERROR_SUCCESS)
|
0, KEY_READ, &hkey) != ERROR_SUCCESS)
|
||||||
|
|
|
@ -1177,6 +1177,7 @@ BOOL PSDRV_GetType1Metrics(void)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
DWORD type, name_len, value_len;
|
DWORD type, name_len, value_len;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\afmdirs */
|
||||||
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Wine\\Wine\\Config\\afmdirs",
|
"Software\\Wine\\Wine\\Config\\afmdirs",
|
||||||
0, KEY_READ, &hkey) != ERROR_SUCCESS)
|
0, KEY_READ, &hkey) != ERROR_SUCCESS)
|
||||||
|
|
|
@ -733,6 +733,7 @@ BOOL MMDRV_Init(void)
|
||||||
strcpy(mapper_buffer, WINE_DEFAULT_WINMM_MAPPER);
|
strcpy(mapper_buffer, WINE_DEFAULT_WINMM_MAPPER);
|
||||||
strcpy(midi_buffer, WINE_DEFAULT_WINMM_MIDI);
|
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)) {
|
if (! RegCreateKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\WinMM", &hKey)) {
|
||||||
size = sizeof(driver_buffer);
|
size = sizeof(driver_buffer);
|
||||||
if (RegQueryValueExA(hKey, "Drivers", 0, &type, (LPVOID)driver_buffer, &size))
|
if (RegQueryValueExA(hKey, "Drivers", 0, &type, (LPVOID)driver_buffer, &size))
|
||||||
|
|
|
@ -725,6 +725,7 @@ static char *ALSA_GetDeviceFromReg(const char *value)
|
||||||
char *result = NULL;
|
char *result = NULL;
|
||||||
DWORD resultSize;
|
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);
|
res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ALSA", 0, KEY_QUERY_VALUE, &key);
|
||||||
if (res != ERROR_SUCCESS) goto end;
|
if (res != ERROR_SUCCESS) goto end;
|
||||||
|
|
||||||
|
|
|
@ -508,6 +508,7 @@ void WINSPOOL_LoadSystemPrinters(void)
|
||||||
|
|
||||||
if(!done) { /* If we have any CUPS based printers, skip looking for printcap printers */
|
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 */
|
/* 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",
|
if (RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\ppd",
|
||||||
&hkey) == ERROR_SUCCESS) {
|
&hkey) == ERROR_SUCCESS) {
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
|
@ -549,6 +549,7 @@ static int perfect_graphics(void)
|
||||||
char buffer[20];
|
char buffer[20];
|
||||||
/* default value */
|
/* default value */
|
||||||
perfect = 0;
|
perfect = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
|
|
@ -65,6 +65,7 @@ static DWORD get_dpi( void )
|
||||||
DWORD dpi = 96;
|
DWORD dpi = 96;
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(RegOpenKeyW(HKEY_LOCAL_MACHINE, INIFontSection, &hkey) == ERROR_SUCCESS)
|
if(RegOpenKeyW(HKEY_LOCAL_MACHINE, INIFontSection, &hkey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
char buffer[20];
|
char buffer[20];
|
||||||
|
|
|
@ -137,6 +137,7 @@ int X11DRV_PALETTE_Init(void)
|
||||||
{
|
{
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
BOOL private_color_map = FALSE;
|
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))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey))
|
||||||
{
|
{
|
||||||
char buffer[20];
|
char buffer[20];
|
||||||
|
@ -396,6 +397,7 @@ static BOOL X11DRV_PALETTE_BuildSharedMap( const PALETTEENTRY *sys_pal_template
|
||||||
defaultCM_max_copy = 128;
|
defaultCM_max_copy = 128;
|
||||||
COLOR_max = 256;
|
COLOR_max = 256;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", &hkey))
|
||||||
{
|
{
|
||||||
char buffer[20];
|
char buffer[20];
|
||||||
|
|
|
@ -222,6 +222,7 @@ static void setup_options(void)
|
||||||
HKEY hkey, appkey = 0;
|
HKEY hkey, appkey = 0;
|
||||||
DWORD len;
|
DWORD len;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\x11drv */
|
||||||
if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", 0, NULL,
|
if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\x11drv", 0, NULL,
|
||||||
REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, 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;
|
||||||
if ((p = strrchr( appname, '\\' ))) appname = p + 1;
|
if ((p = strrchr( appname, '\\' ))) appname = p + 1;
|
||||||
strcat( appname, "\\x11drv" );
|
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( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\AppDefaults", &tmpkey ))
|
||||||
{
|
{
|
||||||
if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0;
|
if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0;
|
||||||
|
|
|
@ -1451,6 +1451,7 @@ static void XFONT_LoadDefault(LPCSTR ini, LPCSTR fonttype)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
|
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
@ -1657,6 +1658,7 @@ static void XFONT_LoadAliases(void)
|
||||||
|
|
||||||
/* built-ins first */
|
/* built-ins first */
|
||||||
strcpy(buffer, "-bitstream-charter-");
|
strcpy(buffer, "-bitstream-charter-");
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
@ -1675,6 +1677,7 @@ static void XFONT_LoadAliases(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(buffer, "-adobe-helvetica-");
|
strcpy(buffer, "-adobe-helvetica-");
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
@ -1701,6 +1704,7 @@ static void XFONT_LoadAliases(void)
|
||||||
snprintf( subsection, sizeof(subsection), "%s%i", INIAliasSection, i++ );
|
snprintf( subsection, sizeof(subsection), "%s%i", INIAliasSection, i++ );
|
||||||
|
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
@ -1830,6 +1834,7 @@ static void XFONT_LoadIgnores(void)
|
||||||
sprintf( subsection, "%s%i", INIIgnoreSection, i++ );
|
sprintf( subsection, "%s%i", INIIgnoreSection, i++ );
|
||||||
|
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = sizeof(buffer);
|
DWORD type, count = sizeof(buffer);
|
||||||
|
@ -2920,6 +2925,7 @@ void X11DRV_FONT_InitX11Metrics( void )
|
||||||
/* deal with systemwide font metrics cache */
|
/* deal with systemwide font metrics cache */
|
||||||
|
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
|
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
|
||||||
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, INIFontSection, &hkey))
|
||||||
{
|
{
|
||||||
DWORD type, count = buf_size;
|
DWORD type, count = buf_size;
|
||||||
|
|
|
@ -668,7 +668,7 @@ void OnSize( UINT nType, int cx, int cy )
|
||||||
void LoadSettings(void)
|
void LoadSettings(void)
|
||||||
{
|
{
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
TCHAR szSubKey[] = _T("Software\\ReactWare\\TaskManager");
|
TCHAR szSubKey[] = _T("Software\\Wine\\TaskManager");
|
||||||
int i;
|
int i;
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
|
|
||||||
|
@ -761,6 +761,7 @@ void LoadSettings(void)
|
||||||
TaskManagerSettings.ShowKernelTimes = FALSE;
|
TaskManagerSettings.ShowKernelTimes = FALSE;
|
||||||
|
|
||||||
/* Open the key */
|
/* Open the key */
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\TaskManager */
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, szSubKey, 0, KEY_READ, &hKey) != ERROR_SUCCESS)
|
if (RegOpenKeyEx(HKEY_CURRENT_USER, szSubKey, 0, KEY_READ, &hKey) != ERROR_SUCCESS)
|
||||||
return;
|
return;
|
||||||
/* Read the settings */
|
/* Read the settings */
|
||||||
|
@ -774,18 +775,11 @@ void LoadSettings(void)
|
||||||
void SaveSettings(void)
|
void SaveSettings(void)
|
||||||
{
|
{
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
TCHAR szSubKey1[] = _T("Software");
|
TCHAR szSubKey3[] = _T("Software\\Wine\\TaskManager");
|
||||||
TCHAR szSubKey2[] = _T("Software\\ReactWare");
|
|
||||||
TCHAR szSubKey3[] = _T("Software\\ReactWare\\TaskManager");
|
|
||||||
|
|
||||||
/* Open (or create) the key */
|
/* Open (or create) the key */
|
||||||
hKey = NULL;
|
|
||||||
RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey1, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL);
|
/* @@ Wine registry key: HKCU\Software\Wine\TaskManager */
|
||||||
RegCloseKey(hKey);
|
|
||||||
hKey = NULL;
|
|
||||||
RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey2, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL);
|
|
||||||
RegCloseKey(hKey);
|
|
||||||
hKey = NULL;
|
|
||||||
if (RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey3, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL) != ERROR_SUCCESS)
|
if (RegCreateKeyEx(HKEY_CURRENT_USER, szSubKey3, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL) != ERROR_SUCCESS)
|
||||||
return;
|
return;
|
||||||
/* Save the settings */
|
/* Save the settings */
|
||||||
|
|
|
@ -75,6 +75,7 @@ int main (int argc, char *argv[])
|
||||||
|
|
||||||
maxLength = sizeof(szBrowsers);
|
maxLength = sizeof(szBrowsers);
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */
|
||||||
if(RegCreateKeyEx( HKEY_CURRENT_USER,
|
if(RegCreateKeyEx( HKEY_CURRENT_USER,
|
||||||
"Software\\Wine\\WineBrowser", 0, NULL,
|
"Software\\Wine\\WineBrowser", 0, NULL,
|
||||||
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL,
|
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL,
|
||||||
|
|
|
@ -169,6 +169,7 @@ static unsigned dbg_load_internal_vars(void)
|
||||||
#include "intvar.h"
|
#include "intvar.h"
|
||||||
#undef INTERNAL_VAR
|
#undef INTERNAL_VAR
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\WineDbg */
|
||||||
if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey))
|
if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey))
|
||||||
{
|
{
|
||||||
WINE_ERR("Cannot create WineDbg key in registry\n");
|
WINE_ERR("Cannot create WineDbg key in registry\n");
|
||||||
|
@ -196,6 +197,7 @@ static unsigned dbg_save_internal_vars(void)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\WineDbg */
|
||||||
if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey))
|
if (RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\WineDbg", &hkey))
|
||||||
{
|
{
|
||||||
WINE_ERR("Cannot create WineDbg key in registry\n");
|
WINE_ERR("Cannot create WineDbg key in registry\n");
|
||||||
|
|
|
@ -445,6 +445,7 @@ static char *extract_icon( LPCWSTR path, int index)
|
||||||
/* Where should we save the icon? */
|
/* Where should we save the icon? */
|
||||||
WINE_TRACE("path=[%s] index=%d\n", wine_dbgstr_w(path), index);
|
WINE_TRACE("path=[%s] index=%d\n", wine_dbgstr_w(path), index);
|
||||||
iconsdir=NULL; /* Default is no icon */
|
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 ))
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\Wine", &hkey ))
|
||||||
{
|
{
|
||||||
static const WCHAR IconsDirW[] = {'I','c','o','n','s','D','i','r',0};
|
static const WCHAR IconsDirW[] = {'I','c','o','n','s','D','i','r',0};
|
||||||
|
|
|
@ -276,6 +276,7 @@ void LoadBoard( BOARD *p_board )
|
||||||
char key_name[8];
|
char key_name[8];
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\WineMine */
|
||||||
RegOpenKeyEx( HKEY_CURRENT_USER, registry_key,
|
RegOpenKeyEx( HKEY_CURRENT_USER, registry_key,
|
||||||
0, KEY_QUERY_VALUE, &hkey );
|
0, KEY_QUERY_VALUE, &hkey );
|
||||||
|
|
||||||
|
@ -360,6 +361,7 @@ void SaveBoard( BOARD *p_board )
|
||||||
char data[16];
|
char data[16];
|
||||||
char key_name[8];
|
char key_name[8];
|
||||||
|
|
||||||
|
/* @@ Wine registry key: HKCU\Software\Wine\WineMine */
|
||||||
if( RegCreateKeyEx( HKEY_CURRENT_USER, registry_key,
|
if( RegCreateKeyEx( HKEY_CURRENT_USER, registry_key,
|
||||||
0, NULL,
|
0, NULL,
|
||||||
REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
|
REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
|
||||||
|
|
Loading…
Reference in New Issue