Esempio n. 1
0
        public static ExeSignature GetExeSignature(Stream stream)
        {
            var crc = CalculateSignature(stream);

            if (CRCs.ContainsKey(crc))
            {
                return((ExeSignature)crc);
            }
            else
            {
                return(ExeSignature.Unknown);
            }
        }
Esempio n. 2
0
        public static string GetSignature(Stream stream)
        {
            var crc = CalculateSignature(stream);

            if (CRCs.ContainsKey(crc))
            {
                return(CRCs[crc] + " (0x" + crc.ToString("X5") + ")");
            }
            else
            {
                return("Unknown (0x" + crc.ToString("X5") + ")");
            }
        }