flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > NtSetInformationProcess Critical

Author
Thread Post new topic Reply to topic
SC0U7



Joined: 20 Feb 2018
Posts: 13
Hello i need help with setting up itself asm program as Critical how i can use
with NtSetInformationProcess ?

Thanks for help Cool
Post 20 Mar 2018, 08:38
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16128
Location: Hyperborea
What do you mean by "Critical"? Do you mean the process priority?
Post 20 Mar 2018, 08:54
View user's profile Send private message Visit poster's website Reply with quote
SC0U7



Joined: 20 Feb 2018
Posts: 13
Yes process priority Highest
Post 20 Mar 2018, 08:56
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16128
Location: Hyperborea
There are normal APIs for setting the priority. Try SetPriorityClass and use REALTIME_PRIORITY_CLASS.

The NT* APIs are not officially documented. It is not recommend to use them. AFICT you don't actually gain anything by using them anyway.
Post 20 Mar 2018, 09:04
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 451
Location: Belarus
I wonder what is the valid usecase for increased priority of a process? Except making users angry.
Post 20 Mar 2018, 09:48
View user's profile Send private message Visit poster's website Reply with quote
SC0U7



Joined: 20 Feb 2018
Posts: 13
Usecase is education in processes and WIN APIS in my another school exam. Protecting thanks for reply and help
Post 20 Mar 2018, 09:53
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.