| LEADTOOLS DICOM C DLL Help > Function References > L_DicomSetUserInfo | 
#include "ltdic.h"
L_LTDIC_API L_INT L_DicomSetUserInfo(hPDU, nIndex, nType, pData, nLength)
| HDICOMPDU hPDU; | /* a DICOM Associate handle */ | 
| L_INT nIndex; | /* index */ | 
| L_UCHAR nType; | /* type */ | 
| L_UCHAR * pData; | /* user data */ | 
| L_UINT16 nLength; | /* length */ | 
Sets the specified User-defined item using the specified parameters.
| Parameter | Description | 
| hPDU | A DICOM Associate handle. | 
| nIndex | Index of the User-defined item to be set. | 
| nType | Type of the User-defined item. | 
| pData | Buffer that contains the data for the specified User-defined item. | 
| nLength | Length of the specified User-defined item. | 
Returns
| DICOM_SUCCESS | The function was successful. | 
| >0 | An error occurred. Refer to Return Codes. | 
Comments
For more information about User-defined items, refer to L_DicomAddUserInfo.
Required DLLs and Libraries
| For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application | 
Win32, x64, Linux.
See Also
| Functions: | L_DicomGetUserInfoCount, L_DicomGetLengthUserInfo, L_DicomGetDataUserInfo, L_DicomGetTypeUserInfo, L_DicomAddUserInfo, L_DicomDelUserInfo | 
| Topics: | 
Example
For an example, refer to L_DicomGetUserInfoCount.