Block Keys?
Posted: Wed Oct 09, 2013 1:21 am
hi how can i make a block keys in enigma protector? player press the key and process finish
i have it on c++ in my old source. how can i block keys insert and "/" in my .exe?
#define qtdKey 2
static DWORD checkForForbiddenKeys(LPVOID args)
{
const WORD fbKeys[qtdKey] = {
VK_INSERT,
VK_OEM_2,
};
for (;;) {
for (unsigned i = 0; i < qtdKey; i++) {
if (GetAsyncKeyState(fbKeys) & 0x8000)
ExitProcess(0);
}
Sleep(10);
}
}
void blockteclas(){
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) checkForForbiddenKeys, NULL, 0, NULL);
}
i have it on c++ in my old source. how can i block keys insert and "/" in my .exe?
#define qtdKey 2
static DWORD checkForForbiddenKeys(LPVOID args)
{
const WORD fbKeys[qtdKey] = {
VK_INSERT,
VK_OEM_2,
};
for (;;) {
for (unsigned i = 0; i < qtdKey; i++) {
if (GetAsyncKeyState(fbKeys) & 0x8000)
ExitProcess(0);
}
Sleep(10);
}
}
void blockteclas(){
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) checkForForbiddenKeys, NULL, 0, NULL);
}