wine  6.0.1
About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.
  Fossies Dox: wine-6.0.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ntsecapi.h File Reference
#include <guiddef.h>
Include dependency graph for ntsecapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _STRING
 
struct  _UNICODE_STRING
 
struct  _OBJECT_ATTRIBUTES
 
struct  _SecHandle
 
struct  _POLICY_AUDIT_EVENTS_INFO
 
struct  _POLICY_PRIMARY_DOMAIN_INFO
 
struct  _POLICY_ACCOUNT_DOMAIN_INFO
 
struct  _POLICY_DNS_DOMAIN_INFO
 
struct  _POLICY_LSA_SERVER_ROLE_INFO
 
struct  _POLICY_MODIFICATION_INFO
 
struct  _SECURITY_LOGON_SESSION_DATA
 
struct  LSA_TRANSLATED_NAME
 
struct  LSA_TRUST_INFORMATION
 
struct  LSA_REFERENCED_DOMAIN_LIST
 
struct  _LSA_TRANSLATED_SID
 
struct  _TRUSTED_DOMAIN_INFORMATION_EX
 
struct  _LSA_AUTH_INFORMATION
 
struct  _TRUSTED_DOMAIN_AUTH_INFORMATION
 
struct  _LSA_TRANSLATED_SID2
 
struct  _AUDIT_POLICY_INFORMATION
 
struct  _KERB_TICKET_CACHE_INFO
 
struct  _KERB_QUERY_TKT_CACHE_REQUEST
 
struct  _KERB_QUERY_TKT_CACHE_RESPONSE
 
struct  _KERB_RETRIEVE_TKT_REQUEST
 
struct  _KERB_PURGE_TKT_CACHE_REQUEST
 

Macros

#define POLICY_VIEW_LOCAL_INFORMATION   __MSABI_LONG(0x00000001)
 
#define POLICY_VIEW_AUDIT_INFORMATION   __MSABI_LONG(0x00000002)
 
#define POLICY_GET_PRIVATE_INFORMATION   __MSABI_LONG(0x00000004)
 
#define POLICY_TRUST_ADMIN   __MSABI_LONG(0x00000008)
 
#define POLICY_CREATE_ACCOUNT   __MSABI_LONG(0x00000010)
 
#define POLICY_CREATE_SECRET   __MSABI_LONG(0x00000020)
 
#define POLICY_CREATE_PRIVILEGE   __MSABI_LONG(0x00000040)
 
#define POLICY_SET_DEFAULT_QUOTA_LIMITS   __MSABI_LONG(0x00000080)
 
#define POLICY_SET_AUDIT_REQUIREMENTS   __MSABI_LONG(0x00000100)
 
#define POLICY_AUDIT_LOG_ADMIN   __MSABI_LONG(0x00000200)
 
#define POLICY_SERVER_ADMIN   __MSABI_LONG(0x00000400)
 
#define POLICY_LOOKUP_NAMES   __MSABI_LONG(0x00000800)
 
#define POLICY_NOTIFICATION   __MSABI_LONG(0x00001000)
 
#define POLICY_ALL_ACCESS
 
#define POLICY_READ
 
#define POLICY_WRITE
 
#define POLICY_EXECUTE
 
#define POLICY_AUDIT_EVENT_UNCHANGED   __MSABI_LONG(0x00000000)
 
#define POLICY_AUDIT_EVENT_SUCCESS   __MSABI_LONG(0x00000001)
 
#define POLICY_AUDIT_EVENT_FAILURE   __MSABI_LONG(0x00000002)
 
#define POLICY_AUDIT_EVENT_NONE   __MSABI_LONG(0x00000004)
 
#define POLICY_AUDIT_EVENT_MASK
 
#define SE_BATCH_LOGON_NAME    TEXT("SeBatchLogonRight")
 
#define SE_INTERACTIVE_LOGON_NAME    TEXT("SeInteractiveLogonRight")
 
#define SE_NETWORK_LOGON_NAME    TEXT("SeNetworkLogonRight")
 
#define SE_REMOTE_INTERACTIVE_LOGON_NAME    TEXT("SeRemoteInteractiveLogonRight")
 
#define SE_SERVICE_LOGON_NAME    TEXT("SeServiceLogonRight")
 
#define SE_DENY_BATCH_LOGON_NAME    TEXT("SeDenyBatchLogonRight")
 
#define SE_DENY_INTERACTIVE_LOGON_NAME    TEXT("SeDenyInteractiveLogonRight")
 
#define SE_DENY_NETWORK_LOGON_NAME    TEXT("SeDenyNetworkLogonRight")
 
#define SE_DENY_REMOTE_INTERACTIVE_LOGON_NAME    TEXT("SeDenyRemoteInteractiveLogonRight")
 
#define SE_DENY_SERVICE_LOGON_NAME    TEXT("SeDenyServiceLogonRight")
 
#define WINE_NTSTATUS_DECLARED
 
#define WINE_PNTSTATUS_DECLARED
 
#define __STRING_DEFINED__
 
#define __UNICODE_STRING_DEFINED__
 
#define __OBJECT_ATTRIBUTES_DEFINED__
 
#define __SECHANDLE_DEFINED__
 
#define MICROSOFT_KERBEROS_NAME_A   "Kerberos"
 
#define KERB_TICKET_FLAGS_reserved   0x80000000
 
#define KERB_TICKET_FLAGS_forwardable   0x40000000
 
#define KERB_TICKET_FLAGS_forwarded   0x20000000
 
#define KERB_TICKET_FLAGS_proxiable   0x10000000
 
#define KERB_TICKET_FLAGS_proxy   0x08000000
 
#define KERB_TICKET_FLAGS_may_postdate   0x04000000
 
#define KERB_TICKET_FLAGS_postdated   0x02000000
 
#define KERB_TICKET_FLAGS_invalid   0x01000000
 
#define KERB_TICKET_FLAGS_renewable   0x00800000
 
#define KERB_TICKET_FLAGS_initial   0x00400000
 
#define KERB_TICKET_FLAGS_pre_authent   0x00200000
 
#define KERB_TICKET_FLAGS_hw_authent   0x00100000
 
#define KERB_TICKET_FLAGS_ok_as_delegate   0x00040000
 
#define KERB_TICKET_FLAGS_name_canonicalize   0x00010000
 
#define KERB_TICKET_FLAGS_cname_in_pa_data   0x00040000
 
#define KERB_TICKET_FLAGS_reserved1   0x00000001
 
#define RtlGenRandom   SystemFunction036
 
#define RtlEncryptMemory   SystemFunction040
 
#define RtlDecryptMemory   SystemFunction041
 

Typedefs

typedef LONG NTSTATUS
 
typedef NTSTATUSPNTSTATUS
 
typedef enum _SECURITY_LOGON_TYPE SECURITY_LOGON_TYPE
 
typedef enum _SECURITY_LOGON_TYPEPSECURITY_LOGON_TYPE
 
typedef enum _POLICY_AUDIT_EVENT_TYPE POLICY_AUDIT_EVENT_TYPE
 
typedef enum _POLICY_AUDIT_EVENT_TYPEPPOLICY_AUDIT_EVENT_TYPE
 
typedef struct _STRING STRING
 
typedef struct _STRINGPSTRING
 
typedef struct _UNICODE_STRING UNICODE_STRING
 
typedef struct _UNICODE_STRINGPUNICODE_STRING
 
typedef struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES
 
typedef struct _OBJECT_ATTRIBUTESPOBJECT_ATTRIBUTES
 
typedef struct _SecHandle SecHandle
 
typedef struct _SecHandlePSecHandle
 
typedef UNICODE_STRING LSA_UNICODE_STRING
 
typedef UNICODE_STRINGPLSA_UNICODE_STRING
 
typedef STRING LSA_STRING
 
typedef STRINGPLSA_STRING
 
typedef OBJECT_ATTRIBUTES LSA_OBJECT_ATTRIBUTES
 
typedef OBJECT_ATTRIBUTESPLSA_OBJECT_ATTRIBUTES
 
