0
windows.h
包括,代碼:TOKEN_ELEVATION_TYPE未在此範圍內聲明,我做錯了什麼?
#include <windows.h>
int main() {
HANDLE hToken;
DWORD dwSize;
TOKEN_ELEVATION_TYPE pElevationType = TokenElevationTypeDefault;
OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES, &hToken);
GetTokenInformation(hToken, TokenElevationType, pElevationType, sizeof(TOKEN_ELEVATION_TYPE), &dwSize)
}
編譯器是MinGW的4.7