L_DicomGetVersion

#include "ltdic.h"

L_UINT16 EXT_FUNCTION L_DicomGetVersion(hPDU)

HDICOMPDU hPDU;

/* a DICOM Associate handle */

Returns the version of the specified DICOM Associate.

Parameter

Description

hPDU

A DICOM Associate handle.

Returns

The version of the specified DICOM Associate.

Comments

The default value is 1.

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_DicomSetVersion

Topics:

Working with DICOM Associate Connections

Example

L_VOID Test(HDICOMPDU hPDU)
{
   L_CHAR szText[10];

   wsprintf(szText, "%d", L_DicomGetVersion(hPDU));
   MessageBox(NULL, szText, "Test", MB_OK);

   /* set the version */
   L_DicomSetVersion(hPDU, 99);
   
   wsprintf(szText, "%d", L_DicomGetVersion(hPDU));
   MessageBox(NULL, szText, "Test", MB_OK);
}