;==============================================;
; Syntax for ASMC, JWASM, MASM, POASM and UASM ;
;                                              ;
; WARNING: Only for non-visual projects since  ;
; visual projects have their own 'DoEvents'    ;
;==============================================;
DoEvents Proc Uses Ecx Edx
	Local msg:MSG

@@:	Invoke PeekMessage, Addr msg, 0, 0, 0, PM_REMOVE
	Or Eax, Eax
	Jz @F
	Invoke TranslateMessage, Addr msg
	Invoke DispatchMessage, Addr msg
	Jmp @B
@@:	Ret
DoEvents EndP
