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
Unicode version of DOC_INFO structure
Summary
describes a document that will be printed

C# Definition:

  [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
  struct DOC_INFO_1W {
    [MarshalAs(UnmanagedType.LPWStr)]
    public string pDocName;
    [MarshalAs(UnmanagedType.LPWStr)]
    public string pOutputFile;
    [MarshalAs(UnmanagedType.LPWStr)]
    public string pDataType;
  }

VB.NET Definition:

  <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
  Structure DOC_INFO_1W
      <MarshalAs(UnmanagedType.LPWStr)> Public pDocName As String
      <MarshalAs(UnmanagedType.LPWStr)> Public pOutputFile As String
      <MarshalAs(UnmanagedType.LPWStr)> Public pDataType As String
  End Structure!!!!User-Defined Field Types:

None.

/// <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

Notes:

None.

Sample Code:

How To send raw data to a printer:

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

Documentation
DOC_INFO_1W on MSDN

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