Setting Thread and Class priorities in a VB app

Simple standard module for setting the priority of the your app's process. Useful for screen savers so that they don't tie up the processor when another app is running an unattended task.

screenshot -

Simply add the standard module below and call something like, ThreadPriority = THREAD_PRIORITY_BELOW_NORMAL or ProcessPriority = HIGH_PRIORITY_CLASS.

Standard Module Code