Share via


IGenericDescriptor::Initialize method (mpeg2psiparser.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005.

The Initialize method initializes the object. This method is called internally by the various methods that return IGenericDescriptor interface pointers, so applications typically should not call it.

Syntax

HRESULT Initialize(
  [in] BYTE *pbDesc,
  [in] INT  bCount
);

Parameters

[in] pbDesc

Pointer to a buffer that contains the raw descriptor data.

[in] bCount

Specifies the size of the buffer, in bytes.

Return value

The method returns an HRESULT. Possible values include those in the following table.

Return code Description
E_OUTOFMEMORY
Insufficient memory.
MPEG2_E_ALREADY_INITIALIZED
The object is already initialized.
MPEG2_E_MALFORMED_TABLE
Invalid or malformed descriptor.
E_POINTER
NULL pointer argument.
S_OK
The method succeeded.

Requirements

   
Target Platform Windows
Header mpeg2psiparser.h

See also

IGenericDescriptor Interface