Simon Mourier's Avatar
Simon Mourier's blog (1810 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • cryptography
  • winapi

How to check if Windows TPM is available and enabled using NCrypt API?

Mar 18, 2026 See the question and my original answer on StackOverflow

AI probably told you that crap :-) Here's the official way Tbsi_GetDeviceInfo There's also the simple function BOOL WINAPI Tbsi_Is_Tpm_Present() in the same tbs.h file, it's not visible in the doc but works.

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms