// sensorscx.h
NTSTATUS SensorsCxSensorCreate(
[in] WDFDEVICE FxDevice,
[in] PWDF_OBJECT_ATTRIBUTES pSensorAttributes,
[out] PSENSOROBJECT pSensor
);
View the official Windows Driver Kit DDI referenceNo description available.
This function creates an instance of a sensor in the class extension.
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.
This function returns NTSTATUS with different values. Some values that may be returned are the following:
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.