#include "ltdic.h"
L_LTDIC_API L_INT L_DicomSetMaxLength(hPDU, bEnabled, nLength)
Enables or disables the Maximum Length restriction for data transfer. It also sets the maximum length value if the restriction is enabled.
A DICOM Associate handle.
Flag that indicates whether to enable or disable the Maximum Length restriction. Possible values are:
Value | Meaning |
---|---|
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.
Value | Meaning |
---|---|
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, ).
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