LSA_SECPKG_FUNCTION_TABLE struttura (ntsecpkg.h)

La struttura LSA_SECPKG_FUNCTION_TABLE contiene puntatori alle funzioni LSA che un pacchetto di sicurezza può chiamare. L'Autorità di sicurezza locale (LSA) passa questa struttura a un pacchetto di sicurezza quando chiama la funzione SpInitialize del pacchetto.

Sintassi

typedef struct _LSA_SECPKG_FUNCTION_TABLE {
  PLSA_CREATE_LOGON_SESSION          CreateLogonSession;
  PLSA_DELETE_LOGON_SESSION          DeleteLogonSession;
  PLSA_ADD_CREDENTIAL                AddCredential;
  PLSA_GET_CREDENTIALS               GetCredentials;
  PLSA_DELETE_CREDENTIAL             DeleteCredential;
  PLSA_ALLOCATE_LSA_HEAP             AllocateLsaHeap;
  PLSA_FREE_LSA_HEAP                 FreeLsaHeap;
  PLSA_ALLOCATE_CLIENT_BUFFER        AllocateClientBuffer;
  PLSA_FREE_CLIENT_BUFFER            FreeClientBuffer;
  PLSA_COPY_TO_CLIENT_BUFFER         CopyToClientBuffer;
  PLSA_COPY_FROM_CLIENT_BUFFER       CopyFromClientBuffer;
  PLSA_IMPERSONATE_CLIENT            ImpersonateClient;
  PLSA_UNLOAD_PACKAGE                UnloadPackage;
  PLSA_DUPLICATE_HANDLE              DuplicateHandle;
  PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS SaveSupplementalCredentials;
  PLSA_CREATE_THREAD                 CreateThread;
  PLSA_GET_CLIENT_INFO               GetClientInfo;
  PLSA_REGISTER_NOTIFICATION         RegisterNotification;
  PLSA_CANCEL_NOTIFICATION           CancelNotification;
  PLSA_MAP_BUFFER                    MapBuffer;
  PLSA_CREATE_TOKEN                  CreateToken;
  PLSA_AUDIT_LOGON                   AuditLogon;
  PLSA_CALL_PACKAGE                  CallPackage;
  PLSA_FREE_LSA_HEAP                 FreeReturnBuffer;
  PLSA_GET_CALL_INFO                 GetCallInfo;
  PLSA_CALL_PACKAGEEX                CallPackageEx;
  PLSA_CREATE_SHARED_MEMORY          CreateSharedMemory;
  PLSA_ALLOCATE_SHARED_MEMORY        AllocateSharedMemory;
  PLSA_FREE_SHARED_MEMORY            FreeSharedMemory;
  PLSA_DELETE_SHARED_MEMORY          DeleteSharedMemory;
  PLSA_OPEN_SAM_USER                 OpenSamUser;
  PLSA_GET_USER_CREDENTIALS          GetUserCredentials;
  PLSA_GET_USER_AUTH_DATA            GetUserAuthData;
  PLSA_CLOSE_SAM_USER                CloseSamUser;
  PLSA_CONVERT_AUTH_DATA_TO_TOKEN    ConvertAuthDataToToken;
  PLSA_CLIENT_CALLBACK               ClientCallback;
  PLSA_UPDATE_PRIMARY_CREDENTIALS    UpdateCredentials;
  PLSA_GET_AUTH_DATA_FOR_USER        GetAuthDataForUser;
  PLSA_CRACK_SINGLE_NAME             CrackSingleName;
  PLSA_AUDIT_ACCOUNT_LOGON           AuditAccountLogon;
  PLSA_CALL_PACKAGE_PASSTHROUGH      CallPackagePassthrough;
  CredReadFn                         *CrediRead;
  CredReadDomainCredentialsFn        *CrediReadDomainCredentials;
  CredFreeCredentialsFn              *CrediFreeCredentials;
  PLSA_PROTECT_MEMORY                DummyFunction1;
  PLSA_PROTECT_MEMORY                DummyFunction2;
  PLSA_PROTECT_MEMORY                DummyFunction3;
  PLSA_PROTECT_MEMORY                LsaProtectMemory;
  PLSA_PROTECT_MEMORY                LsaUnprotectMemory;
  PLSA_OPEN_TOKEN_BY_LOGON_ID        OpenTokenByLogonId;
  PLSA_EXPAND_AUTH_DATA_FOR_DOMAIN   ExpandAuthDataForDomain;
  PLSA_ALLOCATE_PRIVATE_HEAP         AllocatePrivateHeap;
  PLSA_FREE_PRIVATE_HEAP             FreePrivateHeap;
  PLSA_CREATE_TOKEN_EX               CreateTokenEx;
  CredWriteFn                        *CrediWrite;
  CrediUnmarshalandDecodeStringFn    *CrediUnmarshalandDecodeString;
  PLSA_PROTECT_MEMORY                DummyFunction4;
  PLSA_PROTECT_MEMORY                DummyFunction5;
  PLSA_PROTECT_MEMORY                DummyFunction6;
  PLSA_GET_EXTENDED_CALL_FLAGS       GetExtendedCallFlags;
  PLSA_DUPLICATE_HANDLE              DuplicateTokenHandle;
  PLSA_GET_SERVICE_ACCOUNT_PASSWORD  GetServiceAccountPassword;
  PLSA_PROTECT_MEMORY                DummyFunction7;
  PLSA_AUDIT_LOGON_EX                AuditLogonEx;
  PLSA_CHECK_PROTECTED_USER_BY_TOKEN CheckProtectedUserByToken;
  PLSA_QUERY_CLIENT_REQUEST          QueryClientRequest;
  PLSA_GET_APP_MODE_INFO             GetAppModeInfo;
  PLSA_SET_APP_MODE_INFO             SetAppModeInfo;
  PLSA_GET_CLIENT_INFO_EX            GetClientInfoEx;
} LSA_SECPKG_FUNCTION_TABLE, *PLSA_SECPKG_FUNCTION_TABLE;

