IWMCProperties::AddNumber

banner art

This functionality is expected to be available in Windows Media Player for the next version of Microsoft Windows. At that time, this SDK will be deprecated.

The AddNumber method adds a property with a numeric value to the collection.

Syntax

HRESULT AddNumber(
  BSTR  Name,
  long  Value
);

Parameters

Name

[in]  BSTR containing the name.

Value

[in]  long containing the numeric value.

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.

Remarks

Calling AddNumber with a name of a property that already exists will simply set the value. Only Administrators are allowed to add device properties.

Requirements

Library: wmcsci.dll.

Platform: Windows XP Home Edition Service Pack 2 (SP2), Windows XP Professional SP2, Windows XP Media Center Edition SP2, or Windows XP Tablet PC Edition SP2.

See Also