When I run your example named below using VFP 9 SP2 the SetPriorityClass function return a value of zero. GetLastError then returns a value of 5 (Access denied). The priority of my exe remains normal. I was expecting it to be High.
Reading and setting the priority class values for the current process and thread
Any help would be appreciated!
A.M. | 2008-02-07 21:55:43
That means either the user account does not have rights to change the priority or the handle to the process does not have the PROCESS_SET_INFORMATION access right.