L_DicomSetApplication

#include "ltdic.h"

L_INT EXT_FUNCTION L_DicomSetApplication(hPDU, pszUID)

HDICOMPDU hPDU;

/* a DICOM Associate handle */

L_CHAR * pszUID;

/* Application Context to set */

Sets the Application Context of the specified DICOM Associate.

Parameter

Description

hPDU

A DICOM Associate handle.

pszUID

Character string that contains the new Application Context to set. This parameter cannot exceed PDU_MAX_UID_SIZE + 1, including the null character at the end.

Returns

0

SUCCESS

>0

An error occurred. Refer to Return Codes.

Comments

The default value for the Application Context is "1.2.840.10008.3.1.1.1" (UID_APPLICATION_CONTEXT_NAME).

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_DicomGetApplication

Topics:

Working with DICOM Associate Connections

Example

For an example, refer to L_DicomGetApplication.