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 ports that are available for printing on a specified server
EnumPorts
..msdn    Add comment     W32 Constants      Translate this page
The EnumPorts function enumerates the ports that are available for printing on a specified server.
Code examples:
Enumerating ports that are available for printing on a specified server
Declaration:
BOOL EnumPorts(
  LPTSTR pName,       // server name
  DWORD Level,        // information level
  LPBYTE pPorts,      // port information buffer
  DWORD cbBuf,        // size of port information buffer
  LPDWORD pcbNeeded,  // bytes received or required
  LPDWORD pcReturned  // number of ports received
);
FoxPro declaration:
DECLARE INTEGER EnumPorts IN winspool.drv;
    STRING    pName,;
    INTEGER   Level,;
    STRING  @ pPorts,;
    INTEGER   cbBuf,;
    INTEGER @ pcbNeeded,;
    INTEGER @ pcReturned

Parameters:
pName
[in] Pointer to a null-terminated string that specifies the name of the server whose printer ports you wish to enumerate.

Level
[in] Specifies the type of information returned in the pPorts buffer.

pPorts
[out] Pointer to a buffer that receives an array of PORT_INFO_1 or PORT_INFO_2 structures.

cbBuf
[in] Specifies the size, in bytes, of the buffer pointed to by pPorts.

pcbNeeded
[out] Pointer to a variable that receives the number of bytes copied to the pPorts buffer.

pcReturned
[out] Pointer to a variable that receives the number of PORT_INFO_1 or PORT_INFO_2 structures returned in the pPorts buffer.
Return value:
If the function succeeds, the return value is a nonzero value.
Word Index links for the EnumPorts :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-08-15 11:03:26
Modified: 2002-08-15 11:05:20
Visited in last 7 days: 15
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.234.0.85)
37 sec.Function: 'IpRenewAddress'
Function group: 'IP Helper'
1.05 min.Function: 'InternetAttemptConnect'
4 day(s)Example: 'Form Magnifier'
 Example: 'How to download this reference`s archive through WinInet functions using InternetOpenUrl'
 Function: 'CryptGetProvParam'
Function group: 'Cryptography Reference'
 Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
 Example: 'Terminating all running applications from a VFP program'
 Function: 'RtlGetCompressionWorkSpaceSize'
Google
Advertise here!