public static RegistryCloseKey ( UIntPtr hKey ) : Boolean | ||
hKey | UIntPtr | |
return | Boolean |
public static Boolean RegistryCloseKey(UIntPtr hKey)
{
int Result = SafeNativeMethods.RegCloseKey(hKey);
if (Result != 0)
{
Console.WriteLine("RegCloseKey error:{0}", LastError(Result));
return false;
}
return true;
}