<< Return to Main Index

< Return to Class Index

CGXPrintDevice::GetDeviceInfo

static void GetDeviceInfo(HGLOBAL hDN, HGLOBAL hDM, LPDEVNAMES& pDevnames, DWORD &nSizeDevnames, LPDEVMODE& pDevmode, DWORD& nSizeDevmode);

void GetDeviceInfo(LPDEVNAMES& pDevnames, DWORD &nSizeDevnames, LPDEVMODE& pDevmode, DWORD& nSizeDevmode);

pDevnames

Receives a pointer to the DEVNAMES structure.

nSizeDevnames

Receives the size of *pDevnames.

pDevmode

Receives a pointer to the DEVMODE structure.

nSizeDevmode

Receives the size of *pDevmode.

hDN

Handle for the memory block with the DEVNAMES structure.

hDM

Handle for the memory block with the DEVMODE structure.

Remarks

Allocates and returns pointers to DEVNAMES and DEVMODE structures initialized with the settings stored in the printer settings object.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXPrintDevice::ImplementPrintDevice method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action.

END Control-Factory Specific

CGXPrintDevice

Class Overview | Class Members