SetSignProcessCNGKeyFromFileA

ความปลอดภัยและลายเซ็น

คำอธิบาย

ตัวแปร ANSI ของ SetSignProcessCNGKeyFromFileรับพารามิเตอร์สตริงเป็นข้อความ ANSI นอกจากนั้นทำงานเหมือนจุดเรียกแบบ wide-string ทุกอย่าง

ไวยากรณ์

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 กระบวนการลงลายเซ็นเก็บไบต์ใบรับรองไว้ ส่วน private key ยังอยู่ใน provider ของมัน

ดูเพิ่มเติม

SetSignProcessCNGKey, SetSignProcessPFXFromFile