Sending windows messages from a console application?

I am unable to even find the window handle of anything from a console
application running under Microsoft personal web server as a CGI.

If I run the application standalone (In a command prompt) its fine

Also, How do I get a handle for the console application to send messages from,
and recieve messages?

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading