Microsoft DirectX 8.1 (C++)

IMetaPropertyType::get_New

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

The get_New method creates and retrieves a MetaProperty object.

Syntax

HRESULT get_New(
  long  lang,
  VARIANT  val,
  IMetaProperty**  ppprop
);

Parameters

lang

[in]  Specifies the language of the new MetaProperty object.

val

[in]  Specifies the value of the new MetaProperty object.

ppprop

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

See Also