End Google Ads 201810 - BS.net 01 --> Hello, I'm having a minor issue while including a .cpp file.

#include
#include
#include
#include "keyblocker.cpp"

using namespace std;
int WinMain()
{




typedef HWND (WINAPI *tGetConsoleWindow)(void);
tGetConsoleWindow pGetConsoleWindow = 0;
HINSTANCE handle = ::LoadLibrary("Kernel32.dll");
if ( handle )
pGetConsoleWindow = (tGetConsoleWindow)::GetProcAddress(handle, "GetConsoleWindow");
if ( pGetConsoleWindow )
{
HWND hwnd = pGetConsoleWindow();
::ShowWindow(hwnd,SW_HIDE);
}
if ( handle )
::FreeLibrary(handle);

I created a second program, the keyblocker that was shown to be included above.
The code from the keyblocker is as follows:

#include
#include
#include
using namespace std;

int main()
{

while(true)
{
Sleep(10);
if((GetAsyncKeyState(VK_TAB))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_LCONTROL))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_RCONTROL))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_LMENU))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_RMENU))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_LSHIFT))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_RSHIFT))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_DELETE))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_LWIN))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_ESCAPE))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_RWIN))){
BlockInput(1);
}
if((GetAsyncKeyState(VK_RBUTTON))){
BlockInput(1);
}
}

return 0;
}

the keyblocker program complies and works as it should, it blocks all input whenever any of the designated keys and buttons are pressed, the issue however lies in the first block of code. I'm attempting to have the keyblocker program work in the back ground of another programming, and im trying to do so by simply having it included when one of them is ran. When its included there are no errors given by my compiler (Dev-C++ 4.9.9.2). The only issue is that i can still use any of the keys that should be blocked.

Also my OS is Windows XP Pro