CreateIpcSink()

Example Code

function CreateIpcSink(const IPC: PAnsiChar; Callback: TIpcHandler; SyncQueue: BOOL = False; MaxMessageSize: DWORD = $FFFFFFFF): BOOL; stdcall; // Arg1 specifies the "unique" name of the IPC sink/channel to create // Arg2 callback procedure to handle IPC messages for this channel // Arg3 determines whether IPC messages should be synchronized or asynchronous // Arg4 specifies the maximum data size that the sink allows to handle begin CreateIpcSink('UNIQUE_IPC_NAME', @Callback, False, 4096); end;