L_DicomAddUserInfo

Summary

Appends a User-defined item to the specified DICOM Associate.

Syntax

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomAddUserInfo(hPDU, nType, pData, nLength)

Parameters

HDICOMPDU hPDU

A DICOM Associate handle.

L_UCHAR nType

Type of the User-defined item.

L_UCHAR * pData

Buffer that contains the data for the User-defined item.

L_UINT16 nLength

Length of the User-defined item.

Returns

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

Comments

User-defined items may be included in the DICOM Associate to provide any other data the user finds necessary when establishing a DICOM Associate connection. The basic structure of the User-defined item is

image\UserData.gif

where the Type, Length and User Data are all determined by the user. The values shown are the lengths, in bytes, of the elements of the User-defined item.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_DicomGetUserInfoCount.

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.