Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The get_AddNew method retrieves a MetaPropertySet object. If the object does not exist, it is created and added to the collection.
Syntax
HRESULT get_AddNew(
BSTR bstrName,
IMetaPropertySet** pppropset
);
Parameters
bstrName
[in] Specifies the name of the MetaPropertySet object.
pppropset
[out] Address of a variable to receive the IMetaPropertySet interface pointer of the object retrieved.
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. |
See Also