winapi - Event triggered Window Message -


is there way generate window message when event set? want setup overlapped i/o operation, not blocking, not poll status. know can use thread, need operation. there seems there better way.

you can that, windows supports more directly using msgwaitformultipleobjects, return when message, or of handles pass (which can one) signaled.

alternatively, use readfileex/writefileex i/o, , use msgwaitformultipleobjectsex. in case, specify completion routine. execution jumps directly call msgwaitformultipleobjectsex completion routine, without having @ messages/return values figure out happened, jump code deal appropriately.

either way, continue process other windows messages , deal completion of i/o, without polling i/o completion.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -