Microsoft KB Archive/183852

= DOC: PRINTER_DEFAULTS Contains an Incorrectly Typed Member =

Article ID: 183852

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q183852



SUMMARY
The API Text Viewer shows the pDevMode member of the PRINTER_DEFAULTS user- defined type as DEVMODE user-defined type. If you pass this member to another Windows API to control a printer, the API works correctly only under Windows 95, Windows 98, and Windows Me, but not under Windows NT or Windows 2000. The pDevMode member should be declared as a long.



MORE INFORMATION
The following is the correct type declaration for the PRINTER_DEFAULTS user- defined type: Type PRINTER_DEFAULTS pDatatype As String pDevMode As Long pDesiredAccess As Long End Type

