This function associates a data object with a stream handler.
#include <os2.h> HSTREAM hstream; /* Stream handle. */ HID hid; /* Stream handler ID. */ PACB pacb; /* Pointer to control block. */ ULONG rc; /* Return codes. */ rc = SpiAssociate(hstream, hid, pacb);