#include "ltdic.h"

L_BOOL pEXT_CALLBACK YourFunction(pElement, nFlags, pUserData)

Called for each data element of the data set.



A DICOM handle.

L_UINT16 nFlags

Reserved for future use. Pass 0 for this argument.

L_VOID * pUserData

Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the LDicomDS::CopyDS function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.


Value Meaning
TRUE Include the element pElement in the resulting copy.
FALSE Do not include the element pElement in the resulting copy.


The LDicomDS::CopyDS function calls your callback function for each element of the data set. Return TRUE in the callback function if you want this element included in the resulting copy of the data set.  Return FALSE if you do not want this element included.


Win32, x64


For an example, refer to LDicomDS::CopyDS.

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

LEADTOOLS DICOM C++ Class Library Help