Advanced COM Priority property
Priority read/write property

Sets/gets the current priority of the apartment's internal thread.

Syntax:

object.Priority = number
variable = object.Priority

The priority is a number between -15 and +15 where 0 is the "same as the process" and typically -1,-2 and 1,2 are used and sometimes -15 to indicate "idle" level of priority and +15 to indicate real-time priority (use real time with care).

Remarks:

Changing the priority is needed mostly in case of using the COMApartment together with a COMThread object. Then it will affect the priority of the executed calls over the objects created in the apartment.

Applies to: COMApartment object

newObjects Copyright 2001-2006 newObjects [ ]