📄 modpriority.bas
字号:
Attribute VB_Name = "ModPriority"
Option Explicit
Public Declare Function GetCurrentProcess Lib "kernel32" _
() As Long
Public Declare Function SetPriorityClass Lib "kernel32" _
(ByVal hProcess As Long, ByVal dwPriorityClass As Long) As Long
Const REALTIME_PRIORITY_CLASS = &H100
Sub SetPriority()
Dim Ret As Long
Ret = SetPriorityClass(GetCurrentProcess, REALTIME_PRIORITY_CLASS)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -