Automation:
void
Encrypt
(
[in]
String
Provider,
[in]
uint
ProviderType,
[in]
uint
AlgoID,
[in]
String
Password,
[in]
IMultiSelection
pSelection,
[in, optional]
Variant
KeyLength)
;
Native (C++):
HRESULT
Encrypt
(
[in]
BSTR
Provider,
[in]
unsigned long
ProviderType,
[in]
unsigned long
AlgoID,
[in]
BSTR
Password,
[in]
IMultiSelection *
pSelection,
[in, optional]
VARIANT
KeyLength)
;
Parameters
ProviderThe name of the encryption provider. Consult the Microsoft Cryptography API documentation for more information.ProviderTypeThe provider type. Consult the Microsoft Cryptography API documentation for more information.AlgoIDAlgortihm identifier.PasswordString containing a password.pSelectionMultiple selection object specifying data to encrypt.KeyLengthKey length, for supported algorithms.Return Value
S_OK or standard OLE error code.