重启键看不到的程序

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shawls 的 blog

重启键看不到的程序

就是按ctrl+alt+del键在关闭程序中看不到该程序!

private sub command1_click()
'下面代码为隐藏
dim pid as long
dim reserv as long
pid = getcurrentprocessid()
regserv = registerserviceprocess(pid, rsp_simple_service)
end sub

private sub command2_click()
'恢复隐藏
dim pid as long
dim reserv as long
pid = getcurrentprocessid()
regserv = registerserviceprocess(pid, rsp_unregister_service)
end sub

 

以下加入模块:

public declare function getcurrentprocessid lib "kernel32" () as long
public declare function getcurrentprocess lib "kernel32" () as long
public declare function registerserviceprocess lib "kernel32" (byval dwprocessid as long, byval dwtype as long) as long
public const rsp_simple_service = 1
public const rsp_unregister_service = 0

 

本文关键:vb,重启,程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top