Lock Computer
I want to keep my screen running, but lock my computer while I'm away using this program:
I looked in the MSDN website:
http://msdn2.microsoft.com/en-us/library/ms646290.aspx
It's not compiling :(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include <winable.h>
#include <iostream>
using namespace std;
int main()
{
BOOL BlockInput
{
BOOL fBlockIt
);
cout << BlockInput;
return 0;
}
| |
you need include #include <windows.h> also;)
1 2 3 4 5 6 7 8 9 10
|
#include <windows.h>
#include <winable.h>
int main()
{
BlockInput(TRUE);
Sleep(1000);
BlockInput(FALSE);
Sleep(1000);
return 0;
}
| |
Topic archived. No new replies allowed.