Imagine that you have a Windows process A running with priority AboveNormal that starts another process B without specify the priority. Is the priority of the process B inherited from the priority of the process A? So, what will be the priority on the process B? AboveNormal, Normal, or another?
Imagine that you have a Windows process A running with priority AboveNormal that starts
Share
If not specified, the priority class is inherited, in some cases.
It occurs when the calling process is in the IDLE_PRIORITY_CLASS or BELOW_NORMAL_PRIORITY class. Otherwise, it gets NORMAL_PRIORITY_CLASS unless specified during the CreateProcess call.
MSDN says on dwCreationFlags of CreateProcess:
The answer is therefore NORMAL priority class. Basically anything that is above normal doesn’t get passed to the child.