LEADTOOLS DICOM C DLL Help > Function References > 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
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Win32, x64, Linux.
See Also
Functions: |
L_DicomConnect, L_DicomListen, L_DicomAccept, L_DicomCreateNet, L_DicomStartUp |
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; }