DOC: PRINTER_DEFAULTS Contains an Incorrectly Typed Member

ID: Q183852


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0


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 and Windows 98, and not under Windows NT. 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 


REFERENCES

To learn more about the API Text Viewer, on the Visual Basic 5.0 Help menu, click Books Online. In the Find text box, enter the search criterion "api" (without the quotation marks). The first item under the Visual Basic Books Online node is the topic "Accessing the Microsoft Windows API."

Additional query words: kbVBp500bug kbWin32 kbAPI kbPrint kbVBp kbDSupport Kbdsd kbVBp600bug

Keywords : kbGrpVB
Version :
Platform : WINDOWS
Issue type :


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.