uwpdesktop-bridge

How to detect windows 10S in a Desktop bridge win32 Store App


I have a win32 desktop bridge converted Microsoft Store app. I can make uwp calls through a DLL as documented by Microsoft. How can I detect Windows 10s environment so that I can disable certain features that do not work on Windows 10s.

Note that other question, answers on the same topic do not help me as they advise calling getProductInfo from a kernel dll which is not possible for a desktop bridge win32 app or a uwp app.


Solution

  • Hope this may help.

    You should use GetProductInfo Win32 API call and check for return value PRODUCT_CLOUD (0x000000B2) and PRODUCT_CLOUDN (0x000000B3). That 2 values are the SKU detection codes for Windows 10 S.