Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

ctClose

  • Last UpdatedJul 13, 2023
  • 1 minute read

Closes the connection between the application and the CtAPI. When called, any pending commands will be canceled. You need to free any handles allocated before calling ctClose. These handles are not freed when ctClose is called. Call this function from an application on shutdown or when a major error occurs on the connection.

Syntax

ctClose(hCTAPI)

hCTAPI

Type: Handle
Input/output: Input
Description: The handle to the CTAPI as returned from ctOpen.

Return Value

TRUE if successful, otherwise FALSE. Use GetLastError() to get extended error information.

ctOpen

Example

See the example for ctOpen.

In This Topic
TitleResults for “How to create a CRG?”Also Available in