ReactOS 0.4.15-dev-5672-gf73ac17
lsa.h
Go to the documentation of this file.
1/*
2 * PROJECT: Authentication Package DLL
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Header for lsa.c
5 * COPYRIGHT: Copyright 2019-2020 Andreas Maier <staubim@quantentunnel.de>
6 */
7
8#pragma once
9
16
20
25 _In_ PUNICODE_STRING AccountName,
26 _In_ PSECPKG_PRIMARY_CRED PrimaryCredentials,
27 _In_ PSECPKG_SUPPLEMENTAL_CRED SupplementalCredentials);
28
32 _In_ PUNICODE_STRING PrincipalName,
33 _In_ ULONG CredentialUseFlags,
35 _In_ PVOID AuthorizationData,
36 _In_ PVOID GetKeyFunciton,
37 _In_ PVOID GetKeyArgument,
38 _Out_ PLSA_SEC_HANDLE CredentialHandle,
39 _Out_ PTimeStamp ExpirationTime);
40
44 _In_ LSA_SEC_HANDLE CredentialHandle,
45 _In_ ULONG CredentialAttribute,
47
51 _In_ LSA_SEC_HANDLE CredentialHandle);
52
56 _In_ LSA_SEC_HANDLE CredentialHandle,
57 _In_ PSecBuffer Credentials);
58
62 _In_ LSA_SEC_HANDLE CredentialHandle,
63 _Inout_ PSecBuffer Credentials);
64
68 _In_ LSA_SEC_HANDLE CredentialHandle,
70
74 _Out_ PSecPkgInfoW PackageInfo);
75
79 _In_ LSA_SEC_HANDLE CredentialHandle,
80 _In_ LSA_SEC_HANDLE ContextHandle,
82 _In_ ULONG ContextRequirements,
83 _In_ ULONG TargetDataRep,
84 _In_ PSecBufferDesc InputBuffers,
85 _Out_ PLSA_SEC_HANDLE NewContextHandle,
86 _Inout_ PSecBufferDesc OutputBuffers,
87 _Out_ PULONG ContextAttributes,
88 _Out_ PTimeStamp ExpirationTime,
89 _Out_ PBOOLEAN MappedContext,
90 _Out_ PSecBuffer ContextData);
91
95 _In_ LSA_SEC_HANDLE CredentialHandle,
96 _In_ LSA_SEC_HANDLE ContextHandle,
98 _In_ ULONG ContextRequirements,
99 _In_ ULONG TargetDataRep,
100 _Out_ PLSA_SEC_HANDLE NewContextHandle,
102 _Out_ PULONG ContextAttributes,
103 _Out_ PTimeStamp ExpirationTime,
104 _Out_ PBOOLEAN MappedContext,
105 _Out_ PSecBuffer ContextData);
106
108NTAPI
110 _In_ LSA_SEC_HANDLE ContextHandle);
111
113NTAPI
115 _In_ LSA_SEC_HANDLE ContextHandle,
116 _In_ PSecBufferDesc ControlToken);
117
119NTAPI
124
126NTAPI
130
132NTAPI
static ULONG PackageId
Definition: authpackage.c:163
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
NTSTATUS NTAPI LsaSpSaveCredentials(_In_ LSA_SEC_HANDLE CredentialHandle, _In_ PSecBuffer Credentials)
Definition: lsa.c:90
NTSTATUS NTAPI LsaSpInitLsaModeContext(_In_ LSA_SEC_HANDLE CredentialHandle, _In_ LSA_SEC_HANDLE ContextHandle, _In_ PUNICODE_STRING TargetName, _In_ ULONG ContextRequirements, _In_ ULONG TargetDataRep, _In_ PSecBufferDesc InputBuffers, _Out_ PLSA_SEC_HANDLE NewContextHandle, _Inout_ PSecBufferDesc OutputBuffers, _Out_ PULONG ContextAttributes, _Out_ PTimeStamp ExpirationTime, _Out_ PBOOLEAN MappedContext, _Out_ PSecBuffer ContextData)
Definition: lsa.c:129
NTSTATUS NTAPI LsaSpGetExtendedInformation(_In_ SECPKG_EXTENDED_INFORMATION_CLASS Class, _Out_ PSECPKG_EXTENDED_INFORMATION *ppInfo)
Definition: lsa.c:207
NTSTATUS NTAPI LsaSpAcceptLsaModeContext(_In_ LSA_SEC_HANDLE CredentialHandle, _In_ LSA_SEC_HANDLE ContextHandle, _In_ PSecBufferDesc InputBuffer, _In_ ULONG ContextRequirements, _In_ ULONG TargetDataRep, _Out_ PLSA_SEC_HANDLE NewContextHandle, _Inout_ PSecBufferDesc OutputBuffer, _Out_ PULONG ContextAttributes, _Out_ PTimeStamp ExpirationTime, _Out_ PBOOLEAN MappedContext, _Out_ PSecBuffer ContextData)
Definition: lsa.c:154
NTSTATUS NTAPI LsaSpDeleteCredentials(_In_ LSA_SEC_HANDLE CredentialHandle, _In_ PSecBuffer Key)
Definition: lsa.c:110
NTSTATUS NTAPI LsaSpSetExtendedInformation(_In_ SECPKG_EXTENDED_INFORMATION_CLASS Class, _In_ PSECPKG_EXTENDED_INFORMATION Info)
Definition: lsa.c:218
NTSTATUS NTAPI LsaSpGetInfoW(_Out_ PSecPkgInfoW PackageInfo)
Definition: lsa.c:120
NTSTATUS NTAPI LsaSpAcquireCredentialsHandle(_In_ PUNICODE_STRING PrincipalName, _In_ ULONG CredentialUseFlags, _In_ PLUID LogonId, _In_ PVOID AuthorizationData, _In_ PVOID GetKeyFunciton, _In_ PVOID GetKeyArgument, _Out_ PLSA_SEC_HANDLE CredentialHandle, _Out_ PTimeStamp ExpirationTime)
Definition: lsa.c:50
NTSTATUS NTAPI SpAcceptCredentials(_In_ SECURITY_LOGON_TYPE LogonType, _In_ PUNICODE_STRING AccountName, _In_ PSECPKG_PRIMARY_CRED PrimaryCredentials, _In_ PSECPKG_SUPPLEMENTAL_CRED SupplementalCredentials)
Definition: lsa.c:37
NTSTATUS NTAPI LsaSpQueryCredentialsAttributes(_In_ LSA_SEC_HANDLE CredentialHandle, _In_ ULONG CredentialAttribute, _Inout_ PVOID Buffer)
Definition: lsa.c:69
NTSTATUS NTAPI LsaSpGetCredentials(_In_ LSA_SEC_HANDLE CredentialHandle, _Inout_ PSecBuffer Credentials)
Definition: lsa.c:100
NTSTATUS NTAPI LsaSpApplyControlToken(_In_ LSA_SEC_HANDLE ContextHandle, _In_ PSecBufferDesc ControlToken)
Definition: lsa.c:186
NTSTATUS NTAPI LsaSpFreeCredentialsHandle(_In_ LSA_SEC_HANDLE CredentialHandle)
Definition: lsa.c:81
NTSTATUS NTAPI LsaSpGetUserInfo(_In_ PLUID LogonId, _In_ ULONG Flags, _Out_ PSecurityUserData *UserData)
Definition: lsa.c:196
NTSTATUS NTAPI SpInitialize(_In_ ULONG_PTR PackageId, _In_ PSECPKG_PARAMETERS Parameters, _In_ PLSA_SECPKG_FUNCTION_TABLE FunctionTable)
Definition: lsa.c:16
NTSTATUS NTAPI LsaSpShutDown(VOID)
Definition: lsa.c:28
NTSTATUS NTAPI LsaSpDeleteContext(_In_ LSA_SEC_HANDLE ContextHandle)
Definition: lsa.c:177
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE LogonType
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID LogonId
enum _SECURITY_LOGON_TYPE SECURITY_LOGON_TYPE
ULONG LSA_SEC_HANDLE
Definition: ntsecpkg.h:208
ULONG * PLSA_SEC_HANDLE
Definition: ntsecpkg.h:208
enum _SECPKG_EXTENDED_INFORMATION_CLASS SECPKG_EXTENDED_INFORMATION_CLASS
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:440
static PCWSTR TargetName
Definition: ping.c:67
uint32_t * PULONG
Definition: typedefs.h:59
unsigned char * PBOOLEAN
Definition: typedefs.h:53
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
_Must_inspect_result_ _In_ WDFQUEUE _In_opt_ WDFREQUEST _In_opt_ WDFFILEOBJECT _Inout_opt_ PWDF_REQUEST_PARAMETERS Parameters
Definition: wdfio.h:869
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:722
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170