VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Set priority of a thread

Jack van Niekerk  (2 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Thu 25th January 2001   Mon 8th February 2021

Set priority of a thread

API Declarations


Declare Function SetThreadPriority Lib "kernel32" (ByVal hThread As Long, ByVal nPriority As Long) As Long
Declare Function GetThreadPriority Lib "kernel32" (ByVal hThread As Long) As Long
Declare Function GetCurrentThread Lib "kernel32" () As Long

Public Enum lgThreadPrioritySetting
lgNormal = 0
lgAboveNormal = 1
lgHighest = 2
lgTimeCritical = 15
lgBelowNormal = -1
lgLowest = -2
lgIdle = -15
End Enum


Rate Set priority of a thread (1(1 Vote))
Set priority of a thread.bas

Set priority of a thread Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters