answersLogoWhite
Microsoft Windows
The Difference Between
Polyester

What is the difference between PostMessage and SendMessage?

555657

Top Answer
User Avatar
Wiki User
2009-04-18 07:06:09
2009-04-18 07:06:09

The difference between these two API calls is the way that they return control to the calling application. With SendMessagecontrol is not returned to the calling application until the window that the message was sent to has completed processing the sent message, however with PostMessage control is returned to the calling application immediately, regardless of weather or not the sent message has been processes. postMessage: Sends a message in the message queue associated with the thread and returns without waiting for the thread to process that messaage.

SendMessage: calls the window procedure for the specified window and does not return until the window procedure has processed the message. PostMessage is a Asynchronous function where as SendMessage is a synchronous function.

1

Related Questions

User Avatar

difference between as on and as at

User Avatar

} else if (command.equalsIgnoreCase("edge")) { if (teleblock == true) { sendMessage("A magical force stops you from teleporting."); // made by dmints } else { teleportToX = 3090; teleportToY = 3499; heightLevel = 0; sendMessage("You teleport to shops."); ok then change the tox and toy to the coords u want and edge to the command name u want .. this command will teleport u to edge..

User Avatar

What are the difference between France and America?What are the difference between France and America?

User Avatar

difference between stars and what?

User Avatar

Difference between them and who else?

User Avatar

The difference between can I and may I.

User Avatar

There is no difference between them!

User Avatar

Difference between paging and what?

User Avatar

what's the difference between physician and doctorwhat's the difference between physician and doctor what's the difference between physician and doctor

User Avatar

The difference between a shogun and a samurai is like the difference between a king and a knight.

User Avatar

There is as such no difference between them

User Avatar

what is the main difference between polyethylene and polyesters what is the main difference between polyethylene and polyesters

User Avatar

Directly. Their difference IS the difference between them.

User Avatar

I'm not seeing the difference.

User Avatar

wat is the difference between molculer and atomic wat is the difference between molculer and atomic

User Avatar

there is no difference there is no difference

User Avatar

difference between cytoskeleton and microtubule

User Avatar

difference between UVA and UVB?

User Avatar

difference between revenue and costs

User Avatar

difference between pointer or structure

User Avatar

what is the difference between valium and atvin

User Avatar

What is the difference between intrusive and intrusive.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.