Exemple #1
0
        internal static bool[] GetEntryBooleanArray(string name)
        {
            UIntPtr size;

            byte[]  namePtr    = CreateUTF8String(name, out size);
            UIntPtr arrSize    = UIntPtr.Zero;
            ulong   lastChange = 0;
            IntPtr  arrPtr     = Interop.NT_GetEntryBooleanArray(namePtr, size, ref lastChange, ref arrSize);

            if (arrPtr == IntPtr.Zero)
            {
                ThrowException(name, namePtr, size, NtType.BooleanArray);
            }
            bool[] arr = GetBooleanArrayFromPtr(arrPtr, arrSize);
            Interop.NT_FreeBooleanArray(arrPtr);
            return(arr);
        }