-- Autogenerated by MSIL2Ada v. 2
-- By: Martin C. Carlisle
--     Department of Computer Science
--     US Air Force Academy
--     carlislem@acm.org
pragma Extensions_Allowed(On);
with MSSyst.Object;
with MSIL_Types;
use MSIL_Types;
with type MSSyst.Security.Principal.IIdentity.Ref is access;
with type MSSyst.Runtime.Serialization.ISerializable.Ref is access;
with type MSSyst.Runtime.Serialization.IDeserializationCallback.Ref is access;
with type MSSyst.Object.Ref is access;
with type MSSyst.String.Ref is access;
with type MSSyst.Type_k.Ref is access;
with type MSSyst.Security.Principal.WindowsImpersonationContext.Ref is access;
with MSSyst.Security.Principal.WindowsAccountType;
with type MSSyst.Runtime.Serialization.SerializationInfo.Ref is access;
with type MSSyst.Runtime.Serialization.StreamingContext.Valuetype is tagged;
with MSSyst.Object;
package MSSyst.Security.Principal.WindowsIdentity is
   type Typ;
   type Ref is access all Typ'Class;
   type Ref_addrof is access all Ref;
   type Ref_Arr is array(Natural range <>) of Ref;
   type Ref_Array is access all Ref_Arr;
   type Ref_Array_addrof is access all Ref_Array;
   type Typ(
         I_IIdentity : MSSyst.Security.Principal.IIdentity.Ref;
         I_ISerializable : MSSyst.Runtime.Serialization.ISerializable.Ref;
         I_IDeserializationCallback : MSSyst.Runtime.Serialization.IDeserializationCallback.Ref
      ) is new MSSyst.Object.Typ with record
      null;
   end record;
   function new_WindowsIdentity(
      This : Ref := null;
      userToken : MSIL_Types.native_int) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      sUserPrincipalName : MSSyst.String.Ref) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      userToken : MSIL_Types.native_int;
      type_k : MSSyst.String.Ref) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      sUserPrincipalName : MSSyst.String.Ref;
      type_k : MSSyst.String.Ref) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      userToken : MSIL_Types.native_int;
      type_k : MSSyst.String.Ref;
      acctType : MSSyst.Security.Principal.WindowsAccountType.Valuetype) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      userToken : MSIL_Types.native_int;
      type_k : MSSyst.String.Ref;
      acctType : MSSyst.Security.Principal.WindowsAccountType.Valuetype;
      isAuthenticated : Standard.Boolean) return Ref;
   function new_WindowsIdentity(
      This : Ref := null;
      info : MSSyst.Runtime.Serialization.SerializationInfo.Ref;
      context : MSSyst.Runtime.Serialization.StreamingContext.Valuetype) return Ref;
   function get_AuthenticationType(
      This : access Typ) return MSSyst.String.Ref;
   function get_IsAnonymous(
      This : access Typ) return Standard.Boolean;
   function get_IsAuthenticated(
      This : access Typ) return Standard.Boolean;
   function get_IsGuest(
      This : access Typ) return Standard.Boolean;
   function get_IsSystem(
      This : access Typ) return Standard.Boolean;
   function get_Name(
      This : access Typ) return MSSyst.String.Ref;
   function get_Token(
      This : access Typ) return MSIL_Types.native_int;
   function GetAnonymous return MSSyst.Security.Principal.WindowsIdentity.Ref;
   function GetCurrent return MSSyst.Security.Principal.WindowsIdentity.Ref;
   function Impersonate(
      userToken : MSIL_Types.native_int) return MSSyst.Security.Principal.WindowsImpersonationContext.Ref;
   function Impersonate(
      This : access Typ) return MSSyst.Security.Principal.WindowsImpersonationContext.Ref;
private
   pragma Convention(MSIL,Typ);
   pragma MSIL_Constructor(new_WindowsIdentity);
   pragma Import(MSIL,get_AuthenticationType,"get_AuthenticationType");
   pragma Import(MSIL,get_IsAnonymous,"get_IsAnonymous");
   pragma Import(MSIL,get_IsAuthenticated,"get_IsAuthenticated");
   pragma Import(MSIL,get_IsGuest,"get_IsGuest");
   pragma Import(MSIL,get_IsSystem,"get_IsSystem");
   pragma Import(MSIL,get_Name,"get_Name");
   pragma Import(MSIL,get_Token,"get_Token");
   pragma Import(MSIL,GetAnonymous,"GetAnonymous");
   pragma Import(MSIL,GetCurrent,"GetCurrent");
   pragma Import(MSIL,Impersonate,"Impersonate");
end MSSyst.Security.Principal.WindowsIdentity;
pragma Extensions_Allowed(Off);
pragma Import(MSIL,MSSyst.Security.Principal.WindowsIdentity,
   ".ver 1:0:5000:0 .publickeytoken=( b7 7a 5c 56 19 34 e0 89 )",
   "[mscorlib]System.Security.Principal.WindowsIdentity");
