public static extern NtStatus NtCreateToken( out SafeKernelObjectHandle TokenHandle, TokenAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes, TokenType TokenType, [In] ref Luid AuthenticationId, [In] LargeInteger ExpirationTime, [In] ref TokenUser TokenUser, [In] SafeTokenGroupsBuffer TokenGroups, [In] SafeTokenPrivilegesBuffer TokenPrivileges, [In] ref TokenOwner TokenOwner, [In] ref TokenPrimaryGroup TokenPrimaryGroup, [In] ref TokenDefaultDacl TokenDefaultDacl, [In] TokenSource TokenSource);
/// <summary> /// Constructor /// </summary> /// <param name="value">The value</param> public OptionalTokenOwner(TokenOwner value) { Value = value; }