SecurityFunctionTableA 結構 (sspi.h)

SecurityFunctionTable結構是一個分派資料表,其中包含 SSPI 中定義之函式的指標。

語法

typedef struct _SECURITY_FUNCTION_TABLE_A {
  unsigned long                        dwVersion;
  ENUMERATE_SECURITY_PACKAGES_FN_A     EnumerateSecurityPackagesA;
  QUERY_CREDENTIALS_ATTRIBUTES_FN_A    QueryCredentialsAttributesA;
  ACQUIRE_CREDENTIALS_HANDLE_FN_A      AcquireCredentialsHandleA;
  FREE_CREDENTIALS_HANDLE_FN           FreeCredentialHandle;
  void                                 *Reserved2;
  INITIALIZE_SECURITY_CONTEXT_FN_A     InitializeSecurityContextA;
  ACCEPT_SECURITY_CONTEXT_FN           AcceptSecurityContext;
  COMPLETE_AUTH_TOKEN_FN               CompleteAuthToken;
  DELETE_SECURITY_CONTEXT_FN           DeleteSecurityContext;
  APPLY_CONTROL_TOKEN_FN               ApplyControlToken;
  QUERY_CONTEXT_ATTRIBUTES_FN_A        QueryContextAttributesA;
  IMPERSONATE_SECURITY_CONTEXT_FN      ImpersonateSecurityContext;
  REVERT_SECURITY_CONTEXT_FN           RevertSecurityContext;
  MAKE_SIGNATURE_FN                    MakeSignature;
  VERIFY_SIGNATURE_FN                  VerifySignature;
  FREE_CONTEXT_BUFFER_FN               FreeContextBuffer;
  QUERY_SECURITY_PACKAGE_INFO_FN_A     QuerySecurityPackageInfoA;
  void                                 *Reserved3;
  void                                 *Reserved4;
  EXPORT_SECURITY_CONTEXT_FN           ExportSecurityContext;
  IMPORT_SECURITY_CONTEXT_FN_A         ImportSecurityContextA;
  ADD_CREDENTIALS_FN_A                 AddCredentialsA;
  void                                 *Reserved8;
  QUERY_SECURITY_CONTEXT_TOKEN_FN      QuerySecurityContextToken;
  ENCRYPT_MESSAGE_FN                   EncryptMessage;
  DECRYPT_MESSAGE_FN                   DecryptMessage;
  SET_CONTEXT_ATTRIBUTES_FN_A          SetContextAttributesA;
  SET_CREDENTIALS_ATTRIBUTES_FN_A      SetCredentialsAttributesA;
  CHANGE_PASSWORD_FN_A                 ChangeAccountPasswordA;
  void                                 *Reserved9;
  QUERY_CONTEXT_ATTRIBUTES_EX_FN_A     QueryContextAttributesExA;
  QUERY_CREDENTIALS_ATTRIBUTES_EX_FN_A QueryCredentialsAttributesExA;
} SecurityFunctionTableA, *PSecurityFunctionTableA;

成員

dwVersion

資料表的版本號碼。

EnumerateSecurityPackagesA

QueryCredentialsAttributesA

AcquireCredentialsHandleA

FreeCredentialHandle

Reserved2

保留供未來使用。

InitializeSecurityContextA

AcceptSecurityContext

AcceptSecurityCoNtext (General) 函式的指標。

CompleteAuthToken

CompleteAuthToken函式的指標。

DeleteSecurityContext

DeleteSecurityCoNtext函式的指標。

ApplyControlToken

ApplyControlToken函式的指標。

QueryContextAttributesA

ImpersonateSecurityContext

ImpersonateSecurityCoNtext函式的指標。

RevertSecurityContext

RevertSecurityCoNtext函式的指標。

MakeSignature

MakeSignature函式的指標。

VerifySignature

VerifySignature 函式的指標。

FreeContextBuffer

FreeCoNtextBuffer 函式的指標。

QuerySecurityPackageInfoA

Reserved3

保留供未來使用。

Reserved4

保留供未來使用。

ExportSecurityContext

ExportSecurityCoNtext函式的指標。

ImportSecurityContextA

AddCredentialsA

Reserved8

保留供未來使用。

QuerySecurityContextToken

QuerySecurityCoNtextToken函式的指標。

EncryptMessage

EncryptMessage (General) 函式的指標。

DecryptMessage

DecryptMessage (General) 函式的指標。

SetContextAttributesA

SetCredentialsAttributesA

ChangeAccountPasswordA

Reserved9

QueryContextAttributesExA

QueryCredentialsAttributesExA

備註

注意

sspi.h 標頭會將 SecurityFunctionTable 定義為別名,根據 UNICODE 預處理器常數的定義,自動選取此函式的 ANSI 或 Unicode 版本。 混合使用編碼中性別名與非編碼中性的程式碼,可能會導致編譯或執行時間錯誤不符。 如需詳細資訊,請參閱 函式原型的慣例

規格需求

   
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
標頭 sspi.h (包含 Security.h)

另請參閱

InitSecurityInterface