L_DicomIsActivated

#include "ltdic.h"

L_LTDIC_API L_BOOL L_DicomIsActivated(hNet)

Indicates whether the specified connection has been activated. This function is available in the PACS Imaging Toolkit.

Parameters

HDICOMNET hNet

A DICOM Network handle. This is the handle created by calling L_DicomCreateNet.

Returns

Value Meaning
TRUE The specified connection has been activated.
FALSE The specified connection has not been activated.

Comments

A connection is activated by calling L_DicomListen, L_DicomConnect, or L_DicomAccept. Therefore, if any of these functions have been called for the connection, this function will return TRUE. Otherwise it will return FALSE.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

This example displays the activation status of a connection

L_INT DicomIsActivatedExample(HDICOMNET hNet) 
{ 
   if (L_DicomIsActivated(hNet) != FALSE) 
      MessageBox(NULL, TEXT("activated"), TEXT("Notice"), MB_OK); 
   else 
      MessageBox(NULL, TEXT("deactivated"), TEXT("Notice"), MB_OK); 
 
   return DICOM_SUCCESS; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help