[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;
}
<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
None.
None.
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;
}