SetPublicKeyDecryptionPFXA

安全與簽章

描述

SetPublicKeyDecryptionPFX 的 ANSI 版本

字串參數接受 ANSI 文字,其餘行為與寬字元字串版本完全相同

語法

DLL

int DLSetPublicKeyDecryptionPFXA(int InstanceID, const char* PFXFileName, const char* PFXPassword, int UseMachineKeyset);

傳回值

1憑證已驗證並保留
0PFX 或密碼無效,LastErrorCode 傳回 420

備註

憑證在多次文件載入之間保持有效,直到被取代或清除DLL 也匯出

ANSI 字串請用 DLSetPublicKeyDecryptionPFXA

另請參閱

SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus