L_DicomIsImplementVersion

#include "ltdic.h"

L_BOOL EXT_FUNCTION L_DicomIsImplementVersion(hPDU)

HDICOMPDU hPDU;

/* a DICOM Associate handle */

Determines whether setting the Implementation Version is enabled for the specified DICOM Associate.

Parameter

Description

hPDU

A DICOM Associate handle.

Returns

TRUE

Setting the Implementation Version is enabled.

FALSE

Setting the Implementation Version is disabled.

Comments

If setting the Implementation Version is enabled, the name may be retrieved using L_DicomGetImplementVersion, or set using L_DicomSetImplementVersion.

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_DicomGetImplementVersion, L_DicomSetImplementVersion

Topics:

Working with DICOM Associate Connections

Example

L_VOID Test(HDICOMPDU hPDU)
{
   L_CHAR L_FAR* pszVersion=NULL;
   L_CHAR szMsg[200];
   
   /* ...Assume association has been created */
   if(L_DicomIsImplementVersion(hPDU))
   {      
      /* disable it and display old value */
      pszVersion = L_DicomGetImplementVersion(hPDU);
      wsprintf(szMsg, "ImplementVersion Disabled: \n%s", pszVersion);
      L_DicomSetImplementVersion(hPDU, FALSE, pszVersion);
      MessageBox(NULL, szMsg, "Test", MB_OK);
   }
   else
   {        
      /* enable it */
      L_DicomSetImplementVersion(hPDU, TRUE, "v14.0");
      pszVersion = L_DicomGetImplementVersion(hPDU);
      wsprintf(szMsg, "ImplementVersion Enabled: \n%s", pszVersion);
      MessageBox(NULL, szMsg, "Test", MB_OK);
   }
}