IAPI::EncryptBSTR

property EncryptBSTR.

Encodes or decodes a regular string (without 0 character) with a custom password.

 

HRESULT EncryptBSTR(
  BSTR SrcData,
  BSTR Password,
  BSTR * pVal
);

Parameters

SrcData

[in] .   BSTR string to encode or decode

Password

[in,defaultvalue("P@SSPORT_2318")] . Password for encoding/decoding

pVal

[out, retval] The returned value encoded or decoded BSTR string

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI