Sets the ID for a Presentation Context.
L_LTDIC_API L_INT L_DicomSetPresentation(hPDU, nIndex, nID)
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, )
|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.
Win32, x64, Linux.
For an example, refer to L_DicomDelPresentation.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries