Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 


Messenger     See also    

Waits until there are incoming messages in the input queue or timeout expires.


    bool WaitMessageEx(unsigned long Timeout);

    function WaitMessageEx(Timeout : LongWord) : boolean;

    Not implemented;

    Not implemented;

    public bool WaitMessageEx(int Timeout);

    Public Function WaitMessageEx(ByVal Timeout As Integer) As Boolean

    public boolean waitMessageEx(int Timeout);

[Java ME]
    public synchronized boolean waitMessageEx(int Timeout);

    long __stdcall MCMessengerWaitMessage(HMCMessenger h, unsigned long Timeout, bool& Res);


  • [DLL]h - handle to the Messenger object that was returned by Create method

  • Timeout - Defines time to wait for the message. If the time elapses the specified value, the method returns with result value set to false.
    Set this parameter to INFINITE to wait infinitely.

Return value

    MC_OK is always returned.


    Call this method to wait until there are messages in the input queue or the timeout expires.

See also:     Queue class     PeekMessage     GetMessage     WaitMessage    

Discuss this help topic in MsgConnect Forum