The following code illustrates how to remove a stream from the system.
#include "os2.h" #include "os2me.h" ULONG ulRC; /* Error return code */ HSTREAM hStream; /* Stream handle */ . . . /*------------------------------------------------------*/ /* Create a data stream (hStream) and process the data.*/ /*------------------------------------------------------*/ . . . /*------------------------------------------------*/ /* Finished with stream - Now destroy the stream.*/ /*------------------------------------------------*/ if (ulRC = SpiDestroyStream(hStream)) return (ulRC); /* error! */