L_DicomSetMaxLength

Summary

Enables or disables the Maximum Length restriction for data transfer. It also sets the maximum length value if the restriction is enabled.

Syntax

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomSetMaxLength(hPDU, bEnabled, nLength)

Parameters

HDICOMPDU hPDU

A DICOM Associate handle.

L_BOOL bEnabled

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.

L_UINT32 nLength

The maximum length value to set. This value is only valid if bEnabled is TRUE.

Returns

Value Meaning
DICOM_SUCCESS The function was successful.
>0 An error occurred. Refer to Return Codes.

Comments

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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_DicomIsMaxLength.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.