Simon Mourier's Avatar
Simon Mourier's blog (1807 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++
  • com
  • wmi

Read and display data from variant VT_UNKNOWN

Mar 3, 2017 See the question and my original answer on StackOverflow

TargetInstance is also a IWbemClassObject, so you can QI for IWbemClassObject on the IUnknown that you have.

This answer here on SO demonstrates this: C++: Monitor process creation and termination in Windows

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