Using Win32 functions in Visual FoxPro Image Gallery
Printing and Print Spooler
..msdn
AddPort
AddPrinter
ClosePrinter
ConfigurePort
ConnectToPrinterDlg
DeletePort
DeviceCapabilities
DocumentProperties
EndDoc
EndPage
EnumForms
EnumJobs
EnumPorts
EnumPrinterData
EnumPrinterDrivers
EnumPrinters
EnumPrintProcessorDatatypes
EnumPrintProcessors
Escape
FindClosePrinterChangeNotification
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
FreePrinterNotifyInfo
GetDefaultPrinter
GetPrinter
GetPrinterData
GetPrinterDriverDirectory
GetPrintProcessorDirectory
OpenPrinter
PrinterProperties
SetDefaultPrinter
SetJob
SetPrinter
StartDoc
StartPage
Code examples:
How to browse and connect to printers on a network (WinNT)
How to retrieve the number of print jobs queued for the printer
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
GetPrinter
..msdn    Add comment     W32 Constants      Translate this page
The GetPrinter function retrieves information about a specified printer.
Code examples:
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
How to retrieve the number of print jobs queued for the printer
How to browse and connect to printers on a network (WinNT)
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-30 22:04:29
Modified: 2003-07-27 10:46:32
Visited in last 7 days: 48
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
17 sec.Function: 'CloseWindow'
36 sec.Function: 'GetCompressedFileSize'
55 sec.Function: 'ImageList_GetImageCount'
1.23 min.Function: 'CommDlgExtendedError'
1.6 min.Function: 'WNetAddConnection2'
1.92 min.Function: 'CertCloseStore'
2.25 min.Function: 'DrawAnimatedRects'
2.53 min.Function: 'SQLTables'
2.87 min.Function: 'waveInAddBuffer'
3.17 min.Function: 'MQDeleteQueue'
Google
Advertise here!