CGXPrintDevice::CompareDeviceHandles
BOOL CompareDeviceHandles(LPDEVNAMES pDevnames, DWORD nSizeDevnames, LPDEVMODE pDevmode, DWORD nSizeDevmode);
BOOL CompareDeviceHandles(HGLOBAL hDN, HGLOBAL hDM);
pDevnames
Pointer to the DEVNAMES structure.
nSizeDevnames
Size of *pDevnames.
pDevmode
Pointer to the DEVMODE structure.
nSizeDevmode
Size of *pDevmode.
hDN
Handle for the memory block with the DEVNAMES structure.
hDM
Handle for the memory block with the DEVMODE structure.
Return Value
Returns TRUE if the settings stored in the print device object are equal to the settings in the passed structures.
Remarks
Compares the internal stored printer settings with the settings from the given structures.
Calling this method is useful in determining if settings are equal to the default printer settings or whether settings have changed.
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 returns FALSE. No action is performed.
END Control-Factory Specific