Forum Post: AW: prowin32 hungs unexpected

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
:-) Thanks! Von meinem Windows Phone gesendet Von: Matt Gilarde Gesendet: ‎24.‎03.‎2014 01:07 An: TU.OE.Development@community.progress.com Betreff: RE: prowin32 hungs unexpected RE: prowin32 hungs unexpected Reply by Matt Gilarde You successfully volunteered me. Here it is: &SCOPED-DEFINE PM_NOREMOVE 0 PROCEDURE PeekMessageA EXTERNAL "user32.dll" : DEFINE INPUT PARAMETER lpmsg AS MEMPTR. DEFINE INPUT PARAMETER hWnd AS LONG. DEFINE INPUT PARAMETER wMsgFilterMin AS LONG. DEFINE INPUT PARAMETER wMsgFilterMax AS LONG. DEFINE INPUT PARAMETER wRemoveMsg AS LONG. DEFINE RETURN PARAMETER lResult AS LONG. END PROCEDURE. DEFINE VARIABLE Msg AS MEMPTR. DEFINE VARIABLE lResult AS INTEGER. SET-SIZE(Msg) = 48. /* big enough for 64-bit */ /* This call to PeekMessage will not remove posted messages from the ** message queue. The one side effect I am aware of is that messages ** that were sent from another process using SendMessage will be ** dispatched before PeekMessage returns, but the same is true of ** any code that processes messages. Since you have to process ** messages to tell Windows you're awake, this seems like an ** unavoidable (and relatively rare) side effect. */ RUN PeekMessageA(Msg, 0, 0, 0, {&PM_NOREMOVE}, OUTPUT lResult). Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top