SmsDataSourceDisconnect

The SmsDataSourceDisconnect function releases the site database connection that was established by SmsDataSourceConnect.

SMS_STATUS SmsDataSourceDisconnect(
  HANDLE hConn  // Handle to database connection.
);
 

Parameters

hConn
Specifies the handle to the database connection to be closed.

Return Values

The SmsDataSourceDisconnect function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns the following manifest constant:

SMS_INVALID_HANDLE
The connection handle is not valid.

See Also

SmsDataSourceConnect