Try SetPriorityClas s it is not entirely to me clear how you obtained the Process ID as opposed to the handle, however if you can not obtain the Process handle directly to call SetPriorityClas s then use OpenProcess to get a handle to the process given its id.
Comment