typedef PVOID LSA_HANDLE
 
typedef PVOIDPLSA_HANDLE
 
typedef ULONG LSA_ENUMERATION_HANDLE
 
typedef ULONGPLSA_ENUMERATION_HANDLE
 
typedef ULONG LSA_OPERATIONAL_MODE
 
typedef ULONGPLSA_OPERATIONAL_MODE
 
typedef enum POLICY_INFORMATION_CLASSPPOLICY_INFORMATION_CLASS
 
typedef ULONG POLICY_AUDIT_EVENT_OPTIONS
 
typedef ULONGPPOLICY_AUDIT_EVENT_OPTIONS
 
typedef struct _POLICY_AUDIT_EVENTS_INFO POLICY_AUDIT_EVENTS_INFO
 
typedef struct _POLICY_AUDIT_EVENTS_INFOPPOLICY_AUDIT_EVENTS_INFO
 
typedef struct _POLICY_PRIMARY_DOMAIN_INFO POLICY_PRIMARY_DOMAIN_INFO
 
typedef struct _POLICY_PRIMARY_DOMAIN_INFOPPOLICY_PRIMARY_DOMAIN_INFO
 
typedef struct _POLICY_ACCOUNT_DOMAIN_INFO POLICY_ACCOUNT_DOMAIN_INFO
 
typedef struct _POLICY_ACCOUNT_DOMAIN_INFOPPOLICY_ACCOUNT_DOMAIN_INFO
 
typedef struct _POLICY_DNS_DOMAIN_INFO POLICY_DNS_DOMAIN_INFO
 
typedef struct _POLICY_DNS_DOMAIN_INFOPPOLICY_DNS_DOMAIN_INFO
 
typedef enum _POLICY_LSA_SERVER_ROLE POLICY_LSA_SERVER_ROLE
 
typedef enum _POLICY_LSA_SERVER_ROLEPPOLICY_LSA_SERVER_ROLE
 
typedef struct _POLICY_LSA_SERVER_ROLE_INFO POLICY_LSA_SERVER_ROLE_INFO
 
typedef struct _POLICY_LSA_SERVER_ROLE_INFOPPOLICY_LSA_SERVER_ROLE_INFO
 
typedef struct _POLICY_MODIFICATION_INFO POLICY_MODIFICATION_INFO
 
typedef struct _POLICY_MODIFICATION_INFOPPOLICY_MODIFICATION_INFO
 
typedef struct _SECURITY_LOGON_SESSION_DATA SECURITY_LOGON_SESSION_DATA
 
typedef struct _SECURITY_LOGON_SESSION_DATAPSECURITY_LOGON_SESSION_DATA
 
typedef struct LSA_TRANSLATED_NAMEPLSA_TRANSLATED_NAME
 
typedef struct LSA_TRUST_INFORMATIONPLSA_TRUST_INFORMATION
 
typedef struct LSA_REFERENCED_DOMAIN_LISTPLSA_REFERENCED_DOMAIN_LIST
 
typedef struct _LSA_TRANSLATED_SID LSA_TRANSLATED_SID
 
typedef struct _LSA_TRANSLATED_SIDPLSA_TRANSLATED_SID
 
typedef struct _TRUSTED_DOMAIN_INFORMATION_EX TRUSTED_DOMAIN_INFORMATION_EX
 
typedef struct _TRUSTED_DOMAIN_INFORMATION_EXPTRUSTED_DOMAIN_INFORMATION_EX
 
typedef struct _LSA_AUTH_INFORMATION LSA_AUTH_INFORMATION
 
typedef struct _LSA_AUTH_INFORMATIONPLSA_AUTH_INFORMATION
 
typedef struct _TRUSTED_DOMAIN_AUTH_INFORMATION TRUSTED_DOMAIN_AUTH_INFORMATION
 
typedef struct _TRUSTED_DOMAIN_AUTH_INFORMATIONPTRUSTED_DOMAIN_AUTH_INFORMATION
 
typedef struct _LSA_TRANSLATED_SID2 LSA_TRANSLATED_SID2
 
typedef struct _LSA_TRANSLATED_SID2PLSA_TRANSLATED_SID2
 
typedef enum _TRUSTED_INFORMATION_CLASS TRUSTED_INFORMATION_CLASS
 
typedef enum _TRUSTED_INFORMATION_CLASSPTRUSTED_INFORMATION_CLASS
 
typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASS POLICY_NOTIFICATION_INFORMATION_CLASS
 
typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASSPPOLICY_NOTIFICATION_INFORMATION_CLASS
 
typedef struct _AUDIT_POLICY_INFORMATION AUDIT_POLICY_INFORMATION
 
typedef struct _AUDIT_POLICY_INFORMATIONPAUDIT_POLICY_INFORMATION
 
typedef enum _KERB_PROTOCOL_MESSAGE_TYPE KERB_PROTOCOL_MESSAGE_TYPE
 
typedef enum _KERB_PROTOCOL_MESSAGE_TYPEPKERB_PROTOCOL_MESSAGE_TYPE
 
typedef struct _KERB_TICKET_CACHE_INFO KERB_TICKET_CACHE_INFO
 
typedef struct _KERB_TICKET_CACHE_INFOPKERB_TICKET_CACHE_INFO
 
typedef struct _KERB_QUERY_TKT_CACHE_REQUEST KERB_QUERY_TKT_CACHE_REQUEST
 
typedef struct _KERB_QUERY_TKT_CACHE_REQUESTPKERB_QUERY_TKT_CACHE_REQUEST
 
typedef struct _KERB_QUERY_TKT_CACHE_RESPONSE KERB_QUERY_TKT_CACHE_RESPONSE
 
typedef struct _KERB_QUERY_TKT_CACHE_RESPONSEPKERB_QUERY_TKT_CACHE_RESPONSE
 
typedef struct _KERB_RETRIEVE_TKT_REQUEST KERB_RETRIEVE_TKT_REQUEST
 
typedef struct _KERB_RETRIEVE_TKT_REQUESTPKERB_RETRIEVE_TKT_REQUEST
 
typedef struct _KERB_PURGE_TKT_CACHE_REQUEST KERB_PURGE_TKT_CACHE_REQUEST
 
typedef struct _KERB_PURGE_TKT_CACHE_REQUESTPKERB_PURGE_TKT_CACHE_REQUEST
 

Enumerations

enum  _SECURITY_LOGON_TYPE {
  Interactive = 2 , Network , Batch , Service ,
  Proxy
}
 
enum  _POLICY_AUDIT_EVENT_TYPE {
  AuditCategorySystem , AuditCategoryLogon , AuditCategoryObjectAccess , AuditCategoryPrivilegeUse ,
  AuditCategoryDetailedTracking , AuditCategoryPolicyChange , AuditCategoryAccountManagement
}
 
enum  POLICY_INFORMATION_CLASS {
  PolicyAuditLogInformation = 1 , PolicyAuditEventsInformation , PolicyPrimaryDomainInformation , PolicyPdAccountInformation ,
  PolicyAccountDomainInformation , PolicyLsaServerRoleInformation , PolicyReplicaSourceInformation , PolicyDefaultQuotaInformation ,
  PolicyModificationInformation , PolicyAuditFullSetInformation , PolicyAuditFullQueryInformation , PolicyDnsDomainInformation
}
 
enum  _POLICY_LSA_SERVER_ROLE { PolicyServerRoleBackup = 2 , PolicyServerRolePrimary }
 
enum  _TRUSTED_INFORMATION_CLASS {
  TrustedDomainNameInformation = 1 , TrustedControllersInformation , TrustedPosixOffsetInformation , TrustedPasswordInformation ,
  TrustedDomainInformationBasic , TrustedDomainInformationEx , TrustedDomainAuthInformation , TrustedDomainFullInformation
}
 
enum  _POLICY_NOTIFICATION_INFORMATION_CLASS {
  PolicyNotifyAuditEventsInformation = 1 , PolicyNotifyAccountDomainInformation , PolicyNotifyServerRoleInformation , PolicyNotifyDnsDomainInformation ,
  PolicyNotifyDomainEfsInformation , PolicyNotifyDomainKerberosTicketInformation , PolicyNotifyMachineAccountPasswordInformation
}
 
