Microsoft DirectX 8.1 (C++)

IPrograms::get_AddNew

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

The get_AddNew method retrieves a Program object from the collection. If no object with the specified name exists, one is added.

Syntax

HRESULT get_AddNew(
  IProgram**  ppprog
);

Parameters

ppprog

[out]  Address of a variable to receive a pointer to the IProgram interface of the 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_OUTOFMEMORY There was not sufficient memory to create a new object.
E_POINTER Data cannot be read from or written to a supplied address.

Remarks

This method is valid only for collections retrieved by using IGuideStore::get_Programs.

See Also