RtkGetProxyThreadPriority

RtkGetProxyThreadPriority gets the priority value of the proxy thread associated with the driver-created kernel thread.

Syntax

Copy
NTSTATUS RtkGetProxyThreadPriority(
    [in]    RTSSINST RtssInst,
    [in]    HANDLE hThread,
    [out]   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 that identifies the kernel thread as returned by a preceding call to the Windows kernel driver supports routine PsGetCurrentThreadId.

[out] 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 RTKAPI call, a corresponding proxy thread shall be created. Calling RtkGetProxyThreadPriorty retrieves the priority of the proxy thread associated with the hThread handle value. This API does not retrieve the 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: