Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function sets the enumeration properties of a sensor.
For more information about sensor properties, see Enumeration properties.
Syntax
NTSTATUS SensorsCxSensorInitialize(
[in] SENSOROBJECT Sensor,
[in] PSENSOR_CONFIG pSensorConfig
);
Parameters
[in] Sensor
A reference to a sensor object.
[in] pSensorConfig
A list of enumeration properties. For more information, see SENSOR_CONFIG.
Return value
This function returns NTSTATUS with different values. Some values that may be returned are the following:
- STATUS_SUCCESS is returned when the function completes successfully.
- STATUS_INVALID_PARAMETER is returned if any of the _In_ parameters are NULL or the pSensorConfig->pEnumerationList->Count variable is 0 or too big.
- STATUS_BUFFER_TOO_SMALL is returned if the pSensorConfig buffer is smaller than the size of the SENSOR_CONFIG structure.
- STATUS_NOT_FOUND is returned if there was an error constructing the controller object context from the Sensor object.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | sensorscx.h |