internal static extern bool AuthzGetInformationFromContext( SafeAuthZClientContextHandle hAuthzClientContext, AUTHZ_CONTEXT_INFORMATION_CLASS InfoClass, int BufferSize, out int pSizeRequired, SafeBuffer Buffer );
internal static extern bool AuthzInitializeContextFromAuthzContext( int Flags, SafeAuthZClientContextHandle hAuthzClientContext, LargeInteger pExpirationTime, Luid Identifier, IntPtr DynamicGroupArgs, out SafeAuthZClientContextHandle phNewAuthzClientContext );
internal static extern bool AuthzInitializeContextFromToken( int Flags, SafeKernelObjectHandle TokenHandle, SafeAuthZResourceManagerHandle hAuthzResourceManager, LargeInteger pExpirationTime, Luid Identifier, IntPtr DynamicGroupArgs, out SafeAuthZClientContextHandle phAuthzClientContext );
internal static extern bool AuthzInitializeContextFromSid( AuthZContextInitializeSidFlags Flags, SafeSidBufferHandle UserSid, SafeAuthZResourceManagerHandle hAuthzResourceManager, LargeInteger pExpirationTime, Luid Identifier, IntPtr DynamicGroupArgs, out SafeAuthZClientContextHandle phAuthzClientContext );
internal static extern bool AuthzAccessCheck( AuthZAccessCheckFlags Flags, SafeAuthZClientContextHandle hAuthzClientContext, ref AUTHZ_ACCESS_REQUEST pRequest, IntPtr hAuditEvent, SafeBuffer pSecurityDescriptor, IntPtr[] OptionalSecurityDescriptorArray, int OptionalSecurityDescriptorCount, ref AUTHZ_ACCESS_REPLY pReply, IntPtr phAccessCheckResults );
internal static extern bool AuthzModifySids( SafeAuthZClientContextHandle hAuthzClientContext, AUTHZ_CONTEXT_INFORMATION_CLASS SidClass, AuthZSidOperation[] pSidOperations, SafeTokenGroupsBuffer pSids );
internal static extern bool AuthzSetAppContainerInformation( SafeAuthZClientContextHandle hAuthzClientContext, SafeSidBufferHandle pAppContainerSid, int CapabilityCount, SafeBuffer pCapabilitySids );
private AuthZContext(SafeAuthZClientContextHandle handle) { _handle = handle; }
private AuthZContext(SafeAuthZClientContextHandle handle, bool remote) { _handle = handle; Remote = remote; }