This function creates a stream instance between a source and a target stream handler.
#include <os2.h> HID hidSrc; /* Source stream handler ID. */ HID hidTgt; /* Target stream handler ID. */ PSPCBKEY pspcbkey; /* Data type (subtype) to be streamed. */ PDCB pdcbSrc; /* Pointer to device control block (source). */ PDCB pdcbTgt; /* Pointer to device control block (target). */ PIMPL_EVCB pevcb; /* Pointer to EVCB for implicit events. */ PEVFN EventEntry; /* Entry point. */ HSTREAM hstreamBuf; /* Stream handle. */ PHSTREAM phstream; /* Stream handler address. */ PHEVENT phevent; /* Implicit event handle. */ ULONG rc; /* Return codes. */ rc = SpiCreateStream(hidSrc, hidTgt, pspcbkey, pdcbSrc, pdcbTgt, pevcb, EventEntry, hstreamBuf, phstream, phevent);