예제 #1
0
        internal static bool SetEntryBoolean(string name, bool value, bool force = false)
        {
            UIntPtr size;

            byte[] namePtr = CreateUTF8String(name, out size);
            int    retVal  = Interop.NT_SetEntryBoolean(namePtr, size, value ? 1 : 0, force ? 1 : 0);

            return(retVal != 0);
        }