Пример #1
0
        internal static string[] GetEntryStringArray(string name)
        {
            UIntPtr size;

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

            if (arrPtr == IntPtr.Zero)
            {
                ThrowException(name, namePtr, size, NtType.StringArray);
            }
            string[] arr = GetStringArrayFromPtr(arrPtr, arrSize);
            Interop.NT_FreeStringArray(arrPtr, arrSize);
            return(arr);
        }