#include "ltdic.h"
L_LTDIC_API L_VOID L_DicomGetApplication(hPDU, strApplication, SizeInWords)
Gets the Application Context for the specified DICOM Associate.
A DICOM Associate handle.
Buffer to be updated with the Application Context for the specified DICOM Associate.
Size of the destination string buffer.
None.
The default value for the Application Context is "1.2.840.10008.3.1.1.1" (UID_APPLICATION_CONTEXT_NAME).
Required DLLs and Libraries
Win32, x64, Linux.
L_INT DicomGetApplicationExample(HDICOMPDU hPDU)
{
L_INT nRet;
/* display current Application Context */
L_TCHAR szApplication[PDU_MAX_UID_SIZE+1];
L_DicomGetApplication(hPDU, szApplication, PDU_MAX_UID_SIZE+1);
MessageBox(NULL, szApplication, TEXT("Test"), MB_OK);
/* change it */
nRet = L_DicomSetApplication(hPDU, TEXT("9.9.999.99999.9.9.9.9"));
if (nRet != DICOM_SUCCESS)
return nRet;
L_DicomGetApplication(hPDU, szApplication, PDU_MAX_UID_SIZE+1);
MessageBox(NULL, szApplication, 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