次の方法で共有


Windows Media Rights Manager SDK banner art

IWMRMCoding::Encode

The Encode method converts binary information to a text string.

Syntax

HRESULT Encode(
  BYTE*  pbData,
  long  lSize,
  BSTR*  pbstrEncodedData
);

Parameters

pbData

[in] Pointer to the binary content to be converted to a text string.

lSize

[in] Long containing the number of bytes.

pbstrEncodedData

[out] Pointer to a BSTR containing a text string.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
0x80004005 An error occurred.
0x80070057 The indirect pointer to the text string, pbstrEncodedData, cannot be NULL.

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: wmrmobjs 1.0 Type Library

Library: wmrmobjs.dll

Platform: Windows Server 2003

See Also