'在任务管理器的应用程序栏中隐身
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As LongByVal wCmd As LongAs Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As LongByVal nCmdShow As LongAs Long

Private Const SW_HIDE = 0
Private Const GW_OWNER = 4
Private Const WM_CLOSE = &H10

Private Sub Form1_Load()
    
'以下代码使程序隐身
    '在任务管理器的“应用程序”栏隐藏
     Dim rc As Long
    
Dim ownerhwnd As Long
    
Me.Visible = False
    ownerhwnd 
= GetWindow(Me.hwnd, GW_OWNER)
    rc 
= ShowWindow(ownerhwnd, SW_HIDE)
end sub

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案