enum  _KERB_PROTOCOL_MESSAGE_TYPE {
  KerbDebugRequestMessage = 0 , KerbQueryTicketCacheMessage , KerbChangeMachinePasswordMessage , KerbVerifyPacMessage ,
  KerbRetrieveTicketMessage , KerbUpdateAddressesMessage , KerbPurgeTicketCacheMessage , KerbChangePasswordMessage ,
  KerbRetrieveEncodedTicketMessage , KerbDecryptDataMessage , KerbAddBindingCacheEntryMessage , KerbSetPasswordMessage ,
  KerbSetPasswordExMessage , KerbVerifyCredentialsMessage , KerbQueryTicketCacheExMessage , KerbPurgeTicketCacheExMessage ,
  KerbRefreshSmartcardCredentialsMessage , KerbAddExtraCredentialsMessage , KerbQuerySupplementalCredentialsMessage , KerbTransferCredentialsMessage ,
  KerbQueryTicketCacheEx2Message , KerbSubmitTicketMessage , KerbAddExtraCredentialsExMessage , KerbQueryKdcProxyCacheMessage ,
  KerbPurgeKdcProxyCacheMessage , KerbQueryTicketCacheEx3Message , KerbCleanupMachinePkinitCredsMessage , KerbAddBindingCacheEntryExMessage ,
  KerbQueryBindingCacheMessage , KerbPurgeBindingCacheMessage , KerbQueryDomainExtendedPoliciesMessage , KerbQueryS4U2ProxyCacheMessage
}
 

Functions

BOOLEAN WINAPI AuditQuerySystemPolicy (const GUID *, ULONG, AUDIT_POLICY_INFORMATION **)
 
BOOLEAN WINAPI SystemFunction036 (PVOID, ULONG)
 
NTSTATUS WINAPI SystemFunction040 (PVOID, ULONG, ULONG)
 
NTSTATUS WINAPI SystemFunction041 (PVOID, ULONG, ULONG)
 
NTSTATUS WINAPI LsaAddAccountRights (LSA_HANDLE, PSID, PLSA_UNICODE_STRING, ULONG)
 
NTSTATUS WINAPI LsaCallAuthenticationPackage (HANDLE, ULONG, PVOID, ULONG, PVOID *, PULONG, PNTSTATUS)
 
NTSTATUS WINAPI LsaClose (LSA_HANDLE)
 
NTSTATUS WINAPI LsaConnectUntrusted (PHANDLE)
 
NTSTATUS WINAPI LsaCreateTrustedDomainEx (LSA_HANDLE, PTRUSTED_DOMAIN_INFORMATION_EX, PTRUSTED_DOMAIN_AUTH_INFORMATION, ACCESS_MASK, PLSA_HANDLE)
 
NTSTATUS WINAPI LsaDeleteTrustedDomain (LSA_HANDLE, PSID)
 
NTSTATUS WINAPI LsaDeregisterLogonProcess (HANDLE)
 
NTSTATUS WINAPI LsaEnumerateAccountRights (LSA_HANDLE, PSID, PLSA_UNICODE_STRING *, PULONG)
 
NTSTATUS WINAPI LsaEnumerateAccountsWithUserRight (LSA_HANDLE, PLSA_UNICODE_STRING, PVOID *, PULONG)
 
NTSTATUS WINAPI LsaEnumerateLogonSessions (PULONG, PLUID *)
 
NTSTATUS WINAPI LsaEnumerateTrustedDomains (LSA_HANDLE, PLSA_ENUMERATION_HANDLE, PVOID *, ULONG, PULONG)
 
NTSTATUS WINAPI LsaEnumerateTrustedDomainsEx (LSA_HANDLE, PLSA_ENUMERATION_HANDLE, PVOID *, ULONG, PULONG)
 
NTSTATUS WINAPI LsaFreeMemory (PVOID)
 
NTSTATUS WINAPI LsaFreeReturnBuffer (PVOID)
 
NTSTATUS WINAPI LsaGetLogonSessionData (PLUID, PSECURITY_LOGON_SESSION_DATA *)
 
NTSTATUS WINAPI LsaLogonUser (HANDLE, PLSA_STRING, SECURITY_LOGON_TYPE, ULONG, PVOID, ULONG, PTOKEN_GROUPS, PTOKEN_SOURCE, PVOID *, PULONG, PLUID, PHANDLE, PQUOTA_LIMITS, PNTSTATUS)
 
NTSTATUS WINAPI LsaLookupAuthenticationPackage (HANDLE, PLSA_STRING, PULONG)
 
NTSTATUS WINAPI LsaLookupNames (LSA_HANDLE, ULONG, PLSA_UNICODE_STRING, PLSA_REFERENCED_DOMAIN_LIST *, PLSA_TRANSLATED_SID *)
 
NTSTATUS WINAPI LsaLookupNames2 (LSA_HANDLE, ULONG, ULONG, PLSA_UNICODE_STRING, PLSA_REFERENCED_DOMAIN_LIST *, PLSA_TRANSLATED_SID2 *)
 
NTSTATUS WINAPI LsaLookupSids (LSA_HANDLE, ULONG, PSID *, PLSA_REFERENCED_DOMAIN_LIST *, PLSA_TRANSLATED_NAME *)
 
ULONG WINAPI LsaNtStatusToWinError (NTSTATUS)
 
NTSTATUS WINAPI LsaOpenPolicy (PLSA_UNICODE_STRING, PLSA_OBJECT_ATTRIBUTES, ACCESS_MASK, PLSA_HANDLE)
 
NTSTATUS WINAPI LsaOpenTrustedDomainByName (LSA_HANDLE, PLSA_UNICODE_STRING, ACCESS_MASK, PLSA_HANDLE)
 
NTSTATUS WINAPI LsaQueryInformationPolicy (LSA_HANDLE, POLICY_INFORMATION_CLASS, PVOID *)
 
NTSTATUS WINAPI LsaQueryTrustedDomainInfo (LSA_HANDLE, PSID, TRUSTED_INFORMATION_CLASS, PVOID *)
 
NTSTATUS WINAPI LsaQueryTrustedDomainInfoByName (LSA_HANDLE, PLSA_UNICODE_STRING, TRUSTED_INFORMATION_CLASS, PVOID *)
 
NTSTATUS WINAPI LsaRegisterLogonProcess (PLSA_STRING, PHANDLE, PLSA_OPERATIONAL_MODE)
 
NTSTATUS WINAPI LsaRegisterPolicyChangeNotification (POLICY_NOTIFICATION_INFORMATION_CLASS, HANDLE)
 
NTSTATUS WINAPI LsaRemoveAccountRights (LSA_HANDLE, PSID, BOOLEAN, PLSA_UNICODE_STRING, ULONG)
 
NTSTATUS WINAPI LsaRetrievePrivateData (LSA_HANDLE, PLSA_UNICODE_STRING, PLSA_UNICODE_STRING *)
 
NTSTATUS WINAPI LsaSetInformationPolicy (LSA_HANDLE, POLICY_INFORMATION_CLASS, PVOID)
 
NTSTATUS WINAPI LsaSetTrustedDomainInfoByName (LSA_HANDLE, PLSA_UNICODE_STRING, TRUSTED_INFORMATION_CLASS, PVOID)
 
NTSTATUS WINAPI LsaSetTrustedDomainInformation (LSA_HANDLE, PSID, TRUSTED_INFORMATION_CLASS, PVOID)
 
NTSTATUS WINAPI LsaStorePrivateData (LSA_HANDLE, PLSA_UNICODE_STRING, PLSA_UNICODE_STRING)
 
NTSTATUS WINAPI LsaUnregisterPolicyChangeNotification (POLICY_NOTIFICATION_INFORMATION_CLASS, HANDLE)
 

Variables

