CLOSECALLBACK

#include "ltdic.h"

L_VOID pEXT_CALLBACK Your Function(hNet, nError, hPeer, UserData)

HDICOMNET hNet;

/* a DICOM Network handle */

L_INT nError;

/* error code */

HDICOMNET hPeer;

/* a DICOM Network handle */

L_VOID * UserData;

/* pointer to additional data */

Notifies a member of a connection that the connection was closed. This function is available in the PACS Imaging.

Parameter

Description

hNet

The DICOM Network handle for the local member of the connection.

nError

Error code. Refer to Return Codes.

hPeer

The DICOM Network handle for the peer member of the connection.

UserData

Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function.

 

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

None.

Comments

A call to this function is generated by a call to L_DicomClose. The CLOSECALLBACK function is useful to both SCUs and SCPs and should be set by both SCU or SCP applications by calling L_DicomSetCallback.

To use this callback function, CLOSECALLBACK must be set using L_DicomSetCallback.

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

See Also

Functions:

L_DicomClose

Example

For an example, refer to L_DicomConnect.