write About send message and post message

Answers were Sorted based on User's Feedback



write About send message and post message..

Answer / karthikeyan

SendMessage is a blocking call. ie., when a SendMessage()
API is called from an application, the lines written after
this API call cannot be executed until the message is
processed and returned by the window procedure.

Whereas PostMessage() just posts the message into the
windows corresponding message queue and returns immediately
irrespective of the message is processed or not.

Is This Answer Correct ?    14 Yes 3 No

write About send message and post message..

Answer / pooja

send message doesn't follows message loop route.
while post massage follows.

examples of send message:WM_QUIT
examples of post message :WM_CLOSE,WM_COMMAND,...

Is This Answer Correct ?    4 Yes 0 No

write About send message and post message..

Answer / cheruku raghu

Both are Win32 API members.

SendMessage(...) its NonQueued Messages.


PostMessage(...) its Queued Messages.

SendMessage(...) Meassages can also be placed in a message
queue by calling PostMessage(...).

Is This Answer Correct ?    2 Yes 0 No

write About send message and post message..

Answer / shah chaitanya

SendMessage is calling window proc and waiting for reply.
where are PostMessage api is sending message in message
queue and will not wait. Then message will be in Message
queue till it will not be proceded by window proc.

In sort SendMessage waits till processing completion where
as PostMessage does not wait.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Win32API Interview Questions

to take three string inputs in a two dimensional array of 3 rows and 15 columns and write a function that prints them.

0 Answers  


What is Function entry for DLL in win3.1?

0 Answers  


describe process of creating a new class of windows ??

1 Answers  


System call executable binary file into a process

2 Answers  


What is System call executable binary file into a process?

0 Answers  






What is an Hash Mapping in java?

0 Answers   Cisco, Syntel,


how to Initialize contents of a dialog?

2 Answers   TCS,


how radio button is active in dialog box?

1 Answers  


explain WM_PAINT message ?????

0 Answers  


What is GDI object?

0 Answers  


what API used to hide window

2 Answers  


How will we unable and disable services in win 7 ?

2 Answers   McAfee, Microsoft,


Categories