Give Us a Call: +1-877-99-BOPUP (877-992-6787) or Request for a Live Chat

NewMessage notification

Notifies the IM client application on a new incoming instant message. NewMessage is sent in the form of a NOTIFY_SERVER_MESSAGE message.

NewMessage = wParam MessageStructPtr = lParam

Parameters

MessageStructPtr
Pointer to a variable of MessageStruct type that contains information on the instant message.

In order to retrieve information and fill out the variable from the given pointer use the following code:


Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal dest As Any, ByVal source As Any, ByVal Bytes As Long)

Dim ptr As Long
Dim message As MessageStruct

ptr = VarPtr(message)
Call CopyMemory(ptr, lParam, Len(message))

Return Value

The return value is ignored.