[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
This is the ANSI Version of DOC_INFO_1
<StructLayout(LayoutKind.Sequential)> _
Private Structure DOC_INFO_1
<MarshalAs(UnmanagedType.LPStr)> Public pDocName As String
<MarshalAs(UnmanagedType.LPStr)> Public pOutputFile As String
<MarshalAs(UnmanagedType.LPStr)> Public pDatatype As String
End Structure
None.
None.