System.Data.Win32NativeMethods.IsTokenRestrictedWrapper C# (CSharp) Méthode

IsTokenRestrictedWrapper() static private méthode

static private IsTokenRestrictedWrapper ( IntPtr token ) : bool
token IntPtr
Résultat bool
        internal static bool IsTokenRestrictedWrapper(IntPtr token)
        {
            bool isRestricted;
            uint result = SNINativeMethodWrapper.UnmanagedIsTokenRestricted(token, out isRestricted);

            if (result != 0)
            {
                Marshal.ThrowExceptionForHR(unchecked((int)result));
            }

            return isRestricted;
        }
    }
Win32NativeMethods