SENSOR_TYPE_AGGREGATED_SIMPLE_DEVICE_ORIENTATION of sensor api at w11 22621 cant found

Divyns Lin 41 Reputation points
2022-11-30T03:01:29.41+00:00

hi MSFT
I found that the COM API SENSOR_TYPE_AGGREGATED_SIMPLE_DEVICE_ORIENTATION with sensor API in MSFT sensordigtool,
in Win11 22000, that is exist to read simple orientation, but in w11 22621 is not.

is means win11 22621 not support this API anymore?

check with MSDN, no any info like "win11 not support this"

https://learn.microsoft.com/en-us/windows/win32/sensorsapi/retrieving-a-sensor

W11 22621
265504-img-6248.jpg

W11 22000
265503-img-6247.jpg

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,511 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,920 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,101 Reputation points
    2022-12-02T12:50:55.65+00:00

    Hi,

    Thank you for posting your query.

    Kindly follow the steps provided below to resolve your issue.

    The sensor manager object provides access to the sensors that are available for your use.

    To use the Sensor API, you must first call the COM CoCreateInstance method to create an instance of the sensor manager object and retrieve a pointer to its interface, named ISensorManager. The sensor manager maintains the list of available sensors. You can use ISensorManager to call methods that retrieve groups of sensors by category or by type, or you can call a method to retrieve a particular sensor by using its unique ID. The sensor manager also enables you to register to receive an event that notifies you when a new sensor has been connected to the platform.

    Go to this link for your reference and other troubleshooting procedures https://learn.microsoft.com/en-us/windows/win32/sensorsapi/the-sensor-manager

    -------------------------------------------------------------------------------------------------------------------------------

    If the answer is helpful kindly click "Accept as Answer" and up vote it.

    0 comments No comments