L_DicomIsActivated

#include "ltdic.h"

L_BOOL EXT_FUNCTION L_DicomIsActivated(hNet)

HDICOMNET hNet;

/* a DICOM Network handle */

Indicates whether the specified connection has been activated. This function is available in the Medical Suite 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

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_VOID Test(HDICOMNET hNet)
{
   if (L_DicomIsActivated(hNet) != FALSE)
   {
      MessageBox(NULL, "activated", "Notice", MB_OK);
   }
   else
   {
      MessageBox(NULL, "deactivated", "Notice", MB_OK);
   }
}