Bewerken

Delen via


PFN_SENSORSCXSTATECHANGE callback function (sensorscx.h)

Used to initialize a sensor state change.

Syntax

PFN_SENSORSCXSTATECHANGE PfnSensorscxstatechange;

VOID * PfnSensorscxstatechange(
  PSENSORSCX_DRIVER_GLOBALS DriverGlobals,
  SENSOROBJECT Sensor,
  SENSOR_STATE State
)
{...}

Parameters

DriverGlobals

Global definitions for the driver.

Sensor

A reference to a sensor object.

State

The state of the sensor.

Return value

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

  • STATUS_SUCCESS is returned if the function completes successfully.
  • STATUS_UNSUCCESSFUL is returned if the function does not complete successfully.
  • STATUS_INVALID_PARAMETER is returned if any of the _In_ parameters are NULL.

Requirements

Requirement Value
Header sensorscx.h