Share via


IMSVidDevice2::get_DevicePath method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005 or later.

The get_DevicePath method retrieves the device path.

Syntax

HRESULT get_DevicePath(
  [out] BSTR *DevPath
);

Parameters

[out] DevPath

Pointer to a BSTR that receives the device path. The caller must free the returned string, using the SysFreeString function.

Return value

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

This property is not a human-readable string, but is guaranteed to be unique per device. You can use this property to distinguish between two or more instances of the same model of device.

Requirements

Requirement Value
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidDevice2 Interface