static const WCHAR MICROSOFT_KERBEROS_NAME_W [] = { 'K','e','r','b','e','r','o','s',0 }
 

Macro Definition Documentation

◆ __OBJECT_ATTRIBUTES_DEFINED__

#define __OBJECT_ATTRIBUTES_DEFINED__

Definition at line 161 of file ntsecapi.h.

◆ __SECHANDLE_DEFINED__

#define __SECHANDLE_DEFINED__

Definition at line 173 of file ntsecapi.h.

◆ __STRING_DEFINED__

#define __STRING_DEFINED__

Definition at line 143 of file ntsecapi.h.

◆ __UNICODE_STRING_DEFINED__

#define __UNICODE_STRING_DEFINED__

Definition at line 152 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_cname_in_pa_data

#define KERB_TICKET_FLAGS_cname_in_pa_data   0x00040000

Definition at line 380 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_forwardable

#define KERB_TICKET_FLAGS_forwardable   0x40000000

Definition at line 367 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_forwarded

#define KERB_TICKET_FLAGS_forwarded   0x20000000

Definition at line 368 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_hw_authent

#define KERB_TICKET_FLAGS_hw_authent   0x00100000

Definition at line 377 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_initial

#define KERB_TICKET_FLAGS_initial   0x00400000

Definition at line 375 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_invalid

#define KERB_TICKET_FLAGS_invalid   0x01000000

Definition at line 373 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_may_postdate

#define KERB_TICKET_FLAGS_may_postdate   0x04000000

Definition at line 371 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_name_canonicalize

#define KERB_TICKET_FLAGS_name_canonicalize   0x00010000

Definition at line 379 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_ok_as_delegate

#define KERB_TICKET_FLAGS_ok_as_delegate   0x00040000

Definition at line 378 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_postdated

#define KERB_TICKET_FLAGS_postdated   0x02000000

Definition at line 372 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_pre_authent

#define KERB_TICKET_FLAGS_pre_authent   0x00200000

Definition at line 376 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_proxiable

#define KERB_TICKET_FLAGS_proxiable   0x10000000

Definition at line 369 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_proxy

#define KERB_TICKET_FLAGS_proxy   0x08000000

Definition at line 370 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_renewable

#define KERB_TICKET_FLAGS_renewable   0x00800000

Definition at line 374 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_reserved

#define KERB_TICKET_FLAGS_reserved   0x80000000

Definition at line 366 of file ntsecapi.h.

◆ KERB_TICKET_FLAGS_reserved1

#define KERB_TICKET_FLAGS_reserved1   0x00000001

Definition at line 381 of file ntsecapi.h.

◆ MICROSOFT_KERBEROS_NAME_A

#define MICROSOFT_KERBEROS_NAME_A   "Kerberos"

Definition at line 359 of file ntsecapi.h.

◆ POLICY_ALL_ACCESS

#define POLICY_ALL_ACCESS
Value:
( \
STANDARD_RIGHTS_REQUIRED | \
POLICY_VIEW_LOCAL_INFORMATION | \
POLICY_VIEW_AUDIT_INFORMATION | \
POLICY_GET_PRIVATE_INFORMATION | \
POLICY_TRUST_ADMIN | \
POLICY_CREATE_ACCOUNT | \
POLICY_CREATE_SECRET | \
POLICY_CREATE_PRIVILEGE | \
POLICY_SET_DEFAULT_QUOTA_LIMITS | \
POLICY_SET_AUDIT_REQUIREMENTS | \
POLICY_AUDIT_LOG_ADMIN | \
POLICY_SERVER_ADMIN | \
POLICY_LOOKUP_NAMES)

Definition at line 45 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_FAILURE

#define POLICY_AUDIT_EVENT_FAILURE   __MSABI_LONG(0x00000002)

Definition at line 84 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_MASK

#define POLICY_AUDIT_EVENT_MASK
Value:
POLICY_AUDIT_EVENT_FAILURE | \
POLICY_AUDIT_EVENT_NONE)
#define POLICY_AUDIT_EVENT_SUCCESS
Definition: ntsecapi.h:83

Definition at line 87 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_NONE

#define POLICY_AUDIT_EVENT_NONE   __MSABI_LONG(0x00000004)

Definition at line 85 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_SUCCESS

#define POLICY_AUDIT_EVENT_SUCCESS   __MSABI_LONG(0x00000001)

Definition at line 83 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_UNCHANGED

#define POLICY_AUDIT_EVENT_UNCHANGED   __MSABI_LONG(0x00000000)

Definition at line 82 of file ntsecapi.h.

◆ POLICY_AUDIT_LOG_ADMIN

#define POLICY_AUDIT_LOG_ADMIN   __MSABI_LONG(0x00000200)

Definition at line 40 of file ntsecapi.h.

◆ POLICY_CREATE_ACCOUNT

#define POLICY_CREATE_ACCOUNT   __MSABI_LONG(0x00000010)

Definition at line 35 of file ntsecapi.h.

◆ POLICY_CREATE_PRIVILEGE

#define POLICY_CREATE_PRIVILEGE   __MSABI_LONG(0x00000040)

Definition at line 37 of file ntsecapi.h.

◆ POLICY_CREATE_SECRET

#define POLICY_CREATE_SECRET   __MSABI_LONG(0x00000020)

Definition at line 36 of file ntsecapi.h.

◆ POLICY_EXECUTE

#define POLICY_EXECUTE
Value:
( \
STANDARD_RIGHTS_EXECUTE | \
POLICY_VIEW_LOCAL_INFORMATION | \
POLICY_LOOKUP_NAMES)

Definition at line 77 of file ntsecapi.h.

◆ POLICY_GET_PRIVATE_INFORMATION

#define POLICY_GET_PRIVATE_INFORMATION   __MSABI_LONG(0x00000004)

Definition at line 33 of file ntsecapi.h.

◆ POLICY_LOOKUP_NAMES

#define POLICY_LOOKUP_NAMES   __MSABI_LONG(0x00000800)

Definition at line 42 of file ntsecapi.h.

◆ POLICY_NOTIFICATION

#define POLICY_NOTIFICATION   __MSABI_LONG(0x00001000)

Definition at line 43 of file ntsecapi.h.

◆ POLICY_READ

#define POLICY_READ
Value:
( \
STANDARD_RIGHTS_READ | \
POLICY_VIEW_AUDIT_INFORMATION | \
POLICY_GET_PRIVATE_INFORMATION)

Definition at line 61 of file ntsecapi.h.

◆ POLICY_SERVER_ADMIN

#define POLICY_SERVER_ADMIN   __MSABI_LONG(0x00000400)

Definition at line 41 of file ntsecapi.h.

◆ POLICY_SET_AUDIT_REQUIREMENTS

#define POLICY_SET_AUDIT_REQUIREMENTS   __MSABI_LONG(0x00000100)

Definition at line 39 of file ntsecapi.h.

◆ POLICY_SET_DEFAULT_QUOTA_LIMITS

#define POLICY_SET_DEFAULT_QUOTA_LIMITS   __MSABI_LONG(0x00000080)

Definition at line 38 of file ntsecapi.h.

◆ POLICY_TRUST_ADMIN

#define POLICY_TRUST_ADMIN   __MSABI_LONG(0x00000008)

Definition at line 34 of file ntsecapi.h.

◆ POLICY_VIEW_AUDIT_INFORMATION

#define POLICY_VIEW_AUDIT_INFORMATION   __MSABI_LONG(0x00000002)

Definition at line 32 of file ntsecapi.h.

◆ POLICY_VIEW_LOCAL_INFORMATION

#define POLICY_VIEW_LOCAL_INFORMATION   __MSABI_LONG(0x00000001)

Definition at line 31 of file ntsecapi.h.

◆ POLICY_WRITE

#define POLICY_WRITE
Value:
( \
STANDARD_RIGHTS_WRITE | \
POLICY_TRUST_ADMIN | \
POLICY_CREATE_ACCOUNT | \
POLICY_CREATE_SECRET | \
POLICY_CREATE_PRIVILEGE | \
POLICY_SET_DEFAULT_QUOTA_LIMITS | \
POLICY_SET_AUDIT_REQUIREMENTS | \
POLICY_AUDIT_LOG_ADMIN | \
POLICY_SERVER_ADMIN)

Definition at line 66 of file ntsecapi.h.

◆ RtlDecryptMemory

#define RtlDecryptMemory   SystemFunction041

Definition at line 464 of file ntsecapi.h.

◆ RtlEncryptMemory

#define RtlEncryptMemory   SystemFunction040

Definition at line 463 of file ntsecapi.h.

◆ RtlGenRandom

#define RtlGenRandom   SystemFunction036

Definition at line 462 of file ntsecapi.h.

◆ SE_BATCH_LOGON_NAME

#define SE_BATCH_LOGON_NAME    TEXT("SeBatchLogonRight")

Definition at line 92 of file ntsecapi.h.

◆ SE_DENY_BATCH_LOGON_NAME

#define SE_DENY_BATCH_LOGON_NAME    TEXT("SeDenyBatchLogonRight")

Definition at line 102 of file ntsecapi.h.

◆ SE_DENY_INTERACTIVE_LOGON_NAME

#define SE_DENY_INTERACTIVE_LOGON_NAME    TEXT("SeDenyInteractiveLogonRight")

Definition at line 104 of file ntsecapi.h.

◆ SE_DENY_NETWORK_LOGON_NAME

#define SE_DENY_NETWORK_LOGON_NAME    TEXT("SeDenyNetworkLogonRight")

Definition at line 106 of file ntsecapi.h.

◆ SE_DENY_REMOTE_INTERACTIVE_LOGON_NAME

#define SE_DENY_REMOTE_INTERACTIVE_LOGON_NAME    TEXT("SeDenyRemoteInteractiveLogonRight")

Definition at line 108 of file ntsecapi.h.

◆ SE_DENY_SERVICE_LOGON_NAME

#define SE_DENY_SERVICE_LOGON_NAME    TEXT("SeDenyServiceLogonRight")

Definition at line 110 of file ntsecapi.h.

◆ SE_INTERACTIVE_LOGON_NAME

#define SE_INTERACTIVE_LOGON_NAME    TEXT("SeInteractiveLogonRight")

Definition at line 94 of file ntsecapi.h.

◆ SE_NETWORK_LOGON_NAME

#define SE_NETWORK_LOGON_NAME    TEXT("SeNetworkLogonRight")

Definition at line 96 of file ntsecapi.h.

◆ SE_REMOTE_INTERACTIVE_LOGON_NAME

#define SE_REMOTE_INTERACTIVE_LOGON_NAME    TEXT("SeRemoteInteractiveLogonRight")

Definition at line 98 of file ntsecapi.h.

◆ SE_SERVICE_LOGON_NAME

#define SE_SERVICE_LOGON_NAME    TEXT("SeServiceLogonRight")

Definition at line 100 of file ntsecapi.h.

◆ WINE_NTSTATUS_DECLARED

#define WINE_NTSTATUS_DECLARED

Definition at line 114 of file ntsecapi.h.

◆ WINE_PNTSTATUS_DECLARED

#define WINE_PNTSTATUS_DECLARED

Definition at line 118 of file ntsecapi.h.

Typedef Documentation

◆ AUDIT_POLICY_INFORMATION

◆ KERB_PROTOCOL_MESSAGE_TYPE

◆ KERB_PURGE_TKT_CACHE_REQUEST

◆ KERB_QUERY_TKT_CACHE_REQUEST

◆ KERB_QUERY_TKT_CACHE_RESPONSE

◆ KERB_RETRIEVE_TKT_REQUEST

◆ KERB_TICKET_CACHE_INFO

◆ LSA_AUTH_INFORMATION

◆ LSA_ENUMERATION_HANDLE

Definition at line 186 of file ntsecapi.h.

◆ LSA_HANDLE

typedef PVOID LSA_HANDLE

Definition at line 185 of file ntsecapi.h.

◆ LSA_OBJECT_ATTRIBUTES

Definition at line 183 of file ntsecapi.h.

◆ LSA_OPERATIONAL_MODE

Definition at line 187 of file ntsecapi.h.

◆ LSA_STRING

typedef STRING LSA_STRING

Definition at line 182 of file ntsecapi.h.

◆ LSA_TRANSLATED_SID

◆ LSA_TRANSLATED_SID2

◆ LSA_UNICODE_STRING

Definition at line 181 of file ntsecapi.h.

◆ NTSTATUS

typedef LONG NTSTATUS

Definition at line 115 of file ntsecapi.h.

◆ OBJECT_ATTRIBUTES

◆ PAUDIT_POLICY_INFORMATION

◆ PKERB_PROTOCOL_MESSAGE_TYPE

◆ PKERB_PURGE_TKT_CACHE_REQUEST

◆ PKERB_QUERY_TKT_CACHE_REQUEST

◆ PKERB_QUERY_TKT_CACHE_RESPONSE

◆ PKERB_RETRIEVE_TKT_REQUEST

◆ PKERB_TICKET_CACHE_INFO

◆ PLSA_AUTH_INFORMATION

◆ PLSA_ENUMERATION_HANDLE

Definition at line 186 of file ntsecapi.h.

◆ PLSA_HANDLE

typedef PVOID * PLSA_HANDLE

Definition at line 185 of file ntsecapi.h.

◆ PLSA_OBJECT_ATTRIBUTES

Definition at line 183 of file ntsecapi.h.

◆ PLSA_OPERATIONAL_MODE

Definition at line 187 of file ntsecapi.h.

◆ PLSA_REFERENCED_DOMAIN_LIST

◆ PLSA_STRING

typedef STRING * PLSA_STRING

Definition at line 182 of file ntsecapi.h.

◆ PLSA_TRANSLATED_NAME

◆ PLSA_TRANSLATED_SID

◆ PLSA_TRANSLATED_SID2

◆ PLSA_TRUST_INFORMATION

◆ PLSA_UNICODE_STRING

Definition at line 181 of file ntsecapi.h.

◆ PNTSTATUS

typedef NTSTATUS* PNTSTATUS

Definition at line 119 of file ntsecapi.h.

◆ POBJECT_ATTRIBUTES

◆ POLICY_ACCOUNT_DOMAIN_INFO

◆ POLICY_AUDIT_EVENT_OPTIONS

Definition at line 205 of file ntsecapi.h.

◆ POLICY_AUDIT_EVENT_TYPE

◆ POLICY_AUDIT_EVENTS_INFO

◆ POLICY_DNS_DOMAIN_INFO

◆ POLICY_LSA_SERVER_ROLE

◆ POLICY_LSA_SERVER_ROLE_INFO

◆ POLICY_MODIFICATION_INFO

◆ POLICY_NOTIFICATION_INFORMATION_CLASS

◆ POLICY_PRIMARY_DOMAIN_INFO

◆ PPOLICY_ACCOUNT_DOMAIN_INFO

◆ PPOLICY_AUDIT_EVENT_OPTIONS

Definition at line 205 of file ntsecapi.h.

◆ PPOLICY_AUDIT_EVENT_TYPE

◆ PPOLICY_AUDIT_EVENTS_INFO

◆ PPOLICY_DNS_DOMAIN_INFO

◆ PPOLICY_INFORMATION_CLASS

◆ PPOLICY_LSA_SERVER_ROLE

◆ PPOLICY_LSA_SERVER_ROLE_INFO

◆ PPOLICY_MODIFICATION_INFO

◆ PPOLICY_NOTIFICATION_INFORMATION_CLASS

◆ PPOLICY_PRIMARY_DOMAIN_INFO

◆ PSecHandle

◆ PSECURITY_LOGON_SESSION_DATA

◆ PSECURITY_LOGON_TYPE

◆ PSTRING

typedef struct _STRING * PSTRING

◆ PTRUSTED_DOMAIN_AUTH_INFORMATION

◆ PTRUSTED_DOMAIN_INFORMATION_EX

◆ PTRUSTED_INFORMATION_CLASS

