SpiEnumerateHandlers - Example Code

The following code illustrates how to return a list of the stream handler names installed in the SPI.INI file.

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

  ULONG       ulRC;                   /* Error return code         */
  HAND        ahand[5];     /* Enumerate handler info.   */
  ULONG       ulNumHand = 5;          /* Number of stream handlers */

  /*---------------------------------------------------------------*/
  /*  Get list of all stream handlers in system.                   */
  /*---------------------------------------------------------------*/
  if (ulRC = SpiEnumerateHandlers( (PHAND)&ahand, &ulNumHand))
     return(ulRC);                               /* error! */


[Back: SpiEnumerateHandlers - Related Functions]
[Next: SpiEnumerateHandlers - Topics]