PrinterProperties

  BOOL PrinterProperties(hWnd, hPrinter)    
  HWND hWnd;    
  HANDLE hPrinter;    

This function allows the Properties of the Printer to be modified. This function will present a Dialog Box to allow the user to configure the Printer.

Parameters

hWnd

Specifies the Parent Window Handle that the Dialog box should be created with.

hPrinter

Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter API.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.