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:
Retrieving default spooling directory name
GetPrinterData
..msdn    Add comment     W32 Constants      Translate this page
The GetPrinterData function retrieves configuration data for the specified printer or print server.
Code examples:
Retrieving default spooling directory name
Declaration:
DWORD GetPrinterData(
  HANDLE hPrinter,    // handle to printer or print server
  LPTSTR pValueName,  // value name
  LPDWORD pType,      // data type
  LPBYTE pData,       // configuration data buffer
  DWORD nSize,        // size of configuration data buffer
  LPDWORD pcbNeeded   // bytes received or required 
);
FoxPro declaration:
DECLARE INTEGER GetPrinterData IN winspool.drv;
    INTEGER   hPrinter,;
    STRING    pValueName,;
    INTEGER @ pType,;
    STRING  @ pData,;
    INTEGER   nSize,;
    INTEGER @ pcbNeeded
Parameters:
hPrinter
[in] Handle to the printer or print server for which the function retrieves configuration data. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.

pValueName
[in] Pointer to a null-terminated string that identifies the data to retrieve.

pType
[out] Pointer to a variable that receives the type of data retrieved.

pData
[out] Pointer to a buffer that receives the configuration data.

nSize
[in] Specifies the size, in bytes, of the buffer pointed to by pData.

pcbNeeded
[out] Pointer to a variable that receives the size, in bytes, of the configuration data.
Return value:
If the function succeeds, the return value is ERROR_SUCCESS (0).
Word Index links for the GetPrinterData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-30 21:35:09
Modified: 2002-12-30 21:37:27
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.82.201)
6 sec.Example: 'How to create MD-5 and SHA-1 hash values from a string'
Google
Advertise here!