ok i'm just learning C++ and am trying to figure out how to shutdown a windows machine using API calls.
on line 11 I am getting the compiler error on line 11
expected `,' or `...' before numeric constant
I've looked at it for a while and quite frankly I'm confused. What little knowledge I have on the subject has come from microsoft msdn.
Code:
#include <windows.h>
int main(){
using namespace std;
BOOL WINAPI ExitWindowsEx(
UINT EWX_SHUTDOWN | EWX_FORCEIFHUNG,
DWORD SHTDN_REASON_MAJOR_OTHER
);
return 0;
}
on line 11 I am getting the compiler error on line 11
expected `,' or `...' before numeric constant
I've looked at it for a while and quite frankly I'm confused. What little knowledge I have on the subject has come from microsoft msdn.