Abstractions.WindowsApi.pInvokes.RegistryCreateKey C# (CSharp) Метод

RegistryCreateKey() публичный статический Метод

public static RegistryCreateKey ( structenums RootKey, string SubKey ) : UIntPtr
RootKey structenums
SubKey string
Результат UIntPtr
        public static UIntPtr RegistryCreateKey(structenums.baseKey RootKey, string SubKey)
        {
            UIntPtr hKey = UIntPtr.Zero;
            int Result = SafeNativeMethods.RegCreateKey(RootKey, SubKey, ref hKey);
            if (Result != 0)
            {
                Console.WriteLine("RegCreateKey error:{0}", LastError(Result));
            }

            return hKey;
        }