For some reason my shutdown function that i'm making won't work.
I get this error:
In function `void shutdown()':
expected `,' or `...' before numeric constant
Here is my coding:
#include <windows.h>
void shutdown();
void shutdown()
{
BOOL WINAPI ExitWindowsEx(UINT EWX_REBOOT,
DWORD SHTDN_REASON_MAJOR_HARDWARE);
return;
}
int main()
{
shutdown();
}
The problem is with the line that starts with BOOL WINAPI. I have tried a bunch of things but none of them work.