I tried this approach but including it leads to a compile error
Blockquote
comutil.h(767): Error C3861 : ‘InterlockedIncrement’: identifier not found
Which I then resolve by including <winnt.h>. This leads to a
Blockquote
winnt.h(169): Error C1189 : #error: “No Target Architecture”
When I try to resolve this by including <windows.h> I am back at square one with the error
Blockquote
comutil.h(767): Error C3861 : ‘InterlockedIncrement’: identifier not found
Seems I am missing something here.
For my complete quest, see this post: Accessing WMI information in Unreal
Thanks!