Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DeleteValue()

void Internal.Win32.RegistryKey.DeleteValue ( string name,
bool throwOnMissingValue )
inline

Definition at line 28 of file RegistryKey.cs.

29 {
30 int num = Interop.Advapi32.RegDeleteValue(_hkey, name);
31 if (num == 2 || num == 206)
32 {
34 {
36 }
37 num = 0;
38 }
39 }
readonly SafeRegistryHandle _hkey
static int RegDeleteValue(SafeRegistryHandle hKey, string lpValueName)
static string Arg_RegSubKeyValueAbsent
Definition SR.cs:390
Definition SR.cs:7

References Internal.Win32.RegistryKey._hkey, System.SR.Arg_RegSubKeyValueAbsent, and Interop.Advapi32.RegDeleteValue().

Referenced by System.Environment.SetEnvironmentVariableFromRegistry().