win32 icon indicating copy to clipboard operation
win32 copied to clipboard

Support Sensor API

Open halildurmus opened this issue 3 years ago • 1 comments

Here is the link that lists all the enums, functions, and interfaces of the Sensor API.

Discussed in https://github.com/timsneath/win32/discussions/493

Originally posted by GiuseppeFn June 10, 2022 I really hate to ask dumb questions... But I really can't find it I was trying a simple snippet from msdn

var hr = CoCreateInstance(CLSID_SensorManager, 
                        nullptr, CLSCTX_, INPROC_SERVER,
                        IID_PPV_ARGS(&pSensorManager));

if(hr == HRESULT_FROM_WIN32(ERROR_ACCESS_DISABLED_BY_POLICY)){}

The CLSID_SensorManager GUID doesn't seem to be there at all.

Does this library supports windows sensors?

halildurmus avatar Jun 10 '22 08:06 halildurmus

Hi @GiuseppeFn, I've created a branch with this in: https://github.com/timsneath/win32/tree/sensors

I don't think I have any sensors on my machine though... so I haven't been able to test it directly.

timsneath avatar Jun 10 '22 19:06 timsneath