sepdrout

The sepdrout function for Win32, MS-DOS, and OS/2 allows an application to perform its own routing of received messages by setting up a procedure that is called by the DMOD when a message is received.

Win32

DWORD sepdrout(

    DWORD *proc_addr,

    (BUFHDR *, USHORTUSHORT

   );


MS-DOS and OS/2

USHORT FAR sepdrout(

    USHORT (FAR *FAR proc_addr)();

   );


Parameters

proc_addr
The routing procedure.

Return Values

NO_ERROR (0)
Successful.
Anything else
Unsuccessful.

Remarks

This facility is only available to clients, as defined in the call to sbpuinit.

An application can have up to four routing procedures. Note that the APPC and CSV libraries each use a routing procedure. When the DMOD receives a message, each routing procedure is called, until one accepts the message.

See routproc for an example of a routing procedure.