Пример #1
0
        private void Read(string fileIn)
        {
            BinaryReader br = new BinaryReader(File.OpenRead(fileIn));

            lnk = new SHELL_LINK();

            lnk.header = Read_Header(br);

            if (lnk.header.linkFlags.hasLinkTargetIDList)
            {
                lnk.idlist = Read_LinkIDList(br);
            }
            if (lnk.header.linkFlags.hasLinkInfo)
            {
                lnk.info = Read_LinkInfo(br);
            }

            lnk.sdata = Read_StringData(br);
            lnk.extra = Read_Extra(br);

            br.Close();
            br = null;
        }
Пример #2
0
        private void Read(string fileIn)
        {
            BinaryReader br = new BinaryReader(File.OpenRead(fileIn));
            lnk = new SHELL_LINK();

            lnk.header = Read_Header(br);

            if (lnk.header.linkFlags.hasLinkTargetIDList)
                lnk.idlist = Read_LinkIDList(br);
            if (lnk.header.linkFlags.hasLinkInfo)
                lnk.info = Read_LinkInfo(br);

            lnk.sdata = Read_StringData(br);
            lnk.extra = Read_Extra(br);

            br.Close();
            br = null;
        }