I want to increase the I/O priority of a process. Answers for both .NET and Windows Vista would be nice. processexplorer is ok as well.
.net – How to/O priority of a process be increased
file-ionetwindows-vista
Related Topic
- C# – How to create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office
- C# – What are the correct version numbers for C#
- C# – Path.Combine for URLs
- .net – Difference between decimal, float and double in .NET
- Bash – How to tell if a regular file does not exist in Bash
- Git – How to find and restore a deleted file in a Git repository
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- Python – How to delete a file or folder in Python
Best Answer
The relevant information seems to be a bit scattered compared to the usual MS documentation. There is this white paper that discusses I/O Prioritization in windows. This doc seems to have beta flags all over it but I guess it's probably mostly pretty accurate.
Two important things to note:
The useful APIs for client applications are SetFileInformationByHandle:
SetPriorityClass:
SetThreadPriority which is similar:
SetFileBandwithReservation:
For .Net do the usual stuff with P/Invoke.