 |
GetPrinter ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetPrinter function retrieves information about a specified printer. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetPrinter(
HANDLE hPrinter, // handle to printer
DWORD Level, // information level
LPBYTE *pPrinter, // printer information buffer
DWORD cbBuf, // size of buffer
LPDWORD pcbNeeded // bytes received or required
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetPrinter IN winspool.drv;
AS GetPrinterA;
INTEGER hPrinter,;
INTEGER Lvl,;
STRING @ pPrinter,;
INTEGER cbBuf,;
INTEGER @ pcbNeeded
|
 |
 |
 |
| Parameters: |
 |
hPrinter
[in] Handle to the printer for which the function retrieves information. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
Level
[in] Specifies the level or type of structure that the function stores into the buffer pointed to by pPrinter.
pPrinter
[out] Pointer to a buffer that receives a structure containing information about the specified printer.
cbBuf
[in] Specifies the size, in bytes, of the buffer pointed to by pPrinter.
pcbNeeded
[out] Pointer to a variable that the function sets to the size, in bytes, of the printer information. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| My comment: |
 |
| Corresponding FoxPro functions: GetPrinter(), SYS(1037). |
 |
 |
| Word Index links for the GetPrinter : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-12-30 22:04:29 | | Modified: | 2003-07-27 10:46:32 | Visited in last 7 days: 47 |