◆ PUNICODE_STRING

typedef PUNICODE_STRING

Definition at line 367 of file ntsecpkg.h.

◆ SecHandle

◆ SECURITY_LOGON_SESSION_DATA

◆ SECURITY_LOGON_TYPE

◆ STRING

◆ TRUSTED_DOMAIN_AUTH_INFORMATION

◆ TRUSTED_DOMAIN_INFORMATION_EX

◆ TRUSTED_INFORMATION_CLASS

◆ UNICODE_STRING

Enumeration Type Documentation

◆ _KERB_PROTOCOL_MESSAGE_TYPE

Enumerator
KerbDebugRequestMessage 
KerbQueryTicketCacheMessage 
KerbChangeMachinePasswordMessage 
KerbVerifyPacMessage 
KerbRetrieveTicketMessage 
KerbUpdateAddressesMessage 
KerbPurgeTicketCacheMessage 
KerbChangePasswordMessage 
KerbRetrieveEncodedTicketMessage 
KerbDecryptDataMessage 
KerbAddBindingCacheEntryMessage 
KerbSetPasswordMessage 
KerbSetPasswordExMessage 
KerbVerifyCredentialsMessage 
KerbQueryTicketCacheExMessage 
KerbPurgeTicketCacheExMessage 
KerbRefreshSmartcardCredentialsMessage 
KerbAddExtraCredentialsMessage 
KerbQuerySupplementalCredentialsMessage 
KerbTransferCredentialsMessage 
KerbQueryTicketCacheEx2Message 
KerbSubmitTicketMessage 
KerbAddExtraCredentialsExMessage 
KerbQueryKdcProxyCacheMessage 
KerbPurgeKdcProxyCacheMessage 
KerbQueryTicketCacheEx3Message 
KerbCleanupMachinePkinitCredsMessage 
KerbAddBindingCacheEntryExMessage 
KerbQueryBindingCacheMessage 
KerbPurgeBindingCacheMessage 
KerbQueryDomainExtendedPoliciesMessage 
KerbQueryS4U2ProxyCacheMessage 

Definition at line 383 of file ntsecapi.h.

◆ _POLICY_AUDIT_EVENT_TYPE

Enumerator
AuditCategorySystem 
AuditCategoryLogon 
AuditCategoryObjectAccess 
AuditCategoryPrivilegeUse 
AuditCategoryDetailedTracking 
AuditCategoryPolicyChange 
AuditCategoryAccountManagement 

Definition at line 131 of file ntsecapi.h.

◆ _POLICY_LSA_SERVER_ROLE

Enumerator
PolicyServerRoleBackup 
PolicyServerRolePrimary 

Definition at line 235 of file ntsecapi.h.

◆ _POLICY_NOTIFICATION_INFORMATION_CLASS

Enumerator
PolicyNotifyAuditEventsInformation 
PolicyNotifyAccountDomainInformation 
PolicyNotifyServerRoleInformation 
PolicyNotifyDnsDomainInformation 
PolicyNotifyDomainEfsInformation 
PolicyNotifyDomainKerberosTicketInformation 
PolicyNotifyMachineAccountPasswordInformation 

Definition at line 341 of file ntsecapi.h.

◆ _SECURITY_LOGON_TYPE

Enumerator
Interactive 
Network 
Batch 
Service 
Proxy 

Definition at line 122 of file ntsecapi.h.

◆ _TRUSTED_INFORMATION_CLASS

Enumerator
TrustedDomainNameInformation 
TrustedControllersInformation 
TrustedPosixOffsetInformation 
TrustedPasswordInformation 
TrustedDomainInformationBasic 
TrustedDomainInformationEx 
TrustedDomainAuthInformation 
TrustedDomainFullInformation 

Definition at line 329 of file ntsecapi.h.

◆ POLICY_INFORMATION_CLASS

Enumerator
PolicyAuditLogInformation 
PolicyAuditEventsInformation 
PolicyPrimaryDomainInformation 
PolicyPdAccountInformation 
PolicyAccountDomainInformation 
PolicyLsaServerRoleInformation 
PolicyReplicaSourceInformation 
PolicyDefaultQuotaInformation 
PolicyModificationInformation 
PolicyAuditFullSetInformation 
PolicyAuditFullQueryInformation 
PolicyDnsDomainInformation 

Definition at line 189 of file ntsecapi.h.

Function Documentation

◆ AuditQuerySystemPolicy()

BOOLEAN WINAPI AuditQuerySystemPolicy ( const GUID guids,
ULONG  count,
AUDIT_POLICY_INFORMATION **  policy 
)

AuditQuerySystemPolicy [ADVAPI32.@]

Definition at line 1144 of file lsa.c.

References ERROR_CALL_NOT_IMPLEMENTED, FALSE, guids, and SetLastError().

◆ LsaAddAccountRights()

NTSTATUS WINAPI LsaAddAccountRights ( LSA_HANDLE  policy,
PSID  sid,
PLSA_UNICODE_STRING  rights,
ULONG  count 
)

LsaAddAccountRights [ADVAPI32.@]

Definition at line 169 of file lsa.c.

References sid, and STATUS_SUCCESS.

◆ LsaCallAuthenticationPackage()

NTSTATUS WINAPI LsaCallAuthenticationPackage ( HANDLE  lsa_handle,
ULONG  package_id,
PVOID  in_buffer,
ULONG  in_buffer_length,
PVOID out_buffer,
PULONG  out_buffer_length,
PNTSTATUS  status 
)

◆ LsaClose()

NTSTATUS WINAPI LsaClose ( LSA_HANDLE  ObjectHandle)

LsaClose [ADVAPI32.@]

Closes a handle to a Policy or TrustedDomain.

PARAMS ObjectHandle [I] Handle to a Policy or TrustedDomain.

RETURNS Success: STATUS_SUCCESS. Failure: NTSTATUS code.

Definition at line 191 of file lsa.c.

References STATUS_SUCCESS.

Referenced by DsGetDcNameW(), DsRoleGetPrimaryDomainInformation(), GetComputerObjectNameW(), NetUserModalsGet(), NetWkstaGetInfo(), and NetWkstaUserGetInfo().

◆ LsaConnectUntrusted()

NTSTATUS WINAPI LsaConnectUntrusted ( PHANDLE  LsaHandle)

Definition at line 99 of file lsa.c.

References alloc_lsa_connection(), STATUS_NO_MEMORY, and STATUS_SUCCESS.

◆ LsaCreateTrustedDomainEx()

NTSTATUS WINAPI LsaCreateTrustedDomainEx ( LSA_HANDLE  policy,
PTRUSTED_DOMAIN_INFORMATION_EX  domain_info,
PTRUSTED_DOMAIN_AUTH_INFORMATION  auth_info,
ACCESS_MASK  access,
PLSA_HANDLE  domain 
)

LsaCreateTrustedDomainEx [ADVAPI32.@]

Definition at line 201 of file lsa.c.

References access(), and STATUS_SUCCESS.

◆ LsaDeleteTrustedDomain()

NTSTATUS WINAPI LsaDeleteTrustedDomain ( LSA_HANDLE  policy,
PSID  sid 
)

LsaDeleteTrustedDomain [ADVAPI32.@]

Definition at line 217 of file lsa.c.

References sid, and STATUS_SUCCESS.

◆ LsaDeregisterLogonProcess()

NTSTATUS WINAPI LsaDeregisterLogonProcess ( HANDLE  LsaHandle)

Definition at line 122 of file lsa.c.

References heap_free(), LSA_MAGIC, lsa_connection::magic, STATUS_INVALID_HANDLE, and STATUS_SUCCESS.

◆ LsaEnumerateAccountRights()

NTSTATUS WINAPI LsaEnumerateAccountRights ( LSA_HANDLE  policy,
PSID  sid,
PLSA_UNICODE_STRING rights,
PULONG  count 
)

LsaEnumerateAccountRights [ADVAPI32.@]

Definition at line 227 of file lsa.c.

References sid, and STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaEnumerateAccountsWithUserRight()

