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.
Important
Use the UWP Sensor API instead.
The COM-based Sensor API is deprecated and should not be used in new applications. No additional features or enhancements are planned, and support will be limited.
The SENSOR_CATEGORY_LIGHT category contains sensors that provide information about characteristics of light.
Platform-Defined Sensor Types
This category includes the following platform-defined sensor types.
| Sensor type | Description |
|---|---|
|
Ambient light sensors. |
Platform-Defined Data Fields
Platform-defined property keys for this category are based on SENSOR_DATA_TYPE_LIGHT_GUID:
{E4C77CE2-DCB7-46E9-8439-4FEC548833A6}
This category includes the following platform-defined data fields.
| Data field name and PID | Description |
|---|---|
|
VT_VECTOR|VT_UI1 Chromaticity as a counted array of float values. Data for vector types is always serialized as VT_UI1 (an array of unsigned, 1-byte characters). This data field actually contains each value as an IEEE 4-byte real value (VT_R4). For information about working with arrays, see Retrieving Vector Types. |
|
VT_R4 Illuminance level, in lux. |
|
VT_R4 Color temperature, in degrees Kelvin. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
None supported |
| Header |
|