User guide
174 RealCT Direct API Developer Guide
Chapter 5: MVIP-90
Example 9. RHT_SET_OUTPUT Sample Code (Continued)
/* Make the second unidirectional connection. */
Output.OutputStream = STREAM_MYSELF;
Output.InputStream = 0;
Output.InputSlot = 1;
IoctlResult = BrktDeviceIoControl (
LineHandle,
RHT_SET_OUTPUT,
&Output,
sizeof(Output),
NULL,
0,
&BytesReturned,
NULL);
if (!IoctlResult)
printf ("RHT_SET_OUTPUT failed: BrktGetLastError = %d\n",
BrktGetLastError (LineHandle));
BrktCloseDevice (LineHandle);
}