Example #1
0
        public void Read(BinaryReader br)
        {
            // Check to see if the first 4 bytes (magic) is valid.
            if (br.BaseStream.Length != 0x36C0 || (Magic = br.ReadUInt32()) != 0x48444D53)
            {
                return; // Abort
            }
            Version   = br.ReadUInt16();
            Reserved2 = br.ReadUInt16();

            for (int i = 0; i < 16; i++)
            {
                AppInfo[i] = new ApplicationInfo(br);
            }

            AppSettings = new ApplicationSettings(br);
            Reserved8   = br.ReadUInt64();
            SmallIcon   = new SmallIcon(br);
            LargeIcon   = new LargeIcon(br);
        }
Example #2
0
        public void Read(BinaryReader br)
        {
            // Check to see if the first 4 bytes (magic) is valid.
            if (br.BaseStream.Length != 0x36C0 || (Magic = br.ReadUInt32()) != 0x48444D53)
                return; // Abort

            Version = br.ReadUInt16();
            Reserved2 = br.ReadUInt16();

            for (int i = 0; i < 16; i++)
                AppInfo[i] = new ApplicationInfo(br);

            AppSettings = new ApplicationSettings(br);
            Reserved8 = br.ReadUInt64();
            SmallIcon = new SmallIcon(br);
            LargeIcon = new LargeIcon(br);
        }