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
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
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.
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
be:
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
be:
.DATA
msg MSG <>
.CODE
_Start: invoke GetMessage,ADDR msg,NULL,0,0
test eax, eax
jz _Exit
.IF EAX == WM_????
;...respond
.ENDIF
jmp _Start
_Exit: ;...
invoke ExitProcess,0
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.
If you want your program to run without any windows, then you don't need to wait for messages. Just write straightforward code.
If you are talking of WM_ and alike they are window messages.
No window, no messages.
That simple.
No window, no messages.
That simple.
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.