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:
Enumerating forms supported by a specified printer
EnumForms
..msdn    Add comment     W32 Constants      Translate this page
The EnumForms function enumerates the forms supported by the specified printer.
Code examples:
Enumerating forms supported by a specified printer
Declaration:
BOOL EnumForms(
  HANDLE hPrinter,    // handle to printer object
  DWORD Level,        // data level
  LPBYTE pForm,       // form information buffer
  DWORD cbBuf,        // size of form information buffer
  LPDWORD pcbNeeded,  // bytes received or required
  LPDWORD pcReturned  // number of forms received
);
FoxPro declaration:
DECLARE INTEGER EnumForms IN winspool.drv;
    INTEGER   hPrinter,;
    INTEGER   lvl,;
    INTEGER   pForm,;
    INTEGER   cbBuf,;
    INTEGER @ pcbNeeded,;
    INTEGER @ pcReturned

Parameters:
hPrinter
[in] Handle to the printer for which the forms should be enumerated.

Level
[in] Specifies the version of the structure to which pForm points. This value must be 1.

pForm
[out] Pointer to a FORM_INFO_1 structure.

cbBuf
[in] Specifies the size, in bytes, of the buffer to which pForm points.

pcbNeeded
[out] Pointer to a variable that receives the number of bytes copied to or the number of bytes required for the array to which pForm points.

pcReturned
[out] Pointer to a variable that receives the number of FORM_INFO_1 structures copied into the array to which pForm points.
Return value:
If the function succeeds, the return value is a nonzero value.
Word Index links for the EnumForms :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-24 15:09:06
Modified: 2003-02-24 15:11:06
Visited in last 7 days: 22
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.225.20.73)
11 sec.Function: 'CM_Locate_DevNode_Ex'
23 sec.Function: 'LsaFreeMemory'
37 sec.Function: 'DeleteUrlCacheEntry'
50 sec.Function: 'SetFileTime'
1.08 min.Function: 'InternetAttemptConnect'
1.3 min.Function: 'ObtainUserAgentString'
1.55 min.Function: 'GetComputerName'
1.77 min.Function: 'CeRapiGetError'
1.97 min.Function: 'ImpersonateLoggedOnUser'
2.2 min.Function: 'NetUserDel'
Google
Advertise here!