2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.InstallShieldCabinet
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <see href="https://github.com/twogood/unshield/blob/main/lib/cabfile.h"/>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
|
|
|
public sealed class CommonHeader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// "ISc("
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
2025-10-31 13:59:28 -04:00
|
|
|
public string Signature = string.Empty;
|
2025-09-26 10:57:15 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Encoded version
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Version;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Volume information
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint VolumeInfo;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset to cabinet descriptor
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint DescriptorOffset;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Cabinet descriptor size
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint DescriptorSize;
|
|
|
|
|
}
|
2025-10-30 21:51:15 -04:00
|
|
|
}
|