Lnk.ShellItems.ShellBag0X00.ProcessZipFileContents C# (CSharp) Méthode

ProcessZipFileContents() private méthode

private ProcessZipFileContents ( byte rawBytes ) : void
rawBytes byte
Résultat void
        private void ProcessZipFileContents(byte[] rawBytes)
        {
            FriendlyName = "Variable: Zip file contents";

            if (rawBytes[0x28] == 0x2f || (rawBytes[0x24] == 0x4e && rawBytes[0x26] == 0x2f && rawBytes[0x28] == 0x41) ||
                rawBytes[0x1c] == 0x2f || (rawBytes[0x18] == 0x4e && rawBytes[0x1a] == 0x2f && rawBytes[0x1c] == 0x41))
            {
                //we have a good date

                var zip = new ShellBagZipContents(rawBytes);
                FriendlyName = zip.FriendlyName;
                LastAccessTime = zip.LastAccessTime;

                Value = zip.Value;
            }
            else
            {
                Value = "!!! Unable to determine Value !!!";
            }
        }