I included wtsapi32 header file in c++ code in windows (using Mingw).
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#include "wtsapi32.h"
I am getting an error says,
c:\mingw\include\wtsapi32.h:200:3: error: 'WTS_VIRTUAL_CLASS' has not been declared
I included wtsapi32 header file in c++ code in windows (using Mingw).
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#include "wtsapi32.h"
I am getting an error says,
c:\mingw\include\wtsapi32.h:200:3: error: 'WTS_VIRTUAL_CLASS' has not been declared
@RbMm is likely right - this is probably a mingw thing. Anyway, this definition is not going to change so you can just declare the enum in your own code, see here (thank you for the link, @RbMm):
typedef enum _WTS_VIRTUAL_CLASS {
WTSVirtualClientData ,
WTSVirtualFileHandle
} WTS_VIRTUAL_CLASS;