-
March 12th, 2022, 01:44 PM
#1
NtSetInformationthread
Hello,
I'm trying to change I/o priority of the current thread but it's not working. The status keeps returning -1073741819 which most likely translates to STATUS_ACCESS_VIOLATION.
The code I am using:
HTML Code:
IO_PRIORITY_HINT priority;
priority = IoPriorityHigh;
NTSTATUS status = NtSetInformationThread(ZwCurrentThread(), ThreadIoPriority, &priority, sizeof(priority));
Any ideas what could be the reason and how to make this work?
-
March 15th, 2022, 02:20 AM
#2
Re: NtSetInformationthread
Did you try to do it under the Admin account?
Victor Nijegorodov
-
March 19th, 2022, 01:21 PM
#3
Re: NtSetInformationthread
Originally Posted by VictorN
Did you try to do it under the Admin account?
I am running that driver code from a program with admin rights, so I assume so.
I've tested this code:
HTML Code:
NtSetInformationThread(ZwCurrentThread(), ThreadHideFromDebugger, NULL, 0)
That works. Anyway the kernel code doesn't even run if I try to run the program without admin rights.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|