<Runtime.InteropServices.DllImport( _
"kernel32.dll", _
CharSet:=Runtime.InteropServices.CharSet.Auto, _
CallingConvention:=Runtime.InteropServices.CallingConvention.StdCall _
)> _
Public Shared Function SetPriorityClass( _
ByVal hProcess As IntPtr, _
ByVal dwPriorityClass As IntPtr _
) As Boolean
End Function
[DllImport("kernel32.dll")]
static extern bool SetPriorityClass(IntPtr hProcess, uint dwPriorityClass);
None.
VB no warnings with option strict = on.
Please add some!
SetPriorityClass(mhHwnd, CType(20, System.IntPtr)) '20 = high !!
System.Diagnostics.ProcessPriorityClass.High