• Main Page
  • Related Pages
  • Modules
  • SeaMAX API
SM_Close
SM_ConfigureSerialConnection
SM_ConfigureSerialTimeouts
SM_CustomMessage
SM_GetAnalogConfig
SM_GetAnalogInputConfig
SM_GetAnalogInputRanges
SM_GetAnalogOutputRanges
SM_GetDeviceConfig
SM_GetFirmwareVersion
SM_GetLastError
SM_GetLastFTDIError
SM_GetLastWin32Error
SM_GetPIODirection
SM_GetPIOPresets
SM_GlobalCommsReset
SM_NotifyInputState
SM_NotifyOnInputChange
SM_Open
SM_OpenSecure
SM_ReadAnalogInputs
SM_ReadAnalogOutputs
SM_ReadDigitalInputs
SM_ReadDigitalOutputs
SM_ReadPIO
SM_SelectDevice
SM_SetAnalogConfig
SM_SetAnalogInputConfig
SM_SetAnalogInputRanges
SM_SetCommunications
SM_SetPIODirection
SM_SetPIOPresets
SM_SetPolarity
SM_SetSoftwareAddress
SM_Version
SM_WriteAnalogOutputs
SM_WriteDigitalOutputs
SM_WritePIO
int __stdcall SM_Close ( SM_HANDLE  handle)

Closes the SeaMAX handle and releases all allocated memory.

Parameters
[in]handleValid handle returned by SM_Open().
Return values
0Successful closure and cleanup.
-1Invalid SeaMAX handle.
Warning
SM_Close() must be called in order to free all associated system memory associated with the SeaMAX library.

Referenced by CSeaMaxW32::Close().