The ISmsMessage4::SetClientCertificate method, in Configuration Manager, sets the client certificate to use for signing and communication.
[IDL] HRESULT SetClientCertificate( MPAPI_CERT_STORE_LOCATION StoreLocation, LPCWSTR szStoreName, const BYTE* pCertHashBlob ); |
Parameters
- StoreLocation
- Data type: MPAPI_CERT_STORE_LOCATIONQualifiers: [in]The location of the store. Possible values are defined by MPAPI_CERT_STORE_LOCATION Enumeration.
- szStoreName
- Data type: LPCWSTRQualifiers: [in] Null-terminated string specifying the store name.
- pCertHashBlob
- Data type: BYTEQualifiers: [in]Pointer to a certificate hash blob object.
Return Values
An HRESULT code. Possible values include, but are not limited to, the following:
- S_OK
- The method succeeded.
Remarks
This method can be used in both mixed and native security modes.
Requirements
See Also
Send comments about this topic to Microsoft.