using System.Runtime.InteropServices; // for CharSet
[DllImport("winspool.drv", EntryPoint="StartDocPrinterA", SetLastError=true,
CharSet=CharSet.Ansi,
ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
private static extern bool StartDocPrinter(
IntPtr hPrinter,
Int32 level,
[In, MarshalAs(UnmanagedType.LPStruct)] DOC_INFO_1 di);
Structure StartDocPrinter
Public TODO
End Structure
None.
See DOC_INFO_1 .