#include "ltdic.h"
L_LTDIC_API L_INT L_DicomSetPresentation(hPDU, nIndex, nID)
Sets the ID for a Presentation Context.
A DICOM Associate handle.
Index of the Presentation Context to set.
Presentation ID. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data. It must be unique. It should start at 1 and it must be odd. (1, 3, 5, )
Value | Meaning |
---|---|
DICOM_SUCCESS | The function was successful. |
>0 | An error occurred. Refer to Return Codes. |
A DICOM Associate (Request or Accept) can have multiple Presentation Contexts. The ID for each of these Presentation Contexts must be unique. The IDs for the Presentation Context entries for the specified DICOM Associate should start at 1, and must be odd.
For example, a DICOM Associate may have three Presentation Context entries. One of those entries should have an ID of 1. The IDs must be unique. (Having two Presentation Context entries with an ID of 3 is not valid.) Therefore the IDs may be 1 for the first Presentation Context, 3 for the next one and 5 for the last one.
Required DLLs and Libraries
Win32, x64, Linux.
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