Process Hacker
|
#include <ntsecapi.h>
Go to the source code of this file.
Data Structures | |
struct | _POLICY_PRIVILEGE_DEFINITION |
Typedefs | |
typedef ULONG | POLICY_SYSTEM_ACCESS_MODE |
typedef ULONG * | PPOLICY_SYSTEM_ACCESS_MODE |
typedef struct _POLICY_PRIVILEGE_DEFINITION | POLICY_PRIVILEGE_DEFINITION |
typedef struct _POLICY_PRIVILEGE_DEFINITION * | PPOLICY_PRIVILEGE_DEFINITION |
Functions | |
NTSTATUS NTAPI | LsaDelete (_In_ LSA_HANDLE ObjectHandle) |
NTSTATUS NTAPI | LsaQuerySecurityObject (_In_ LSA_HANDLE ObjectHandle, _In_ SECURITY_INFORMATION SecurityInformation, _Out_ PSECURITY_DESCRIPTOR *SecurityDescriptor) |
NTSTATUS NTAPI | LsaSetSecurityObject (_In_ LSA_HANDLE ObjectHandle, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR SecurityDescriptor) |
NTSTATUS NTAPI | LsaOpenPolicySce (_In_opt_ PLSA_UNICODE_STRING SystemName, _In_ PLSA_OBJECT_ATTRIBUTES ObjectAttributes, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE PolicyHandle) |
NTSTATUS NTAPI | LsaClearAuditLog (_In_ LSA_HANDLE PolicyHandle) |
NTSTATUS NTAPI | LsaEnumeratePrivileges (_In_ LSA_HANDLE PolicyHandle, _Inout_ PLSA_ENUMERATION_HANDLE EnumerationContext, _Out_ PVOID *Buffer, _In_ ULONG PreferedMaximumLength, _Out_ PULONG CountReturned) |
NTSTATUS NTAPI | LsaCreateAccount (_In_ LSA_HANDLE PolicyHandle, _In_ PSID AccountSid, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE AccountHandle) |
NTSTATUS NTAPI | LsaOpenAccount (_In_ LSA_HANDLE PolicyHandle, _In_ PSID AccountSid, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE AccountHandle) |
NTSTATUS NTAPI | LsaEnumerateAccounts (_In_ LSA_HANDLE PolicyHandle, _Inout_ PLSA_ENUMERATION_HANDLE EnumerationContext, _Out_ PVOID *Buffer, _In_ ULONG PreferedMaximumLength, _Out_ PULONG CountReturned) |
NTSTATUS NTAPI | LsaAddPrivilegesToAccount (_In_ LSA_HANDLE AccountHandle, _In_ PPRIVILEGE_SET Privileges) |
NTSTATUS NTAPI | LsaRemovePrivilegesFromAccount (_In_ LSA_HANDLE AccountHandle, _In_ BOOLEAN AllPrivileges, _In_opt_ PPRIVILEGE_SET Privileges) |
NTSTATUS NTAPI | LsaEnumeratePrivilegesOfAccount (_In_ LSA_HANDLE AccountHandle, _Out_ PPRIVILEGE_SET *Privileges) |
NTSTATUS NTAPI | LsaGetQuotasForAccount (_In_ LSA_HANDLE AccountHandle, _Out_ PQUOTA_LIMITS QuotaLimits) |
NTSTATUS NTAPI | LsaSetQuotasForAccount (_In_ LSA_HANDLE AccountHandle, _In_ PQUOTA_LIMITS QuotaLimits) |
NTSTATUS NTAPI | LsaGetSystemAccessAccount (_In_ LSA_HANDLE AccountHandle, _Out_ PULONG SystemAccess) |
NTSTATUS NTAPI | LsaSetSystemAccessAccount (_In_ LSA_HANDLE AccountHandle, _In_ ULONG SystemAccess) |
NTSTATUS NTAPI | LsaCreateTrustedDomain (_In_ LSA_HANDLE PolicyHandle, _In_ PLSA_TRUST_INFORMATION TrustedDomainInformation, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE TrustedDomainHandle) |
NTSTATUS NTAPI | LsaOpenTrustedDomain (_In_ LSA_HANDLE PolicyHandle, _In_ PSID TrustedDomainSid, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE TrustedDomainHandle) |
NTSTATUS NTAPI | LsaQueryInfoTrustedDomain (_In_ LSA_HANDLE TrustedDomainHandle, _In_ TRUSTED_INFORMATION_CLASS InformationClass, _Out_ PVOID *Buffer) |
NTSTATUS NTAPI | LsaSetInformationTrustedDomain (_In_ LSA_HANDLE TrustedDomainHandle, _In_ TRUSTED_INFORMATION_CLASS InformationClass, _In_ PVOID Buffer) |
NTSTATUS NTAPI | LsaCreateSecret (_In_ LSA_HANDLE PolicyHandle, _In_ PLSA_UNICODE_STRING SecretName, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE SecretHandle) |
NTSTATUS NTAPI | LsaOpenSecret (_In_ LSA_HANDLE PolicyHandle, _In_ PLSA_UNICODE_STRING SecretName, _In_ ACCESS_MASK DesiredAccess, _Out_ PLSA_HANDLE SecretHandle) |
NTSTATUS NTAPI | LsaSetSecret (_In_ LSA_HANDLE SecretHandle, _In_opt_ PLSA_UNICODE_STRING CurrentValue, _In_opt_ PLSA_UNICODE_STRING OldValue) |
NTSTATUS NTAPI | LsaQuerySecret (_In_ LSA_HANDLE SecretHandle, _Out_opt_ PLSA_UNICODE_STRING *CurrentValue, _Out_opt_ PLARGE_INTEGER CurrentValueSetTime, _Out_opt_ PLSA_UNICODE_STRING *OldValue, _Out_opt_ PLARGE_INTEGER OldValueSetTime) |
NTSTATUS NTAPI | LsaLookupPrivilegeValue (_In_ LSA_HANDLE PolicyHandle, _In_ PLSA_UNICODE_STRING Name, _Out_ PLUID Value) |
NTSTATUS NTAPI | LsaLookupPrivilegeName (_In_ LSA_HANDLE PolicyHandle, _In_ PLUID Value, _Out_ PLSA_UNICODE_STRING *Name) |
NTSTATUS NTAPI | LsaLookupPrivilegeDisplayName (_In_ LSA_HANDLE PolicyHandle, _In_ PLSA_UNICODE_STRING Name, _Out_ PLSA_UNICODE_STRING *DisplayName, _Out_ PSHORT LanguageReturned) |
NTSTATUS NTAPI | LsaChangePassword (_In_ PLSA_UNICODE_STRING ServerName, _In_ PLSA_UNICODE_STRING DomainName, _In_ PLSA_UNICODE_STRING AccountName, _In_ PLSA_UNICODE_STRING OldPassword, _In_ PLSA_UNICODE_STRING NewPassword) |
NTSTATUS NTAPI | LsaGetUserName (_Outptr_ PLSA_UNICODE_STRING *UserName, _Outptr_opt_ PLSA_UNICODE_STRING *DomainName) |
NTSTATUS NTAPI | LsaGetRemoteUserName (_In_opt_ PLSA_UNICODE_STRING SystemName, _Outptr_ PLSA_UNICODE_STRING *UserName, _Outptr_opt_ PLSA_UNICODE_STRING *DomainName) |
#define ACCOUNT_ALL_ACCESS |
#define ACCOUNT_READ (STANDARD_RIGHTS_READ | ACCOUNT_VIEW) |
#define ACCOUNT_WRITE |
#define LSA_MACHINE_SECRET_PREFIX_LENGTH ((sizeof(LSA_MACHINE_SECRET_PREFIX) - sizeof(WCHAR)) / sizeof(WCHAR)) |
#define POLICY_MODE_ALL |
#define POLICY_MODE_BATCH SECURITY_ACCESS_BATCH_LOGON |
#define POLICY_MODE_DENY_BATCH SECURITY_ACCESS_DENY_BATCH_LOGON |
#define POLICY_MODE_DENY_INTERACTIVE SECURITY_ACCESS_DENY_INTERACTIVE_LOGON |
#define POLICY_MODE_DENY_NETWORK SECURITY_ACCESS_DENY_NETWORK_LOGON |
#define POLICY_MODE_DENY_REMOTE_INTERACTIVE SECURITY_ACCESS_DENY_REMOTE_INTERACTIVE_LOGON |
#define POLICY_MODE_DENY_SERVICE SECURITY_ACCESS_DENY_SERVICE_LOGON |
#define POLICY_MODE_INTERACTIVE SECURITY_ACCESS_INTERACTIVE_LOGON |
#define POLICY_MODE_NETWORK SECURITY_ACCESS_NETWORK_LOGON |
#define POLICY_MODE_PROXY SECURITY_ACCESS_PROXY_LOGON |
#define POLICY_MODE_REMOTE_INTERACTIVE SECURITY_ACCESS_REMOTE_INTERACTIVE_LOGON |
#define POLICY_MODE_SERVICE SECURITY_ACCESS_SERVICE_LOGON |
#define SECRET_ALL_ACCESS |
#define SECRET_READ |
#define SECRET_WRITE |
#define SECURITY_ACCESS_DENY_BATCH_LOGON ((ULONG)0x00000100L) |
#define SECURITY_ACCESS_DENY_INTERACTIVE_LOGON ((ULONG)0x00000040L) |
#define SECURITY_ACCESS_DENY_NETWORK_LOGON ((ULONG)0x00000080L) |
#define SECURITY_ACCESS_DENY_REMOTE_INTERACTIVE_LOGON ((ULONG)0x00000800L) |
#define SECURITY_ACCESS_DENY_SERVICE_LOGON ((ULONG)0x00000200L) |
#define SECURITY_ACCESS_INTERACTIVE_LOGON ((ULONG)0x00000001L) |
#define SECURITY_ACCESS_REMOTE_INTERACTIVE_LOGON ((ULONG)0x00000400L) |
#define TRUSTED_ALL_ACCESS |
#define TRUSTED_EXECUTE |
#define TRUSTED_READ |
#define TRUSTED_WRITE |
typedef struct _POLICY_PRIVILEGE_DEFINITION POLICY_PRIVILEGE_DEFINITION |
typedef ULONG POLICY_SYSTEM_ACCESS_MODE |
typedef struct _POLICY_PRIVILEGE_DEFINITION * PPOLICY_PRIVILEGE_DEFINITION |
typedef ULONG * PPOLICY_SYSTEM_ACCESS_MODE |
NTSTATUS NTAPI LsaAddPrivilegesToAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_In_ PPRIVILEGE_SET | Privileges | ||
) |
NTSTATUS NTAPI LsaChangePassword | ( | _In_ PLSA_UNICODE_STRING | ServerName, |
_In_ PLSA_UNICODE_STRING | DomainName, | ||
_In_ PLSA_UNICODE_STRING | AccountName, | ||
_In_ PLSA_UNICODE_STRING | OldPassword, | ||
_In_ PLSA_UNICODE_STRING | NewPassword | ||
) |
NTSTATUS NTAPI LsaClearAuditLog | ( | _In_ LSA_HANDLE | PolicyHandle | ) |
NTSTATUS NTAPI LsaCreateAccount | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PSID | AccountSid, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | AccountHandle | ||
) |
NTSTATUS NTAPI LsaCreateSecret | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLSA_UNICODE_STRING | SecretName, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | SecretHandle | ||
) |
NTSTATUS NTAPI LsaCreateTrustedDomain | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLSA_TRUST_INFORMATION | TrustedDomainInformation, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | TrustedDomainHandle | ||
) |
NTSTATUS NTAPI LsaDelete | ( | _In_ LSA_HANDLE | ObjectHandle | ) |
NTSTATUS NTAPI LsaEnumerateAccounts | ( | _In_ LSA_HANDLE | PolicyHandle, |
_Inout_ PLSA_ENUMERATION_HANDLE | EnumerationContext, | ||
_Out_ PVOID * | Buffer, | ||
_In_ ULONG | PreferedMaximumLength, | ||
_Out_ PULONG | CountReturned | ||
) |
NTSTATUS NTAPI LsaEnumeratePrivileges | ( | _In_ LSA_HANDLE | PolicyHandle, |
_Inout_ PLSA_ENUMERATION_HANDLE | EnumerationContext, | ||
_Out_ PVOID * | Buffer, | ||
_In_ ULONG | PreferedMaximumLength, | ||
_Out_ PULONG | CountReturned | ||
) |
NTSTATUS NTAPI LsaEnumeratePrivilegesOfAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_Out_ PPRIVILEGE_SET * | Privileges | ||
) |
NTSTATUS NTAPI LsaGetQuotasForAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_Out_ PQUOTA_LIMITS | QuotaLimits | ||
) |
NTSTATUS NTAPI LsaGetRemoteUserName | ( | _In_opt_ PLSA_UNICODE_STRING | SystemName, |
_Outptr_ PLSA_UNICODE_STRING * | UserName, | ||
_Outptr_opt_ PLSA_UNICODE_STRING * | DomainName | ||
) |
NTSTATUS NTAPI LsaGetSystemAccessAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_Out_ PULONG | SystemAccess | ||
) |
NTSTATUS NTAPI LsaGetUserName | ( | _Outptr_ PLSA_UNICODE_STRING * | UserName, |
_Outptr_opt_ PLSA_UNICODE_STRING * | DomainName | ||
) |
NTSTATUS NTAPI LsaLookupPrivilegeDisplayName | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLSA_UNICODE_STRING | Name, | ||
_Out_ PLSA_UNICODE_STRING * | DisplayName, | ||
_Out_ PSHORT | LanguageReturned | ||
) |
NTSTATUS NTAPI LsaLookupPrivilegeName | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLUID | Value, | ||
_Out_ PLSA_UNICODE_STRING * | Name | ||
) |
NTSTATUS NTAPI LsaLookupPrivilegeValue | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLSA_UNICODE_STRING | Name, | ||
_Out_ PLUID | Value | ||
) |
NTSTATUS NTAPI LsaOpenAccount | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PSID | AccountSid, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | AccountHandle | ||
) |
NTSTATUS NTAPI LsaOpenPolicySce | ( | _In_opt_ PLSA_UNICODE_STRING | SystemName, |
_In_ PLSA_OBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | PolicyHandle | ||
) |
NTSTATUS NTAPI LsaOpenSecret | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PLSA_UNICODE_STRING | SecretName, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | SecretHandle | ||
) |
NTSTATUS NTAPI LsaOpenTrustedDomain | ( | _In_ LSA_HANDLE | PolicyHandle, |
_In_ PSID | TrustedDomainSid, | ||
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PLSA_HANDLE | TrustedDomainHandle | ||
) |
NTSTATUS NTAPI LsaQueryInfoTrustedDomain | ( | _In_ LSA_HANDLE | TrustedDomainHandle, |
_In_ TRUSTED_INFORMATION_CLASS | InformationClass, | ||
_Out_ PVOID * | Buffer | ||
) |
NTSTATUS NTAPI LsaQuerySecret | ( | _In_ LSA_HANDLE | SecretHandle, |
_Out_opt_ PLSA_UNICODE_STRING * | CurrentValue, | ||
_Out_opt_ PLARGE_INTEGER | CurrentValueSetTime, | ||
_Out_opt_ PLSA_UNICODE_STRING * | OldValue, | ||
_Out_opt_ PLARGE_INTEGER | OldValueSetTime | ||
) |
NTSTATUS NTAPI LsaQuerySecurityObject | ( | _In_ LSA_HANDLE | ObjectHandle, |
_In_ SECURITY_INFORMATION | SecurityInformation, | ||
_Out_ PSECURITY_DESCRIPTOR * | SecurityDescriptor | ||
) |
NTSTATUS NTAPI LsaRemovePrivilegesFromAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_In_ BOOLEAN | AllPrivileges, | ||
_In_opt_ PPRIVILEGE_SET | Privileges | ||
) |
NTSTATUS NTAPI LsaSetInformationTrustedDomain | ( | _In_ LSA_HANDLE | TrustedDomainHandle, |
_In_ TRUSTED_INFORMATION_CLASS | InformationClass, | ||
_In_ PVOID | Buffer | ||
) |
NTSTATUS NTAPI LsaSetQuotasForAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_In_ PQUOTA_LIMITS | QuotaLimits | ||
) |
NTSTATUS NTAPI LsaSetSecret | ( | _In_ LSA_HANDLE | SecretHandle, |
_In_opt_ PLSA_UNICODE_STRING | CurrentValue, | ||
_In_opt_ PLSA_UNICODE_STRING | OldValue | ||
) |
NTSTATUS NTAPI LsaSetSecurityObject | ( | _In_ LSA_HANDLE | ObjectHandle, |
_In_ SECURITY_INFORMATION | SecurityInformation, | ||
_In_ PSECURITY_DESCRIPTOR | SecurityDescriptor | ||
) |
NTSTATUS NTAPI LsaSetSystemAccessAccount | ( | _In_ LSA_HANDLE | AccountHandle, |
_In_ ULONG | SystemAccess | ||
) |