日期:2014-05-18 浏览次数:20894 次
[StructLayout(LayoutKind.Sequential)] public struct LIBHEADER { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] public char[] sLibName; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] public char[] sPathToLibrary; public Int32 iEntries; public Int32 iUsed; public UInt16 iSort; public UInt16 iVersion; public Boolean fContainsSubDirectories; public Int32 iReserved; }
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public struct LIBHEADER { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] public string sLibName; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] public string sPathToLibrary; public Int32 iEntries; public Int32 iUsed; public UInt16 iSort; public UInt16 iVersion; public Boolean fContainsSubDirectories; public Int32 iReserved; }