 |
ClosePrinter ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The ClosePrinter function closes the specified printer object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL ClosePrinter(
HANDLE hPrinter // handle to printer object
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER ClosePrinter IN winspool.drv;
INTEGER hPrinter
|
 |
 |
 |
| Parameters: |
 |
hPrinter
[in] Handle to the printer object to be closed. This handle is returned by the OpenPrinter or AddPrinter function. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| My comment: |
 |
| When the ClosePrinter function returns, the handle hPrinter is invalid, regardless of whether the function has succeeded or failed. |
 |
 |
| Word Index links for the ClosePrinter : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-08-16 09:29:44 | | Modified: | 2003-01-18 13:58:00 | Visited in last 7 days: 77 |