Members

CreateLogonSession

Puntatore alla funzione CreateLogonSession .

DeleteLogonSession

Puntatore alla funzione DeleteLogonSession .

AddCredential

Puntatore alla funzione AddCredential .

GetCredentials

Puntatore alla funzione GetCredentials .

DeleteCredential

Puntatore alla funzione DeleteCredential .

AllocateLsaHeap

Puntatore alla funzione AllocateLsaHeap .

FreeLsaHeap

Puntatore alla funzione FreeLsaHeap .

AllocateClientBuffer

Puntatore alla funzione AllocateClientBuffer .

FreeClientBuffer

Puntatore alla funzione FreeClientBuffer .

CopyToClientBuffer

Puntatore alla funzione CopyToClientBuffer .

CopyFromClientBuffer

Puntatore alla funzione CopyFromClientBuffer .

ImpersonateClient

Puntatore alla funzione ImpersonateClient .

UnloadPackage

Puntatore alla funzione UnloadPackage .

DuplicateHandle

Puntatore alla funzione DuplicateHandle .

SaveSupplementalCredentials

Puntatore alla funzione SaveSupplementalCredentials .

CreateThread

Puntatore alla funzione CreateThread .

GetClientInfo

Puntatore alla funzione GetClientInfo .

RegisterNotification

Puntatore alla funzione RegisterNotification .

CancelNotification

Puntatore alla funzione CancelNotification .

MapBuffer

Puntatore alla funzione MapBuffer .

CreateToken

Puntatore alla funzione CreateToken .

AuditLogon

Puntatore alla funzione AuditLogon .

CallPackage

Puntatore alla funzione CallPackage .

FreeReturnBuffer

Puntatore alla funzione FreeReturnBuffer .

GetCallInfo

Puntatore alla funzione GetCallInfo .

CallPackageEx

Puntatore alla funzione CallPackageEx .

CreateSharedMemory

Puntatore alla funzione CreateSharedMemory .

AllocateSharedMemory

Puntatore alla funzione AllocateSharedMemory .

FreeSharedMemory

Puntatore alla funzione FreeSharedMemory .

DeleteSharedMemory

Puntatore alla funzione DeleteSharedMemory .

OpenSamUser

Puntatore alla funzione OpenSamUser .

GetUserCredentials

Puntatore alla funzione GetUserCredentials .

GetUserAuthData

Puntatore alla funzione GetUserAuthData .

CloseSamUser

Puntatore alla funzione CloseSamUser .

ConvertAuthDataToToken

Puntatore alla funzione ConvertAuthDataToToken .

ClientCallback

Puntatore alla funzione ClientCallback .

UpdateCredentials

Puntatore alla funzione UpdateCredentials .

GetAuthDataForUser

Puntatore alla funzione GetAuthDataForUser .

CrackSingleName

Puntatore alla funzione CrackSingleName .

AuditAccountLogon

Puntatore alla funzione AuditAccountLogon .

CallPackagePassthrough

Puntatore alla funzione CallPackagePass through .

CrediRead

Puntatore alla funzione CrediRead .

CrediReadDomainCredentials

Puntatore alla funzione CrediReadDomainCredentials .

CrediFreeCredentials

Puntatore alla funzione CrediFreeCredentials .

DummyFunction1

DummyFunction2

DummyFunction3

LsaProtectMemory

Puntatore alla funzione LsaProtectMemory .

LsaUnprotectMemory

Puntatore alla funzione LsaUnprotectMemory .

OpenTokenByLogonId

Puntatore alla funzione OpenTokenByLogonId .

ExpandAuthDataForDomain

Puntatore alla funzione ExpandAuthDataForDomain .

AllocatePrivateHeap

Puntatore alla funzione AllocatePrivateHeap .

FreePrivateHeap

Puntatore alla funzione FreePrivateHeap .

CreateTokenEx

Puntatore alla funzione CreateTokenEx .

CrediWrite

Puntatore alla funzione CrediWrite .

CrediUnmarshalandDecodeString

Puntatore alla funzione CrediUnmarshalandDecodeString .

Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

DummyFunction4

DummyFunction5

DummyFunction6

Introdotta in Windows 8 e versioni successive solo per l'uso interno di Microsoft.

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

GetExtendedCallFlags

Puntatore alla funzione GetExtendedCallFlags .

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

DuplicateTokenHandle

Puntatore alla funzione DuplicateTokenHandle .

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

GetServiceAccountPassword

Puntatore alla funzione GetServiceAccountPassword .

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

DummyFunction7

Introdotta in Windows 8 e versioni successive solo per l'uso interno di Microsoft.

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Questa funzione non viene implementata.

AuditLogonEx

Puntatore alla funzione AuditLogonEx .

CheckProtectedUserByToken

Puntatore alla funzione CheckProtectedUserByToken .

QueryClientRequest

Puntatore alla funzione QueryClientRequest .

GetAppModeInfo

Puntatore alla funzione GetAppModeInfo .

SetAppModeInfo

Puntatore alla funzione SetAppModeInfo .

GetClientInfoEx

Requisiti

Requisito Valore
Client minimo supportato Windows XP [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Intestazione ntsecpkg.h