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 retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
EnumPrinterData
..msdn    Add comment     W32 Constants      Translate this page
The EnumPrinterData function enumerates configuration data for a specified printer.
Code examples:
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
Declaration:
DWORD EnumPrinterData(
  HANDLE hPrinter,       // handle to printer
  DWORD dwIndex,         // index of value to retrieve
  LPTSTR pValueName,     // value name buffer
  DWORD cbValueName,     // size of value name buffer
  LPDWORD pcbValueName,  // bytes received
  LPDWORD pType,         // value type code
  LPBYTE pData,          // value data buffer
  DWORD cbData,          // size of value data buffer
  LPDWORD pcbData        // bytes received
);
FoxPro declaration:
DECLARE INTEGER EnumPrinterData IN winspool.drv;
    INTEGER   hPrinter,;
    INTEGER   dwIndex,;
    STRING  @ pValueName,;
    INTEGER   cbValueName,;
    INTEGER @ pcbValueName,;
    INTEGER @ pType,;
    STRING  @ pData,;
    INTEGER   cbData,;
    INTEGER @ pcbData

Parameters:
hPrinter
[in] Handle to the printer whose configuration data is to be obtained.

dwIndex
[in] An index value that specifies the configuration data value to retrieve.

pValueName
[out] Pointer to a buffer that receives the name of the configuration data value.

cbValueName
[in] Specifies the size, in bytes, of the buffer pointed to by pValueName.

pcbValueName
[out] Pointer to a variable that receives the number of bytes stored into the buffer pointed to by pValueName.

pType
[out] Pointer to a variable that receives a code indicating the type of data stored in the specified value.

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

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

pcbData
[out] Pointer to a variable that receives the number of bytes stored into the buffer pointed to by pData.
Return value:
If the function succeeds, the return value is ERROR_SUCCESS (0).
My comment:
MSDN: EnumPrinterData retrieves printer configuration data set by the SetPrinterData function. A printer"s configuration data consists of a set of named and typed values. The EnumPrinterData function obtains one of these values, and its name and a type code, each time you call it. Call the EnumPrinterData function several times in succession to obtain all of a printer"s configuration data values.
Word Index links for the EnumPrinterData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-17 08:23:07
Modified: 2003-01-17 08:26:32
Visited in last 7 days: 21
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.162.154.91)
14 sec.Function: 'GdiSetBatchLimit'
27 sec.Function: 'EnableWindow'
40 sec.Function: 'FindFirstUrlCacheEntry'
52 sec.Function: 'GetClipboardViewer'
1.05 min.
Function group: 'Version Information'
1.27 min.Function: 'DragAcceptFiles'
1.45 min.Function: 'CeRegDeleteValue'
1.67 min.Function: 'GetKeyboardLayoutList'
1.87 min.Function: 'CreateMD5SSOHash'
2.07 min.Function: 'ChangeDisplaySettings'
Google
Advertise here!