Enables or disables the Maximum Length restriction for data transfer. It also sets the maximum length value if the restriction is enabled.
L_LTDIC_API L_INT L_DicomSetMaxLength(hPDU, bEnabled, nLength)
A DICOM Associate handle.
Flag that indicates whether to enable or disable the Maximum Length restriction. Possible values are:
|TRUE||Enable the Maximum Length restriction for data transfer.|
|FALSE||Disable the Maximum Length restriction for data transfer.|
The maximum length value to set. This value is only valid if bEnabled is TRUE.
|DICOM_SUCCESS||The function was successful.|
|>0||An error occurred. Refer to Return Codes.|
If the Maximum Length restriction is enabled the Maximum Length must be 0, or >= 8 and it must be an even number (8, 10, 12, ).
Win32, x64, Linux.
For an example, refer to L_DicomIsMaxLength.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries