Microsoft KB Archive/243846

{|
 * width="100%"|

BUG: Processes with Real Time Priority Class Can't Be Created with the Win32_Process Class

 * }

Q243846

-

The information in this article applies to:


 * Windows Management Instrumentation, versions 1.0, 1.1, 1.5

-

SYMPTOMS
If an application attempts to specify a value of 256 for REALTIME_PRIORITY_CLASS, the process is created with HIGH_PRIORITY_CLASS.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
Windows Management Instrumentation (WMI) defines the Win32_Process class to represent processes running on a computer. The Win32_Process class contains a Create method that is used to create new processes on the system. The signature of this method is as follows:

uint32 Create( [in] string CommandLine,         [in] string CurrentDirectory,          [in] object:Win32_ProcessStartup ProcessStartupInformation,          [out] uint32 ProcessId ); The third parameter is an instance of the Win32_ProcessStartup class that contains properties that specify the characteristics of the process to be created. An application sets the value of the "PriorityClass" property to determine the scheduling priority of the threads of the process.