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

StartDocPrinter (Structures)
 
.
Summary
Informs the print spooler that a document is to be spooled for printing.

C# Definition:

using System.Runtime.InteropServices; // for CharSet

// For Unicode
[DllImport("winspool.drv", EntryPoint="StartDocPrinterW", SetLastError=true,
  CharSet=CharSet.Unicode,
  ExactSpelling=true,
  CallingConvention=CallingConvention.StdCall)]
private static extern uint StartDocPrinter(
  IntPtr hPrinter,
  Int32 level,  
  [In] ref DOC_INFO_1W di);

// For ANSI
[DllImport("winspool.drv", EntryPoint="StartDocPrinterA", SetLastError=true,
  CharSet=CharSet.Ansi,
  ExactSpelling=true,
  CallingConvention=CallingConvention.StdCall)]
private static extern uint StartDocPrinter(
  IntPtr hPrinter,
  Int32 level,  
  [In] ref DOC_INFO_1A di);

  [In, MarshalAs(UnmanagedType.LPStruct)] DOC_INFO_1 di);

VB Definition:

Structure StartDocPrinter
   Public TODO
End Structure

VB.NET Declaration:

'For Unicode

'For UniCode

  <DllImport("winspool.drv", CharSet:=CharSet.Unicode, ExactSpelling:=False, CallingConvention:=CallingConvention.StdCall)> _
  Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1W) As Long
  End Function

'For ANSI

  <DllImport("winspool.drv", CharSet:=CharSet.Ansi, ExactSpelling:=False, CallingConvention:=CallingConvention.StdCall)> _
  Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1A) As Long
  End Function

User-Defined Field Types:

None.

Notes:

See DOC_INFO_1 .

See DOC_INFO_1A Ansi or DOC_INFO_1W Unicode .

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
Edit This Page
Find References
Show Printable Version
Revisions