IWDTFDeviceDepot2::Query method (wdtf.h)

Returns a subset of the devices in the DeviceDepot.

Syntax

HRESULT Query(
  [in]          BSTR          SDEL,
  [out, retval] IWDTFTargets2 **ppTargets
);

Parameters

[in] SDEL

The SDEL query string.

[out, retval] ppTargets

The collection of devices.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The Query method provides the SDEL parameter in a call to the IWDTFTarget2::Eval method for every instance of the IWDTFTarget2 interface in the IWDTFTargets2 collection. Use the Simple Data Evaluation Language to specify this parameter. Every target that returns VARIANT_TRUE is added to a new instance of the IWDTFTargets2 collection interface.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Desktop
Header wdtf.h

See also

IWDTFDeviceDepot2