NTSTATUS WINAPI LsaEnumerateAccountsWithUserRight ( LSA_HANDLE  policy,
PLSA_UNICODE_STRING  rights,
PVOID buffer,
PULONG  count 
)

LsaEnumerateAccountsWithUserRight [ADVAPI32.@]

Definition at line 243 of file lsa.c.

References STATUS_NO_MORE_ENTRIES.

◆ LsaEnumerateLogonSessions()

NTSTATUS WINAPI LsaEnumerateLogonSessions ( PULONG  LogonSessionCount,
PLUID LogonSessionList 
)

Definition at line 135 of file lsa.c.

References NULL, and STATUS_SUCCESS.

◆ LsaEnumerateTrustedDomains()

NTSTATUS WINAPI LsaEnumerateTrustedDomains ( LSA_HANDLE  PolicyHandle,
PLSA_ENUMERATION_HANDLE  EnumerationContext,
PVOID Buffer,
ULONG  PreferredMaximumLength,
PULONG  CountReturned 
)

LsaEnumerateTrustedDomains [ADVAPI32.@]

Returns the names and SIDs of trusted domains.

PARAMS PolicyHandle [I] Handle to a Policy object. EnumerationContext [I] Pointer to an enumeration handle. Buffer [O] Contains the names and SIDs of trusted domains. PreferredMaximumLength[I] Preferred maximum size in bytes of Buffer. CountReturned [O] Number of elements in Buffer.

RETURNS Success: STATUS_SUCCESS, STATUS_MORE_ENTRIES, STATUS_NO_MORE_ENTRIES Failure: NTSTATUS code.

NOTES LsaEnumerateTrustedDomains can be called multiple times to enumerate all trusted domains.

Definition at line 275 of file lsa.c.

References STATUS_SUCCESS.

◆ LsaEnumerateTrustedDomainsEx()

NTSTATUS WINAPI LsaEnumerateTrustedDomainsEx ( LSA_HANDLE  policy,
PLSA_ENUMERATION_HANDLE  context,
PVOID buffer,
ULONG  length,
PULONG  count 
)

LsaEnumerateTrustedDomainsEx [ADVAPI32.@]

Definition at line 293 of file lsa.c.

References STATUS_SUCCESS.

◆ LsaFreeMemory()

NTSTATUS WINAPI LsaFreeMemory ( PVOID  Buffer)

LsaFreeMemory [ADVAPI32.@]

Frees memory allocated by a LSA function.

PARAMS Buffer [I] Memory buffer to free.

RETURNS Success: STATUS_SUCCESS. Failure: NTSTATUS code.

Definition at line 318 of file lsa.c.

References heap_free(), and STATUS_SUCCESS.

Referenced by DsGetDcNameW(), DsRoleGetPrimaryDomainInformation(), GetComputerObjectNameW(), NetUserModalsGet(), NetWkstaGetInfo(), and NetWkstaUserGetInfo().

◆ LsaFreeReturnBuffer()

NTSTATUS WINAPI LsaFreeReturnBuffer ( PVOID  buffer)

Definition at line 145 of file lsa.c.

References heap_free(), and STATUS_SUCCESS.

◆ LsaGetLogonSessionData()

NTSTATUS WINAPI LsaGetLogonSessionData ( PLUID  LogonId,
PSECURITY_LOGON_SESSION_DATA ppLogonSessionData 
)

Definition at line 152 of file lsa.c.

References NULL, and STATUS_NOT_IMPLEMENTED.

◆ LsaLogonUser()

NTSTATUS WINAPI LsaLogonUser ( HANDLE  LsaHandle,
PLSA_STRING  OriginName,
SECURITY_LOGON_TYPE  LogonType,
ULONG  AuthenticationPackage,
PVOID  AuthenticationInformation,
ULONG  AuthenticationInformationLength,
PTOKEN_GROUPS  LocalGroups,
PTOKEN_SOURCE  SourceContext,
PVOID ProfileBuffer,
PULONG  ProfileBufferLength,
PLUID  LogonId,
PHANDLE  Token,
PQUOTA_LIMITS  Quotas,
PNTSTATUS  SubStatus 
)

Definition at line 160 of file lsa.c.

References debugstr_as(), and STATUS_SUCCESS.

◆ LsaLookupAuthenticationPackage()

NTSTATUS WINAPI LsaLookupAuthenticationPackage ( HANDLE  lsa_handle,
PLSA_STRING  package_name,
PULONG  package_id 
)

◆ LsaLookupNames()

NTSTATUS WINAPI LsaLookupNames ( LSA_HANDLE  PolicyHandle,
ULONG  Count,
PLSA_UNICODE_STRING  Names,
PLSA_REFERENCED_DOMAIN_LIST ReferencedDomains,
PLSA_TRANSLATED_SID Sids 
)

LsaLookupNames [ADVAPI32.@]

Returns the SIDs of an array of user, group, or local group names.

PARAMS PolicyHandle [I] Handle to a Policy object. Count [I] Number of names in Names. Names [I] Array of names to lookup. ReferencedDomains [O] Array of domains where the names were found. Sids [O] Array of SIDs corresponding to Names.

RETURNS Success: STATUS_SUCCESS, STATUS_SOME_NOT_MAPPED Failure: STATUS_NONE_MAPPED or NTSTATUS code.

Definition at line 343 of file lsa.c.

References STATUS_NONE_MAPPED.

◆ LsaLookupNames2()

NTSTATUS WINAPI LsaLookupNames2 ( LSA_HANDLE  policy,
ULONG  flags,
ULONG  count,
PLSA_UNICODE_STRING  names,
PLSA_REFERENCED_DOMAIN_LIST domains,
PLSA_TRANSLATED_SID2 sids 
)

◆ LsaLookupSids()

◆ LsaNtStatusToWinError()

ULONG WINAPI LsaNtStatusToWinError ( NTSTATUS  Status)

LsaNtStatusToWinError [ADVAPI32.@]

Converts an LSA NTSTATUS code to a Windows error code.

PARAMS Status [I] NTSTATUS code.

RETURNS Success: Corresponding Windows error code. Failure: ERROR_MR_MID_NOT_FOUND.

Definition at line 692 of file lsa.c.

References RtlNtStatusToDosError().

Referenced by DsGetDcNameW(), DsRoleGetPrimaryDomainInformation(), GetComputerObjectNameW(), NetUserModalsGet(), NetWkstaGetInfo(), and NetWkstaUserGetInfo().

◆ LsaOpenPolicy()

NTSTATUS WINAPI LsaOpenPolicy ( PLSA_UNICODE_STRING  SystemName,
PLSA_OBJECT_ATTRIBUTES  ObjectAttributes,
ACCESS_MASK  DesiredAccess,
PLSA_HANDLE  PolicyHandle 
)

LsaOpenPolicy [ADVAPI32.@]

Opens a handle to the Policy object on a local or remote system.

PARAMS SystemName [I] Name of the target system. ObjectAttributes [I] Connection attributes. DesiredAccess [I] Requested access rights. PolicyHandle [I/O] Handle to the Policy object.

RETURNS Success: STATUS_SUCCESS. Failure: NTSTATUS code.

NOTES Set SystemName to NULL to open the local Policy object.

Definition at line 715 of file lsa.c.

References ADVAPI_ForceLocalComputer, dumpLsaAttributes(), NULL, STATUS_ACCESS_VIOLATION, and STATUS_SUCCESS.

Referenced by DsGetDcNameW(), DsRoleGetPrimaryDomainInformation(), GetComputerObjectNameW(), NetUserModalsGet(), NetWkstaGetInfo(), and NetWkstaUserGetInfo().

◆ LsaOpenTrustedDomainByName()

NTSTATUS WINAPI LsaOpenTrustedDomainByName ( LSA_HANDLE  policy,
PLSA_UNICODE_STRING  name,
ACCESS_MASK  access,
PLSA_HANDLE  handle 
)

LsaOpenTrustedDomainByName [ADVAPI32.@]

Definition at line 737 of file lsa.c.

