Beispiel #1
0
        public DSProcess(Process candidate)
        {
            process = candidate;
            ID      = process.Id;
            Version = "Unknown";
            Valid   = false;

            dsInterface = DSInterface.Attach(process);
            if (dsInterface != null)
            {
                uint versionValue = dsInterface.ReadUInt32(DSOffsets.CheckVersion);
                if (DSOffsets.Versions.ContainsKey(versionValue))
                {
                    Version = DSOffsets.Versions[versionValue].Name;
                    offsets = DSOffsets.Versions[versionValue].Offsets;
                    Valid   = offsets != null;
                }
            }
        }
 public DSVersion(string name, DSOffsets offsets)
 {
     Name    = name;
     Offsets = offsets;
 }