I_IrmCrypt.HrDecode Method

Last modified: October 06, 2009

Applies to: SharePoint Foundation 2010

Decodes data, included in the protected document, from a specified binary file format.


HRESULT HrDecode(
    WCHAR *wszAlgID,
    WCHAR *wszEncodedString,
    UINT  *puDecodedDataLen,
    BYTE  *pbDecodedData
) PURE;

wszAlgID

[in] The type of decoding to perform on the data.

This argument is passed directly to the Rights Management Services (RMS) server API. In most cases, this is set to "base64."

wszEncodedString

[in] The data to be decoded.

puDecodedDataLen

[in/out] The length, in bytes, of the decoded data.

pbDecodedData

[out] The decoded data.

Use this method to extract the unencrypted data, such as the document issuance license (IL) and the server end-user license (EUL), from the binary file format of the protected document.

Unlike the I_IrmCrypt.HrEncrypt Method and I_IrmCrypt.HrDecrypt Method methods, decoding is not performed in place.

Show: