L_DicomIsActivated

#include "ltdic.h"

L_LTDIC_API L_BOOL L_DicomIsActivated(hNet)

HDICOMNET hNet;

a DICOM Network handle

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

Parameter

Description

hNet

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

Returns

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

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Platforms

Win32, x64, Linux.

See Also

Functions:

L_DicomConnect, L_DicomListen, L_DicomAccept, L_DicomCreateNet, L_DicomStartUp

Topics:

Working with DICOM Network Connections

 

Creating a DICOM Network Connection

 

Creating an DICOM Associate Connection

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS DICOM C API Help