Checking for TPM 2.0 module in a UWP app

Nikhil Trikutam 20 Reputation points
2024-06-05T10:39:17.0966667+00:00

Is it possible to check if a device contains a TPM 2.0 module from a UWP app? If so, how can I implement this check in my app?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
    2024-06-06T02:43:29.35+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Is it possible to check if a device contains a TPM 2.0 module from a UWP app?

    Currently, it is not possible to do it with native UWP API because there is no API available in UWP.

    There is a Win32 API called Tbsi_GetDeviceInfo but this API is only available in desktop apps and is not supported in UWP.

    If you really need to implement this in your app, you might try to use the Win32 code in a desktop app fist, then package the desktop app together with your UWP app via Windows Application Package Project. Use appservice API to communicate with each other, so the UWP app could get the result from desktop app.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful