AddPublicKeyRecipientFromStore
보안 및 서명
설명
Windows 인증서 저장소의 X.509 인증서를 공개 키 암호화 수신자로 추가합니다
구문
Delphi
Function TPDFlib.AddPublicKeyRecipientFromStore(Const StoreName, CertificateName: WideString; UseMachineStore, Permissions: Integer): Integer;
ActiveX
Function PDFlib::AddPublicKeyRecipientFromStore(StoreName As String, CertificateName As String, UseMachineStore As Long, Permissions As Long) As Long
DLL
int DLAddPublicKeyRecipientFromStore(int InstanceID, const wchar_t* StoreName, const wchar_t* CertificateName, int UseMachineStore, int Permissions);
매개변수
| StoreName | MY와 같은 Windows 인증서 저장소 이름 |
|---|---|
| CertificateName | 대소문자를 구분하지 않는 단순 표시 이름 또는 첫 번째 인증서를 선택하려면 빈 문자열 |
| UseMachineStore | 로컬 컴퓨터 저장소에는 0이 아닌 값을, 현재 사용자 저장소에는 0을 사용합니다 |
| Permissions | EncodePermissions가 반환한 권한 마스크 |
반환 값
| 1 | 수신자 인증서가 추가되었습니다 |
|---|---|
| 0 | 저장소, 인증서, 권한 또는 문서 상태가 잘못되었습니다 |
비고
DLL은 ANSI 문자열용 DLAddPublicKeyRecipientFromStoreA도 내보냅니다