[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;
}
<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.
Different from the Ansi invoke! (Unicode uses LPStr)