Example #1
0
        private void DumpModule(IntPtr moduleHandle, string filePath)
        {
            bool result;

            result = DumperFactory.GetDumper(_processId, _dumperCore.Value).DumpModule(moduleHandle, filePath);
            MessageBoxStub.Show(result ? $"成功!文件被转储在:{Environment.NewLine}{filePath}" : "失败!", result ? MessageBoxIcon.Information : MessageBoxIcon.Error);
        }
Example #2
0
        private void DumpModule(IntPtr moduleHandle, string filePath)
        {
            bool result;

            result = DumperFactory.GetDumper(_processId, _dumperCore.Value).DumpModule(moduleHandle, filePath);
            MessageBoxStub.Show(result ? $"{_resources.GetString("StrDumpModuleSuccessfully")}{Environment.NewLine}{filePath}" : _resources.GetString("StrFailToDumpModule"), result ? MessageBoxIcon.Information : MessageBoxIcon.Error);
        }
Example #3
0
        private void DumpModule(IntPtr moduleHandle, ImageLayout imageLayout, string filePath)
        {
            using var dumper = DumperFactory.GetDumper(_process.Id, _dumperType.Value);
            bool result = dumper.DumpModule(moduleHandle, imageLayout, filePath);

            MessageBoxStub.Show(result ? $"Dump module successfully. Image was saved in:{Environment.NewLine}{filePath}" : "Fail to dump module.", result ? MessageBoxIcon.Information : MessageBoxIcon.Error);
        }
Example #4
0
        private void DumpModule(IntPtr moduleHandle, ImageLayout imageLayout, string filePath)
        {
            bool result;

            using (IDumper dumper = DumperFactory.GetDumper(_process.Id, _dumperType.Value))
                result = dumper.DumpModule(moduleHandle, imageLayout, filePath);
            MessageBoxStub.Show(result ? $"{_resources.GetString("StrDumpModuleSuccessfully")}{Environment.NewLine}{filePath}" : _resources.GetString("StrFailToDumpModule"), result ? MessageBoxIcon.Information : MessageBoxIcon.Error);
        }
Example #5
0
 private void DumpProcess(uint processId, string directoryPath)
 {
     if (!Directory.Exists(directoryPath))
     {
         Directory.CreateDirectory(directoryPath);
     }
     using (var dumper = DumperFactory.GetDumper(processId, _dumperType))
         MessageBoxStub.Show($"{dumper.DumpProcess(directoryPath)} {_resources.GetString("StrDumpFilesSuccess")}{Environment.NewLine}{directoryPath}", MessageBoxIcon.Information);
 }
Example #6
0
 private void DumpProcess(uint processId, string directoryPath)
 {
     using (IDumper dumper = DumperFactory.GetDumper(processId, _dumperType.Value))
         MessageBoxStub.Show($"{dumper.DumpProcess(directoryPath).ToString()} {_resources.GetString("StrDumpFilesSuccess")}{Environment.NewLine}{directoryPath}", MessageBoxIcon.Information);
 }
Example #7
0
 private void DumpProcess(uint processId, string directoryPath) => MessageBoxStub.Show($"{DumperFactory.GetDumper(processId, _dumperCore.Value).DumpProcess(directoryPath).ToString()} 个文件被转储在:{Environment.NewLine}{directoryPath}", MessageBoxIcon.Information);