How To Connect to a Network Printer with the Win32 API (154007)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154007 SUMMARY
Using the Win32 API, it is possible to bring up a predefined Windows
Dialog box for connecting to a network printer. The ConnectToPrinterDlg
Win32 API works under Windows NT. However, it is not accessible by
Visual Basic programs running under Windows 95 because the user interface
is so different. Therefore, you must use a Command line equivalent
statement to invoke the "Add Printer Wizard" under Windows 95. Below is
a code sample showing how to implement both methods of displaying the
Dialog.
REFERENCES
The Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kb32bitOnly kbhowto KB154007 |
---|
|