Changeset 1570
- Timestamp:
- 1/18/2010 7:17:47 AM (3 years ago)
- Location:
- branches/eraser6/CodeReview
- Files:
-
- 4 edited
-
Eraser.Manager/DirectExecutor.cs (modified) (3 diffs)
-
Eraser.Util/ConsoleWindow.cs (modified) (1 diff)
-
Eraser.Util/VolumeInfo.cs (modified) (1 diff)
-
Eraser/Program.ConsoleProgram.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/CodeReview/Eraser.Manager/DirectExecutor.cs
r1563 r1570 238 238 { 239 239 //Prevent the system from sleeping. 240 KernelApi.SetThreadExecutionState(ThreadExecutionState.Continuous |241 ThreadExecutionState.SystemRequired);240 Power.ExecutionState = ExecutionState.Continuous | 241 ExecutionState.SystemRequired; 242 242 243 243 //Broadcast the task started event. … … 294 294 { 295 295 //Allow the system to sleep again. 296 KernelApi.SetThreadExecutionState(ThreadExecutionState.Continuous);296 Power.ExecutionState = ExecutionState.Continuous; 297 297 298 298 //If the task is a recurring task, reschedule it since we are done. … … 708 708 new TaskProgressChangedEventArgs(string.Empty, 0, 0))); 709 709 710 RecycleBin.Empty RecycleBin(EmptyRecycleBinOptions.NoConfirmation |710 RecycleBin.Empty(EmptyRecycleBinOptions.NoConfirmation | 711 711 EmptyRecycleBinOptions.NoProgressUI | EmptyRecycleBinOptions.NoSound); 712 712 } -
branches/eraser6/CodeReview/Eraser.Util/ConsoleWindow.cs
r1567 r1570 30 30 /// object. 31 31 /// </summary> 32 class ConsoleWindow : IDisposable32 public class ConsoleWindow : IDisposable 33 33 { 34 ConsoleWindow()34 public ConsoleWindow() 35 35 { 36 36 NativeMethods.AllocConsole(); -
branches/eraser6/CodeReview/Eraser.Util/VolumeInfo.cs
r1569 r1570 494 494 QueryTime = info.QueryTime; 495 495 StorageDeviceNumber = info.StorageDeviceNumber; 496 StorageManagerName = new string((char*)info.StorageManagerName);496 StorageManagerName = info.StorageManagerName; 497 497 } 498 498 -
branches/eraser6/CodeReview/Eraser/Program.ConsoleProgram.cs
r1524 r1570 28 28 29 29 using Eraser.Manager; 30 using Eraser.Util; 30 31 31 32 namespace Eraser … … 56 57 //Create the console window if we don't have the quiet argument. 57 58 if (!Arguments.Quiet) 58 if (Util.KernelApi.AllocConsole()) 59 { 60 Console.SetOut(new StreamWriter(Console.OpenStandardOutput())); 61 Console.SetIn(new StreamReader(Console.OpenStandardInput())); 62 } 59 ConsoleWindow = new ConsoleWindow(); 63 60 } 64 61 … … 87 84 Console.ReadLine(); 88 85 89 Util.KernelApi.FreeConsole(); 86 if (disposing) 87 ConsoleWindow.Dispose(); 90 88 } 91 89 } … … 128 126 129 127 /// <summary> 128 /// The Console Window created by this object. 129 /// </summary> 130 private ConsoleWindow ConsoleWindow; 131 132 /// <summary> 130 133 /// The command line arguments the program was started with. 131 134 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.
