How to create a hidden window ?
The purpose of this window is to receive some messages.
You call CreateWindow() or CreateWindowEx() as usual but don't specify the WS_VISIBLE window style. Of course ShowWindow() should also not be called.
CreateWindow()
CreateWindowEx()
WS_VISIBLE
ShowWindow()