Example #1
0
        public List <GRPICONDIR> GetGroupIcons(Stream stream)
        {
            List <GRPICONDIR> groupIconDir = new List <GRPICONDIR>();

            for (int i = 0; i < rscTypes.Length; i++)
            {
                if (rscTypes[i].ResourceType != ResourceType.RT_GROUP_ICON)
                {
                    continue;
                }
//StreamWriter sw = new StreamWriter("c:\\borrar\\icons\\test2\\dump_load_groups.txt", false);
//sw.Write("index\tID\toffset\tlength\r\n");

                for (int j = 0; j < rscTypes[i].rtNameInfo.Length; j++)
                {
                    stream.Seek((1 << rscAlignShift) * rscTypes[i].rtNameInfo[j].rnOffset, SeekOrigin.Begin);
                    GRPICONDIR grpIconDir = new GRPICONDIR(stream);
//sw.Write(j.ToString("000") + "\t" + rscTypes[i].rtNameInfo[j].ID + "\t" + rscTypes[i].rtNameInfo[j].rnOffset + "\t" + rscTypes[i].rtNameInfo[j].rnLength + "\t" + grpIconDir.idEntries.Length + "\r\n");

//foreach(GRPICONDIRENTRY gentry in grpIconDir.idEntries)
//sw.Write("    " + gentry.nID + "\r\n");

                    groupIconDir.Add(grpIconDir);
                }
//sw.Close();
                break;
            }
            return(groupIconDir);
        }
Example #2
0
 public GRPICONDIR(Stream stream)
 {
     this = new GRPICONDIR();
     Read(stream);
 }
Example #3
0
        public List<GRPICONDIR> GetGroupIcons(Stream stream)
        {
            List<GRPICONDIR> groupIconDir = new List<GRPICONDIR>();
            for(int i=0; i<rscTypes.Length; i++)
            {
                if (rscTypes[i].ResourceType != ResourceType.RT_GROUP_ICON)
                    continue;
            //StreamWriter sw = new StreamWriter("c:\\borrar\\icons\\test2\\dump_load_groups.txt", false);
            //sw.Write("index\tID\toffset\tlength\r\n");

                for(int j=0; j<rscTypes[i].rtNameInfo.Length; j++)
                {
                    stream.Seek((1 << rscAlignShift) * rscTypes[i].rtNameInfo[j].rnOffset, SeekOrigin.Begin);
                    GRPICONDIR grpIconDir = new GRPICONDIR(stream);
            //sw.Write(j.ToString("000") + "\t" + rscTypes[i].rtNameInfo[j].ID + "\t" + rscTypes[i].rtNameInfo[j].rnOffset + "\t" + rscTypes[i].rtNameInfo[j].rnLength + "\t" + grpIconDir.idEntries.Length + "\r\n");

            //foreach(GRPICONDIRENTRY gentry in grpIconDir.idEntries)
            //sw.Write("    " + gentry.nID + "\r\n");

                    groupIconDir.Add(grpIconDir);
                }
            //sw.Close();
                break;
            }
            return groupIconDir;
        }
Example #4
0
 public GRPICONDIR(Stream stream)
 {
     this = new GRPICONDIR();
     this.Read(stream);
 }