References access(), and STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaQueryInformationPolicy()

NTSTATUS WINAPI LsaQueryInformationPolicy ( LSA_HANDLE  PolicyHandle,
POLICY_INFORMATION_CLASS  InformationClass,
PVOID Buffer 
)

◆ LsaQueryTrustedDomainInfo()

NTSTATUS WINAPI LsaQueryTrustedDomainInfo ( LSA_HANDLE  policy,
PSID  sid,
TRUSTED_INFORMATION_CLASS  class,
PVOID buffer 
)

LsaQueryTrustedDomainInfo [ADVAPI32.@]

Definition at line 910 of file lsa.c.

References sid, and STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaQueryTrustedDomainInfoByName()

NTSTATUS WINAPI LsaQueryTrustedDomainInfoByName ( LSA_HANDLE  policy,
PLSA_UNICODE_STRING  name,
TRUSTED_INFORMATION_CLASS  class,
PVOID buffer 
)

LsaQueryTrustedDomainInfoByName [ADVAPI32.@]

Definition at line 924 of file lsa.c.

References STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaRegisterLogonProcess()

NTSTATUS WINAPI LsaRegisterLogonProcess ( PLSA_STRING  LogonProcessName,
PHANDLE  LsaHandle,
PLSA_OPERATIONAL_MODE  SecurityMode 
)

Definition at line 110 of file lsa.c.

References alloc_lsa_connection(), debugstr_as(), STATUS_NO_MEMORY, and STATUS_SUCCESS.

◆ LsaRegisterPolicyChangeNotification()

NTSTATUS WINAPI LsaRegisterPolicyChangeNotification ( POLICY_NOTIFICATION_INFORMATION_CLASS  class,
HANDLE  event 
)

LsaRegisterPolicyChangeNotification [ADVAPI32.@]

Definition at line 938 of file lsa.c.

References STATUS_UNSUCCESSFUL.

◆ LsaRemoveAccountRights()

NTSTATUS WINAPI LsaRemoveAccountRights ( LSA_HANDLE  policy,
PSID  sid,
BOOLEAN  all,
PLSA_UNICODE_STRING  rights,
ULONG  count 
)

LsaRemoveAccountRights [ADVAPI32.@]

Definition at line 950 of file lsa.c.

References sid, and STATUS_SUCCESS.

◆ LsaRetrievePrivateData()

NTSTATUS WINAPI LsaRetrievePrivateData ( LSA_HANDLE  PolicyHandle,
PLSA_UNICODE_STRING  KeyName,
PLSA_UNICODE_STRING PrivateData 
)

LsaRetrievePrivateData [ADVAPI32.@]

Retrieves data stored by LsaStorePrivateData.

PARAMS PolicyHandle [I] Handle to a Policy object. KeyName [I] Name of the key where the data is stored. PrivateData [O] Pointer to the private data.

RETURNS Success: STATUS_SUCCESS. Failure: STATUS_OBJECT_NAME_NOT_FOUND or NTSTATUS code.

Definition at line 975 of file lsa.c.

References STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaSetInformationPolicy()

NTSTATUS WINAPI LsaSetInformationPolicy ( LSA_HANDLE  PolicyHandle,
POLICY_INFORMATION_CLASS  InformationClass,
PVOID  Buffer 
)

LsaSetInformationPolicy [ADVAPI32.@]

Modifies information in a Policy object.

PARAMS PolicyHandle [I] Handle to a Policy object. InformationClass [I] Type of information to set. Buffer [I] Pointer to the information to set.

RETURNS Success: STATUS_SUCCESS. Failure: NTSTATUS code.

Definition at line 998 of file lsa.c.

References STATUS_UNSUCCESSFUL.

◆ LsaSetTrustedDomainInfoByName()

NTSTATUS WINAPI LsaSetTrustedDomainInfoByName ( LSA_HANDLE  policy,
PLSA_UNICODE_STRING  name,
TRUSTED_INFORMATION_CLASS  class,
PVOID  buffer 
)

LsaSetTrustedDomainInfoByName [ADVAPI32.@]

Definition at line 1036 of file lsa.c.

References STATUS_SUCCESS.

◆ LsaSetTrustedDomainInformation()

NTSTATUS WINAPI LsaSetTrustedDomainInformation ( LSA_HANDLE  policy,
PSID  sid,
TRUSTED_INFORMATION_CLASS  class,
PVOID  buffer 
)

LsaSetTrustedDomainInformation [ADVAPI32.@]

Definition at line 1050 of file lsa.c.

References sid, and STATUS_SUCCESS.

◆ LsaStorePrivateData()

NTSTATUS WINAPI LsaStorePrivateData ( LSA_HANDLE  PolicyHandle,
PLSA_UNICODE_STRING  KeyName,
PLSA_UNICODE_STRING  PrivateData 
)

LsaStorePrivateData [ADVAPI32.@]

Stores or deletes a Policy object's data under the specified reg key.

PARAMS PolicyHandle [I] Handle to a Policy object. KeyName [I] Name of the key where the data will be stored. PrivateData [O] Pointer to the private data.

RETURNS Success: STATUS_SUCCESS. Failure: STATUS_OBJECT_NAME_NOT_FOUND or NTSTATUS code.

Definition at line 1074 of file lsa.c.

References STATUS_OBJECT_NAME_NOT_FOUND.

◆ LsaUnregisterPolicyChangeNotification()

NTSTATUS WINAPI LsaUnregisterPolicyChangeNotification ( POLICY_NOTIFICATION_INFORMATION_CLASS  class,
HANDLE  event 
)

LsaUnregisterPolicyChangeNotification [ADVAPI32.@]

Definition at line 1087 of file lsa.c.

References STATUS_SUCCESS.

◆ SystemFunction036()

BOOLEAN WINAPI SystemFunction036 ( PVOID  ,
ULONG   
)

◆ SystemFunction040()

NTSTATUS WINAPI SystemFunction040 ( PVOID  memory,
ULONG  length,
ULONG  flags 
)

SystemFunction040 (ADVAPI32.@)

MSDN documents this function as RtlEncryptMemory and declares it in ntsecapi.h.

PARAMS memory [I/O] Pointer to memory to encrypt. length [I] Length of region to encrypt in bytes. flags [I] Control whether other processes are able to decrypt the memory. RTL_ENCRYPT_OPTION_SAME_PROCESS RTL_ENCRYPT_OPTION_CROSS_PROCESS RTL_ENCRYPT_OPTION_SAME_LOGON

RETURNS Success: STATUS_SUCCESS Failure: NTSTATUS error code

NOTES length must be a multiple of RTL_ENCRYPT_MEMORY_SIZE. If flags are specified when encrypting, the same flag value must be given when decrypting the memory.

Definition at line 2455 of file crypt.c.

References flags, and STATUS_SUCCESS.

◆ SystemFunction041()

NTSTATUS WINAPI SystemFunction041 ( PVOID  memory,
ULONG  length,
ULONG  flags 
)

SystemFunction041 (ADVAPI32.@)

MSDN documents this function as RtlDecryptMemory and declares it in ntsecapi.h.

PARAMS memory [I/O] Pointer to memory to decrypt. length [I] Length of region to decrypt in bytes. flags [I] Control whether other processes are able to decrypt the memory. RTL_ENCRYPT_OPTION_SAME_PROCESS RTL_ENCRYPT_OPTION_CROSS_PROCESS RTL_ENCRYPT_OPTION_SAME_LOGON

RETURNS Success: STATUS_SUCCESS Failure: NTSTATUS error code

NOTES length must be a multiple of RTL_ENCRYPT_MEMORY_SIZE. If flags are specified when encrypting, the same flag value must be given when decrypting the memory.

Definition at line 2483 of file crypt.c.

References flags, and STATUS_SUCCESS.

Variable Documentation

◆ MICROSOFT_KERBEROS_NAME_W

const WCHAR MICROSOFT_KERBEROS_NAME_W[] = { 'K','e','r','b','e','r','o','s',0 }
static

Definition at line 363 of file ntsecapi.h.