L_DicomGetAssociate

#include "ltdic.h"

HDICOMPDU EXT_FUNCTION L_DicomGetAssociate(hNet)

HDICOMNET hNet;

/* a DICOM Network handle */

Returns the DICOM Associate handle for the specified DICOM Network handle. This function is available in the Medical Suite Toolkit.

Parameter

Description

hNet

A DICOM Network handle.

Returns

The DICOM Associate handle associated with the specified DICOM Network handle.

Comments

A DICOM Association must be established between an SCU and an SCP before any DICOM messages or data can be transmitted between them. For more information on creating a DICOM Association, refer to Creating a DICOM Association.

When the DICOM Association is no longer needed, it should be ended. For more information, refer to Closing a DICOM Associate Connection.

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

Topics:

Working with DICOM Associate Connections

Example

/* This example displays the called Application Entity Title of the associated connection */

L_VOID Test(HDICOMNET hNet)
{
   HDICOMPDU hAssociate;

   hAssociate = L_DicomGetAssociate(hNet);

   MessageBox(NULL, L_DicomGetCalled(hAssociate), "Notice", MB_OK);
}