Ejemplo n.º 1
0
        /// <summary>
        /// Creates <see cref="ScanSettings"/> from the given <see cref="ScanValueType"/>.
        /// </summary>
        /// <param name="valueType">The <see cref="ScanValueType"/> to use.</param>
        /// <returns>The created <see cref="ScanSettings"/>.</returns>
        private static ScanSettings CreateScanSettings(ScanValueType valueType)
        {
            Contract.Ensures(Contract.Result <ScanSettings>() != null);

            var settings = ScanSettings.Default;

            settings.ValueType = valueType;
            return(settings);
        }
Ejemplo n.º 2
0
        public InputCorrelatedScanner(RemoteProcess process, KeyboardInput input, IEnumerable <KeyboardHotkey> hotkeys, ScanValueType valueType)
            : base(process, CreateScanSettings(valueType))
        {
            Contract.Requires(process != null);
            Contract.Requires(input != null);
            Contract.Requires(hotkeys != null);
            Contract.Ensures(this.input != null);

            this.process = process;
            this.input   = input;
            this.hotkeys = hotkeys.ToList();
        }
Ejemplo n.º 3
0
 public ScanResultStore(ScanValueType valueType, string storePath)
 {
     this.valueType = valueType;
     this.storePath = Path.Combine(storePath, $"ReClass.NET_MemoryScanner_{Guid.NewGuid()}.tmp");
 }