 |
OpenPrinter ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The OpenPrinter function retrieves a handle to the specified printer or print server or other types of handles in the print subsystem. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL OpenPrinter(
LPTSTR pPrinterName, // printer or server name
LPHANDLE phPrinter, // printer or server handle
LPPRINTER_DEFAULTS pDefault // printer defaults
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER OpenPrinter IN winspool.drv;
STRING pPrinterName,;
INTEGER @ phPrinter,;
INTEGER pDefault
|
 |
 |
 |
| Parameters: |
 |
pPrinterName
[in] Pointer to a null-terminated string that specifies the name of the printer or print server, the printer object, the XcvMonitor, or the XcvPort.
phPrinter
[out] Pointer to a variable that receives a handle to the open printer or print server object.
pDefault
[in] Pointer to a PRINTER_DEFAULTS structure. This value can be NULL. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| Word Index links for the OpenPrinter : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-12-30 21:02:55 | | Modified: | 2002-12-30 21:04:44 | Visited in last 7 days: 55 |