RtkSetProxyThreadPriority

RtkSetProxyThreadPriority sets the priority value of the proxy thread associated with the driver-created kernel thread.

Syntax

Copy
NTSTATUS RtkSetProxyThreadPriority(
    [in]    RTSSINST RtssInst,
    [in]    HANDLE hThread,
    [in]    int RtssPriority
);

Parameters

[in] RtssInst

An RTSSINST value. Pass a valid RTSSINST value or the call will fail with STATUS_INVALID_PARAMETER.

[in] hThread

The handle which identifies the kernel thread as returned by a preceding call to the Windows kernel driver supports routine PsGetCurrentThreadId.

[in] RtssPriority

A priority level from 0 to 127, where 127 identifies the highest priority proxy thread.

Return Value

If the function succeeds, it returns STATUS_SUCCESS. If the function fails, it returns one of the following NTSTATUS error codes:

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 Header Library

IRQL

wRTOS 1.0 SDK

RtkApi.h

RtkApi_W64.lib

PASSIVE_LEVEL

See Also: