This function returns a list of stream protocol keys for the specified stream handler.
#include <os2.h> HID hid; /* Stream handler ID. */ PVOID paSPCBKeys; /* SPCB keys address. */ PULONG pulNumSPCBKeys; /* Number of entries. */ ULONG rc; /* Return codes. Return codes indicating success or the type of failure: */ rc = SpiEnumerateProtocols(hid, paSPCBKeys, pulNumSPCBKeys);