12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Descriptions of the Library Routines 2ExampleUSE IFPORTINTEGER(4) iresultiresult = SPORT_CONNECT_EX( 2, BufferSize = 8196 )ENDSPORT_GET_HANDLESerial Port I/O Function: Returns the Windows* handle associated with the communicationsport. This is the handle that was returned by the Windows API CreateFile. This function is onlyavailable on Windows systems.Module: USE IFPORTSyntaxresult = SPORT_GET_HANDLE (port, handle)port(Input) Integer. The port number.handle(Output) INTEGER(4) on IA-32 processors; INTEGER(8) on Intel Itanium processors. This is theWindows 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.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: "Using the Serial I/O Port Routines" in your user’s guide, "Communications and"Communications Functions" in the Microsoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultINTEGER(KIND=INT_PTR_KIND( )) handleiresult = SPORT_GET_HANDLE( 2, handle )END2-453

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!