#include "ltdic.h"

L_LTDIC_API L_INT L_DicomPrintSCUGetPrinterInfo(hPrintSCU, pRequiredPrinterInfo, bBasicPrintManagement, bColorPrintManagement)



A handle to the DICOM Print SCU.

const pPRINTERINFO pRequiredPrinterInfo

Required printer information.

L_BOOL bBasicPrintManagement

Basic or Pull Stored Print Management.

L_BOOL bColorPrintManagement

Grayscale or Color Print Management.


Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.


The L_DicomPrintSCUGetPrinterInfo function queries the Print SCP for information about the printer. It will not return until either it receives the response of the Print SCP, or an error occurs. Use the L_DicomPrintSCUGetLastOperationStatus function to obtain the status code specified in the response of the Print SCP. If the return value of the GetPrinterInfo function is 0, then the required printer information was retrieved successfully (with either a Success or Warning status code in the Print SCP's response).

The pRequiredPrinterInfo parameter points to a PRINTERINFO structure that specifies what printer information to retrieve. In this structure, all the members that specify Attributes are string buffers. To query the Print SCP for the Value of an Attribute, the corresponding structure member must contain a non-empty string. If a structure member contains an empty string, the corresponding Attribute will not be included in the request. However, if all the members contain empty strings, the Print SCP will be queried for the Values of all the Attributes.

The Printer SOP Class is included in each of the three Meta SOP Classes (the Basic Grayscale Print Management Meta SOP Class, the Basic Color Print Management Meta SOP Class, and the Pull Stored Print Management Meta SOP Class). The bBasicPrintManagement and bColorPrintManagement parameters recommend which Meta SOP Class to specify in the request to the Print SCP. However, unless the Meta SOP Class specified by these parameters is supported on the Association, it will not be specified in the request and the function will choose a supported Meta SOP Class instead. Therefore, if only one Meta SOP Class is supported, the function will always choose it irrespective of the values of these parameters.

The bBasicPrintManagement parameter selects between the Basic Print Management Meta SOP Classes and the Pull Stored Print Management Meta SOP Class. The bColorPrintManagement parameter selects between the Basic Grayscale Print Management Meta SOP Class and the Basic Color Print Management Meta SOP Class.

Obtain the printer information retrieved from the Print SCP by calling the L_DicomPrintSCUGetPrinterInfo function.

Required DLLs and Libraries


Win32, x64, Linux.

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