DOCINFOW (Structures)
Last changed: -95.96.252.63

.
Summary
Unicode version of DOC_INFO structure

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

struct DOCINFOW {

    [MarshalAs(UnmanagedType.LPWStr)]
    public string docName;
    [MarshalAs(UnmanagedType.LPWStr)]
    public string outputFile;
    [MarshalAs(UnmanagedType.LPWStr)]
    public string dataType;

}

VB.Net Definition:

  <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
  Structure DOCINFOW
      <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.

Notes:

None.

Documentation
DOCINFOW on MSDN

The above no longer corresponds with the Microsoft definition. which to use?

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    struct DOCINFOW {
      public int cbSize;
      [MarshalAs(UnmanagedType.LPWStr)]
      public string docName;
      [MarshalAs(UnmanagedType.LPWStr)]
      public string outputFile;
      [MarshalAs(UnmanagedType.LPWStr)]
      public string dataType;
      public int fwType;
    }