AddPrinter() API Call Allows Invalid Data Type (221200)
The information in this article applies to:
- Microsoft Windows NT Server 4.0 Terminal Server Edition SP4
- Microsoft Windows NT Workstation 4.0
- Microsoft Windows NT Workstation 4.0 SP1
- Microsoft Windows NT Workstation 4.0 SP2
- Microsoft Windows NT Workstation 4.0 SP3
- Microsoft Windows NT Workstation 4.0 SP4
This article was previously published under Q221200 SYMPTOMS
When you use the AddPrinter() API call to create printers programmatically, custom settings that you specify may not be used.
CAUSE
This behavior can occur if you add a data type that is not valid with other settings. For example, the EMF and Direct Printing settings are not compatible with each other. The validity of the API call is not checked by the operating system.
RESOLUTION
To verify settings that are valid for any data type:
- Click Start, point to Settings, and then click Printers.
- Create a new printer, or right-click a printer and then click Properties.
- Configure all the settings that you want to program and verify that the settings are available for the data type (such as RAW or EMF).
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kbprb kbprint kbProgramming KB221200 |
---|
|