#include "ltdic.h"
L_INT LDicomPrintSCU::GetPrinterInfo(pRequiredPrinterInfo, bBasicPrintManagement, bColorPrintManagement)
L_INT LDicomPrintSCU::GetPrinterInfo(pPrinterInfo, uStructSize) const
Queries the Print SCP for information about the printer.
Pointer to a PRINTERINFO structure that specifies the printer information to be retrieved. If this is set to NULL, the Values of all the Attributes are required.
The parameter is described below.
The parameter is described below.
Pointer to a PRINTERINFO structure. The function will set the members of this structure to the retrieved printer information.
Size of the structure pointed to by pPrinterInfo.
Value | Meaning |
---|---|
0 | The required printer information was retrieved successfully. |
DICOM_ERROR_PRINTSCU_FAILURE_STATUS | The response of the Print SCP specifies a Failure status code. |
DICOM_ERROR_PRINTSCU_CLASS_NOT_SUPPORTED | None of the three Meta SOP Classes (the Basic Grayscale Print Management Meta SOP Class, the Basic Color Print Management Meta SOP Class, or the Pull Stored Print Management Meta SOP Class) is supported on the Association, and hence the Printer SOP Class is not supported. |
For L_INT LDicomPrintSCU::GetPrinterInfo(pRequiredPrinterInfo, bBasicPrintManagement, bColorPrintManagement) > 0 | An error occurred. Refer to Return Codes. |
For L_INT LDicomPrintSCU::GetPrinterInfo(pPrinterInfo, uStructSize) const <> 0 | An error occurred. Refer to Return Codes. |
L_INT LDicomPrintSCU::GetPrinterInfo(pRequiredPrinterInfo, bBasicPrintManagement, bColorPrintManagement)
The LDicomPrintSCU::GetPrinterInfo(pRequiredPrinterInfo, bBasicPrintManagement, bColorPrintManagement) 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 LDicomPrintSCU::GetLastOperationStatus 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 LDicomPrintSCU::GetPrinterInfo(pPrinterInfo, uStructSize) function.
L_INT LDicomPrintSCU::GetPrinterInfo(pPrinterInfo, uStructSize) const
The L_INT LDicomPrintSCU::GetPrinterInfo(pPrinterInfo, uStructSize) const function fills the members of the specified PRINTERINFO structure with the printer information retrieved previously from the Print SCP.
Query the Print SCP for printer information by calling the [LDicomPrintSCU:GetPrinterInfo function. After the information is retrieved successfully, the function GetPrinterInfo can then be used to obtain the information sent by the Print SCP.
Required DLLs and Libraries
Win32, x64
For an example, refer to LDicomPrintSCU::GetPrinterInfo.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document