Microsoft DirectX 8.1 (C++)

IPrograms::get_ItemWithID

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The get_ItemWithID method retrieves a Program object in the collection by its unique identifier.

Syntax

HRESULT get_ItemWithID(
  long  id,
  IProgram**  ppVal
);

Parameters

id

[in]  Specifies the unique identifier of the Program object.

ppVal

[out]  Address of a variable to receive a pointer to the IProgram interface of the retrieved object.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
E_INVALIDARG A matching object was not found.
E_POINTER Data cannot be read from or written to a supplied address.

See Also