I'm writing my own task manager as I often change process priorities but have gotten myself into trouble on several occasions. I have discovered by keeping csrss.exe and explorer at the equal highest priority, I can keep the computer running ok, or at least recover. So that's what my program does - keeps itself and those programs with high enough priority. It works great when run from visual studio, but as soon as i run it directly (whether in release or debug mode) I cannot access the process priority of csrss.exe. Is this a security issue
The error message begins like this
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box
************** Exception Text *************
System.ComponentModel.Win32Exception: Access is denie
at System.Diagnostics.ProcessManager.OpenProcess(Int3 2 processId, Int32 access, Boolean throwIfExited
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited
at System.Diagnostics.Process.GetProcessHandle(Int32 access
at System.Diagnostics.Process.set_PriorityClass(Proce ssPriorityClass value
at MyTaskManager.MyTaskManager.Me_Load(Object sender, EventArgs e) in C:\Documents and Settings\Richard Hart\My Documents\Visual Studio Projects\MyTaskManager\Form1.vb:line 11 2 4018
The caller needs "SeDebugPrivilege".
Willy.
"wtfhits" <an*******@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com... I'm writing my own task manager as I often change process priorities but have gotten myself into trouble on several occasions. I have discovered by keeping csrss.exe and explorer at the equal highest priority, I can keep the computer running ok, or at least recover. So that's what my program does - keeps itself and those programs with high enough priority. It works great when run from visual studio, but as soon as i run it directly (whether in release or debug mode) I cannot access the process priority of csrss.exe. Is this a security issue?
The error message begins like this:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.ProcessManager.OpenProcess(Int3 2 processId, Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetProcessHandle(Int32 access) at System.Diagnostics.Process.set_PriorityClass(Proce ssPriorityClass value) at MyTaskManager.MyTaskManager.Me_Load(Object sender, EventArgs e) in C:\Documents and Settings\Richard Hart\My Documents\Visual Studio Projects\MyTaskManager\Form1.vb:line 113
The caller needs "SeDebugPrivilege".
Willy.
"wtfhits" <an*******@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com... I'm writing my own task manager as I often change process priorities but have gotten myself into trouble on several occasions. I have discovered by keeping csrss.exe and explorer at the equal highest priority, I can keep the computer running ok, or at least recover. So that's what my program does - keeps itself and those programs with high enough priority. It works great when run from visual studio, but as soon as i run it directly (whether in release or debug mode) I cannot access the process priority of csrss.exe. Is this a security issue?
The error message begins like this:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.ProcessManager.OpenProcess(Int3 2 processId, Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetProcessHandle(Int32 access) at System.Diagnostics.Process.set_PriorityClass(Proce ssPriorityClass value) at MyTaskManager.MyTaskManager.Me_Load(Object sender, EventArgs e) in C:\Documents and Settings\Richard Hart\My Documents\Visual Studio Projects\MyTaskManager\Form1.vb:line 113 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: wtfhits |
last post by:
I'm writing my own task manager as I often change process priorities but have gotten myself into trouble on several occasions. I have discovered by keeping csrss.exe and explorer at the equal highest...
|
by: Charles Law |
last post by:
Hi guys
I have a time critical process, running on a worker thread. By "time
critical", I mean that certain parts of the process must be completed in a
specific time frame. The time when the...
|
by: JC |
last post by:
I'm trying to create a GUI wrapper for dumpbin, and so I'm using the Process
class to run the command-line application. The problem is that if I use
Readline() to get the output from the...
|
by: mg |
last post by:
The following .exe and its parameters work correctly from the command prompt
(it prints x.pdf without prompting the user.
acrord32.exe /t "c:\exportfiles\x.pdf" "HP LaserJet 3300 Series PCL 6"...
|
by: tomko |
last post by:
Hi,
When I start a console program using the Process calss inside the
Visual Studio IDE (debug) all the output is redirected to my stream
reader. But when I run the same program from outside the...
|
by: tomko |
last post by:
Hi,
My program uses the Process class to start a bat file that starts an
exe. When I run my program inside Visual Studio (debug) the bat and exe
run in the background (are not visible) and all...
|
by: ToadLurker |
last post by:
Usually, to debug my .NET dll, I typically just run my web application
until the DLL in question is invoked - at which point I can just
attach to it via Visual Studio .Net, and debug it. Two weeks...
|
by: GaryDean |
last post by:
I see some references on debugging by attaching to a process. There are
MSDN articles that show how to attach to a process for debugging. However,
I can find no info on how exactly to get the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |