Export (0) Print
Expand All

ISensorCollection::Add method

Adds a sensor to the collection.

Syntax


HRESULT Add(
  [in]  ISensor *pSensor
);

Parameters

pSensor [in]

Pointer to the ISensor interface for the sensor to add to the collection.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS)

The sensor collection already contains a sensor with the specified ID.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

Header

Sensorsapi.h

Library

Sensorsapi.lib

DLL

Sensorsapi.dll

See also

ISensorCollection

 

 

Community Additions

ADD
Show:
© 2014 Microsoft