Example #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;
        }
Example #2
0
File: LNK.cs Project: MetLob/tinke
        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;
        }