SetSignProcessCNGKeyFromFileA

安全與簽章

描述

SetSignProcessCNGKeyFromFile 的 ANSI 版本

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

語法

DLL

int DLSetSignProcessCNGKeyFromFileA(int InstanceID, int SignProcessID, const char* CertificateFile, const char* ProviderName, const char* KeyName, int UseMachineKey, int AllowUI);

傳回值

1憑證已讀取,設定已附加
0檔案、process id 或鍵名無效

備註

DLL 另匯出 DLSetSignProcessCNGKeyFromFileA,供 ANSI 路徑與名稱使用

憑證位元組由簽署程序保留,私鑰則留在其提供者內

另見

SetSignProcessCNGKey, SetSignProcessPFXFromFile