How to create a hidden window ?
The purpose of this window is to receive some messages.
If you don't need to show the window, as some suggest create the window, omit the WS_VISIBLE flag and don't call ShowWindow.
If not when you call showWindow(), add SW_HIDE parameter.
ShowWindow(hWnd, SW_HIDE);