Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PRINTER_DEFAULTS (Structures)
 
.
Summary
Specifies the default data type, environment, initialization data, and access rights for a printer.

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
class PRINTER_DEFAULTS {
   public string pDatatype;
   public IntPtr pDevMode;
   public uint DesiredAccess;
}

VB Definition:

Structure PRINTER_DEFAULTS
   Public pDatatype As IntPtr
   Public pDevMode As IntPtr
   Public DesiredAccess As Integer
End Structure

User-Defined Field Types:

None.

Notes:

PRINTER_DEFAULTS should be defined as a class instead of a struct, so that OpenPrinter does not need pDefaults to be passed in as a ref argument, thus you can pass in null if you want to.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions