I found a solution.. I needed to change my struct in c# to
Code:struct SFILE_FIND_DATA { [MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 260)] public string cFileName; // Name of the found file public IntPtr szPlainName; // Plain name of the found file public UInt32 dwHashIndex; // Hash table index for the file public UInt32 dwBlockIndex; // Block table index for the file public UInt32 dwFileSize; // Uncompressed size of the file, in bytes public UInt32 dwFileFlags; // MPQ file flags public UInt32 dwCompSize; // Compressed file size public UInt32 dwFileTimeLo; // Low 32-bits of the file time (0 if not present) public UInt32 dwFileTimeHi; // High 32-bits of the file time (0 if not present) public UInt32 lcLocale; // Locale version };




Reply With Quote