Click to See Complete Forum and Search --> : Setting priorities


Robert Bielik
April 9th, 1999, 08:24 AM
How does one set process/thread priorities in VB??

/Rob

Lothar Haensler
April 9th, 1999, 08:28 AM
use the following Win32 API functions:
SetPriorityClass for setting the priority class for the process.
SetThreadPriority for setting the thread priority.

Use GetCurrentProcess and GetCurrentThread to get the handles of the currently executing process or thread.