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)
ConnectToPrinterDlg
..msdn    Add comment     W32 Constants      Translate this page
The ConnectToPrinterDlg function displays a dialog box that lets users browse and connect to printers on a network. If the user selects a printer, the function attempts to create a connection to it; if a suitable driver is not installed on the server, the user is given the option of creating a printer locally.
Code examples:
How to browse and connect to printers on a network (WinNT)
Declaration:
HANDLE ConnectToPrinterDlg(
  HWND hwnd,    // handle to parent window
  DWORD Flags   // reserved; must be zero
);
FoxPro declaration:
DECLARE INTEGER ConnectToPrinterDlg IN winspool.drv;
    INTEGER hwnd,;
    INTEGER Flags

Parameters:
hwnd
[in] Specifies the parent window of the dialog box.

Flags
[in] This parameter is reserved and must be zero.
Return value:
If the function succeeds and the user selects a printer, the return value is a handle to the selected printer.
My comment:
Windows NT/2000/XP: Included in Windows NT 3.5 and later.
Windows 95/98/Me: Unsupported.

An application should call DeletePrinter to delete a local printer. An application should call DeletePrinterConnection to delete a connection to a printer.
Word Index links for the ConnectToPrinterDlg :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-26 17:08:07
Modified: 2003-01-26 17:10:16
Visited in last 7 days: 19
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.146.59.207)
4 sec.Function: 'GdipDrawString'
9 sec.Function: 'GetModuleHandle'
14 sec.Function: 'GdipRotateMatrix'
21 sec.Function: 'CertOpenSystemStore'
26 sec.Function: 'GetAsyncKeyState'
31 sec.Function: 'CreateRectRgn'
38 sec.Gallery
45 sec.
Function group: 'Performance Monitoring'
52 sec.Function: 'AVIStreamRelease'
1.02 min.Function: 'GdipGetImageEncoders'
Google
Advertise here!