#include "ltdic.h"
L_LTDIC_API L_VOID L_DicomGetCalled(hPDU, strCalled, SizeInWords)
Returns the name of the Application Entity that was called.
A DICOM Associate handle.
String Buffer to be updated with the name of the Application Entity that was called.
size of the destination string buffer.
None.
For more information on the structure of an Associate, refer to LEADTOOLS DICOM Network Communication Support for Message Exchange.
Required DLLs and Libraries
Win32, x64, Linux.
L_INT DicomGetCalledExample(HDICOMPDU hPDU)
{
L_INT nRet;
L_TCHAR szCalled[PDU_MAX_TITLE_SIZE+1];
L_TCHAR szCalling[PDU_MAX_TITLE_SIZE+1];
/* set called application title */
nRet = L_DicomSetCalled(hPDU, TEXT("Called Program"));
if (nRet != DICOM_SUCCESS)
return nRet;
/* set calling application title */
nRet = L_DicomSetCalling(hPDU, TEXT("Calling Program"));
if (nRet != DICOM_SUCCESS)
return nRet;
/* display the current values */
L_DicomGetCalled(hPDU, szCalled, PDU_MAX_TITLE_SIZE+1);
L_DicomGetCalling(hPDU, szCalling, PDU_MAX_TITLE_SIZE+1);
MessageBox(NULL, szCalled, TEXT("Test"), MB_OK);
MessageBox(NULL, szCalling, 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