L_DicomIsImplementVersion

#include "ltdic.h"

L_LTDIC_API L_BOOL L_DicomIsImplementVersion(hPDU)

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

Parameters

HDICOMPDU hPDU

A DICOM Associate handle.

Returns

Value Meaning
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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

L_INT DicomIsImplementVersionExample(HDICOMPDU hPDU) 
{ 
   L_TCHAR szMsg[200]; 
   L_TCHAR szImplementVersion[PDU_MAX_VERSION_SIZE+1]; 
   L_INT nRet; 
 
   /* ...Assume association has been created */ 
   if(L_DicomIsImplementVersion(hPDU)) 
   {       
      /* disable it and display old value */ 
      L_DicomGetImplementVersion(hPDU, szImplementVersion, PDU_MAX_VERSION_SIZE+1); 
      wsprintf(szMsg, TEXT("ImplementVersion Disabled: \n%s"), szImplementVersion); 
      nRet = L_DicomSetImplementVersion(hPDU, FALSE, szImplementVersion); 
      if (nRet != DICOM_SUCCESS) 
         return nRet; 
 
      MessageBox(NULL, szMsg, TEXT("Test"), MB_OK); 
   } 
   else 
   {         
      /* enable it */ 
      nRet = L_DicomSetImplementVersion(hPDU, TRUE, TEXT("v14.0")); 
      if (nRet != DICOM_SUCCESS) 
         return nRet; 
 
      L_DicomGetImplementVersion(hPDU, szImplementVersion, PDU_MAX_VERSION_SIZE+1); 
      wsprintf(szMsg, TEXT("ImplementVersion Enabled: \n%s"), szImplementVersion); 
      MessageBox(NULL, szMsg, TEXT("Test"), MB_OK); 
   } 
 
   return DICOM_SUCCESS; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.