SpiStartStream - Example Code

The following code illustrates how to start data streaming for a stream instance or a group of streams.

#include        "os2.h"
#include        "os2me.h"

  ULONG         ulRC;                     /* Error return code */
  HSTREAM       hStream;                  /* Stream handle     */
                            .
                            .
                            .
/*--------------------------------------------------------------*/
/*  Create a data stream and associate the data with the stream.*/
/*  (See SpiCreateStream and SpiAssociate.)                     */
/*                                                              */
/*--------------------------------------------------------------*/
                            .
                            .
                            .
/*--------------------------------------------------------------*/
/*  Start the streaming.                                        */
/*--------------------------------------------------------------*/
  if (ulRC = SpiStartStream(hStream, SPI_START_STREAM))
    return (ulRC);    /* Error! */


[Back: SpiStartStream - Related Messages]
[Next: SpiStartStream - Topics]