public static extern NtStatus SamCreateAliasInDomain(
     [In] IntPtr DomainHandle,
     [In] ref UnicodeString AccountName,
     [In] SamAliasAccess DesiredAccess,
     [Out] out IntPtr AliasHandle,
     [Out] out int RelativeId
     );
 public static extern NtStatus SamOpenAlias(
     [In] IntPtr DomainHandle,
     [In] SamAliasAccess DesiredAccess,
     [In] int AliasId,
     [Out] out IntPtr AliasHandle
     );