RtkSetProxyThreadPriority
RtkSetProxyThreadPriority sets the priority value of the proxy thread associated with the driver-created kernel thread.
Syntax
NTSTATUS RtkSetProxyThreadPriority( RTSSINST RtssInst, HANDLE hThread, int RtssPriority );
Parameters
RtssInst
An RTSSINST value. Must pass in a valid RTSSINST value or the call will fail with STATUS_INVALID_PARAMETER.
hThread
The handle which identifies the kernel thread as returned by a preceding call to the Windows kernel driver support routine PsGetCurrentThreadId().
RtssPriority
A priority level from 0 to 127, where 127 identifies the highest priority proxy thread.
Return Value
RtkSetProxyThreadPriorty returns STATUS_SUCCESS on success or on failure. One of the following NTSTATUS error codes is possible:
- STATUS_UNSUCCESSFUL
- STATUS_INVALID_HANDLE
Remarks
For every driver-created kernel thread making an RtkAPI call, a corresponding proxy thread is created. Calling RtkSetProxyThreadPriorty changes the priority of the proxy thread associated with the hThread handle value. This API does not change priority of the driver-created kernel thread.
Requirements
Minimum Supported Version | RTX64 2014 |
Header | RtkApi.h |
Library | RtkApi.lib |
IRQL | PASSIVE_LEVEL |
See Also: