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


Messenger     See also    

Returns an incoming message and leaves it in the queue.


    bool PeekMessage(IPCMessage* Message);

    function PeekMessage(var Message : TIPCMessage) : boolean;

    Function PeekMessage(Message As IIPCXMessage) As Boolean

    HRESULT _stdcall PeekMessage([out] IIPCXMessage ** Message, [out, retval] VARIANT_BOOL * res);

    public bool PeekMessage(ref IPCMessage Message);

    Public Function PeekMessage(ByRef Message As IPCMessage) As Boolean

    public boolean peekMessage(IPCMessage message);

[Java ME]
    public synchronized boolean peekMessage(IPCMessage message);

    long __stdcall IPCMessengerPeekMessage(HIPCMessenger h, IPCMessage* Message, bool* res);


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

  • Message - The structure that PeekMessage places all message data to. See more here
  • res - result of method execution (see Return value for details)

Return value

    True if the message was found and false if there was no incoming message waiting for handing
    Return value is passed via res parameter.
    IPC_OK is always returned.


    Call this method to peek the message from the input queue. This method returns immediately, returning the value that lets you determine whether there was a message in the queue. Upon return the message is NOT marked as being processed and the next call to PeekMessage will return the same message.
    Once the message was processed, the application must call MessageProcessed method to let the Messenger send reply (if necessary) and cleanup internal records.
    This method together with GetMessage and MessageProcessed is an alternative to using Queues.

See also:     Queue class     IPCMessage structure     GetMessage     MessageProcessed