Visible to Intel only — GUID: GUID-383EAD0B-2A2A-419B-B980-1E8C0AAEB1AB
Visible to Intel only — GUID: GUID-383EAD0B-2A2A-419B-B980-1E8C0AAEB1AB
SPORT_GET_HANDLE
Serial Port I/O Function: Returns the Windows* handle associated with the communications port. This is the handle that was returned by the Windows API CreateFile. This routine is only available for Windows.
Module
USE IFPORT
result = SPORT_GET_HANDLE (port,handle)
port |
(Input) Integer. The port number. |
handle |
(Output) INTEGER(4) on IA-32 architecture; INTEGER(8) on Intel® 64 architecture. This is the Windows handle that was returned from CreatFile( ) on the serial port. |
Results
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.
Example
USE IFPORT
INTEGER(4) iresult
INTEGER(KIND=INT_PTR_KIND( )) handle
iresult = SPORT_GET_HANDLE( 2, handle )
END