获取当前线程,线程id,设置优先级等函数接口

WINBASEAPI
HANDLE
WINAPI
GetCurrentThread(
    VOID
    );

 

 

WINBASEAPI
DWORD
WINAPI
GetCurrentThreadId(
    VOID
    );

 

 

WINBASEAPI
DWORD
WINAPI
GetProcessIdOfThread(
    HANDLE Thread
    );

 

 

WINBASEAPI
DWORD
WINAPI
GetThreadId(
    HANDLE Thread
    );

 

WINBASEAPI
DWORD
WINAPI
GetProcessId(
    HANDLE Process
    );

 

WINBASEAPI
DWORD
WINAPI
GetCurrentProcessorNumber(
    VOID
    );

 

WINBASEAPI
DWORD_PTR
WINAPI
SetThreadAffinityMask(
    IN HANDLE hThread,
    IN DWORD_PTR dwThreadAffinityMask
    );

 

#if(_WIN32_WINNT >= 0x0400)
WINBASEAPI
DWORD
WINAPI
SetThreadIdealProcessor(
    IN HANDLE hThread,
    IN DWORD dwIdealProcessor
    );


#endif /* _WIN32_WINNT >= 0x0400 */

WINBASEAPI
BOOL
WINAPI
SetProcessPriorityBoost(
    IN HANDLE hProcess,
    IN BOOL bDisablePriorityBoost
    );

 

WINBASEAPI
BOOL
WINAPI
GetProcessPriorityBoost(
    IN HANDLE hProcess,
    OUT PBOOL pDisablePriorityBoost
    );

 

WINBASEAPI
BOOL
WINAPI
RequestWakeupLatency(
    IN LATENCY_TIME latency
    );

 

WINBASEAPI
BOOL
WINAPI
IsSystemResumeAutomatic(
    VOID
    );

 

WINBASEAPI
HANDLE
WINAPI
OpenThread(
    DWORD dwDesiredAccess,
    BOOL bInheritHandle,
    DWORD dwThreadId
    );

 

WINBASEAPI
BOOL
WINAPI
SetThreadPriority(
    IN HANDLE hThread,
    IN int nPriority
    );

 

WINBASEAPI
BOOL
WINAPI
SetThreadPriorityBoost(
    IN HANDLE hThread,
    IN BOOL bDisablePriorityBoost
    );

 

WINBASEAPI
BOOL
WINAPI
GetThreadPriorityBoost(
    IN HANDLE hThread,
    OUT PBOOL pDisablePriorityBoost
    );

 

WINBASEAPI
int
WINAPI
GetThreadPriority(
    IN HANDLE hThread
    );

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值