Share via


IWMRMCoding::Decode

banner art

Previous Next

IWMRMCoding::Decode

The Decode method converts a text string to binary format.

Syntax

  HRESULT Decode(
  BSTR  bstrEncodedData,
  Long*  plSize,
  BYTE**  ppbData
);

Parameters

bstrEncodedData

[in] BSTR containing the text to be decoded.

plSize

[out] Pointer to a Long containing the size, in bytes, of the text string.

ppbData

[out] Pointer to a pointer to a binary 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 encoded data, ppbData, 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

Previous Next

© 2007 Microsoft Corporation. All rights reserved.