SensorsCxSensorCreate - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// sensorscx.h

NTSTATUS SensorsCxSensorCreate(
  [in]  WDFDEVICE              FxDevice,
  [in]  PWDF_OBJECT_ATTRIBUTES pSensorAttributes,
  [out] PSENSOROBJECT          pSensor
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-sensorscx-sensorscxsensorcreate)

SensorsCxSensorCreate function

Description

This function creates an instance of a sensor in the class extension.

Parameters

FxDevice [in]

A WDFDEVICE handle to the framework device object that represents the sensor.

pSensorAttributes [in]

A reference to WDF_OBJECT_ATTRIBUTES.

pSensor [out]

A reference to a sensor object that is used within the class extension.

Return value

This function returns NTSTATUS with different values. Some values that may be returned are the following:

Remarks

SensorsCxSensorCreate is implemented by the class extension and must be called by the driver.

Note If pSensorAttributes->ParentObject is not set to NULL or FxDevice, then SensorsCxSensorCreate will fail. If pSensorAttributes->ParentObject is NULL, then the class extension (CX) will set it to FxDevice.

The sensors class extension writes a set of properties for each sensor when SensorsCxSensorCreate. For information about these properties, see Enumeration properties.

See also

Enumeration properties

WDF_OBJECT_ATTRIBUTES