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

DOC_INFO_1 (Structures)
 
.
Summary
describes a document that will be printed

C# Definition:

/// <summary>Windows GDI DOC_INFO_1 structure</summary>
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
private class DOC_INFO_1 {
    /// <summary>Document name</summary>
    [MarshalAs(UnmanagedType.LPStr)] public string pDocName;
    /// <summary>output file name (or NULL for a printer)</summary>
    [MarshalAs(UnmanagedType.LPStr)] public string pOutputFile;
    /// <summary>data type</summary>
    [MarshalAs(UnmanagedType.LPStr)] public string pDataType;
}

VB Definition:

<StructLayout(LayoutKind.Sequential)> Private Class DOC_INFO_1
     <MarshalAs(UnmanagedType.LPStr)> Public pDataType As String
     <MarshalAs(UnmanagedType.LPStr)> Public pDocName As String
     <MarshalAs(UnmanagedType.LPStr)> Public pOutputFile As String
End Class

Sample Code:

How To send raw data to a printer:

http://support.microsoft.com/default.aspx?scid=kb;en-us;322091

Notes:

Used in conjunction with the GDI StartDocPrinter function

Documentation
DOC_INFO_1 on MSDN

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