#include "ltdic.h"
L_LTDIC_API L_BOOL L_DicomIsImplementVersion(hPDU)
Determines whether setting the Implementation Version is enabled for the specified DICOM Associate.
A DICOM Associate handle.
Value | Meaning |
---|---|
TRUE | Setting the Implementation Version is enabled. |
FALSE | Setting the Implementation Version is disabled. |
If setting the Implementation Version is enabled, the name may be retrieved using L_DicomGetImplementVersion, or set using L_DicomSetImplementVersion.
Required DLLs and Libraries
Win32, x64, Linux.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document