what message is sent to my program from Windows when my
program is started

actually i am trying to write program which dont need to have GUI
so i just created and filled WNDCLASSEX structure and register it
without creating window...

so messages like WM_CREATE and similar which are recived
on windows creating are not what i need
Posted on 2001-12-27 08:25:38 by Mikky
all the same messages should be sent even though you dont have a gui. what you do with those messages will be up to you.
Posted on 2001-12-27 08:58:06 by smurf
why do you need a msg when your prog is started???
if the loader allocates memory and sets the instruction
pointer to the start of your code you can do whatever
you want to do without any messages... in my opinon
there is no WM_CREATE if you don't create some window
... if i'm right you could just create a single edit-box or
something else without the ShowWindow call to hide
it. anyhow the simplest form of a messageloop could

msg MSG <>

_Start: invoke GetMessage,ADDR msg,NULL,0,0
test eax, eax
jz _Exit

.IF EAX == WM_????

jmp _Start
_Exit: ;...

invoke ExitProcess,0
Posted on 2001-12-27 10:24:05 by mob
When your program starts, there are no messages.

If you want your program to run without any windows, then you don't need to wait for messages. Just write straightforward code.
Posted on 2001-12-27 20:03:45 by tank
If you are talking of WM_ and alike they are window messages.
No window, no messages.
That simple.
Posted on 2001-12-27 22:35:48 by The Svin
If you don't have any gui what so ever there should be no need to register any window class unless you have at least one window.
Posted on 2001-12-28 18:58:34 by Quantum