ClosePrinter

  BOOL ClosePrinter(hPrinter)    
  HANDLE hPrinter;    

The function Closes the Printer that was previously Opened with the OpenPrinter function.

Parameters

hPrinter

Specifies the handle of the Printer to be closed.

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.