As i said: Never worked with it, just deriving what i read from the Source-Code
You need a prodecure (of Object), say, in your Form, matching the Signature
type
TSingleInstanceReceivedCustomMessage = procedure(Sender: TBaseSingleInstance; MsgID: Integer; MsgType: Integer; MsgData: TStream) of object;
In your OnCreate of the Form, you assign the Address of
TAdvancedSingleInstance(Application.SingleInstance).OnServerReceivedCustomRequest
to that event.
You don't have to catch anything in ServerCheckMessages.
The "Else"-Part of the Case Of triggers the Event.
And in that Event you have to decode the Message