EldoS
MsgConnect home / Documentation / Messenger.WaitMessageEx method
Navigation
Web site
Support
Table Of Contents

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


Messenger.WaitMessageEx

Messenger     See also    


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

Declaration

[C++]
    bool WaitMessageEx(unsigned long Timeout);

[Pascal]
    function WaitMessageEx(Timeout : LongWord) : boolean;

[VB6]
    Not implemented;

[ActiveX]
    Not implemented;

[C#]
    public bool WaitMessageEx(int Timeout);

[VB.NET]
    Public Function WaitMessageEx(ByVal Timeout As Integer) As Boolean

[Java]
    public boolean waitMessageEx(int Timeout);

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

[Palm]
    bool WaitMessage(unsigned long Timeout);

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

Parameters

  • [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

[DLL]
    If the function was called not from the same thread in which Messenger operates, MCE_WRONGTHREAD code is returned, otherwise MC_OK is returned.

Description

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

See also:     Queue class     PeekMessage     GetMessage     WaitMessage    

 
Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2005, EldoS Corporation