如何使当前进程在系统进程列队中显示或隐藏(Win9X/Me)?

如何在运行VFP编译成的EXE文件时当按下 CTRL+ALT+DEL 后程序不出现在任务管理栏中?

---------------------------------------------------------------

*-------------------------------------

  • 程 序: 使当前进程在系统进程列队中
  • 显示 或 隐藏
  • (在 Ctrl+Alt+Del 中无显示)
  • 适用于: Win9X/Me
    *-------------------------------------
    Clea
    #Define RSP_SIMPLE_SERVICE 1
    #Define RSP_UNREGISTER_SERVICE 0
    Declare Integer GetCurrentProcessId IN kernel32
    Declare Integer RegisterServiceProcess IN kernel32 Integer dwProcessID, Integer dwType

lnProcessId = GetCurrentProcessId()
? "当前进程号: ", lnProcessId

? "隐藏当前进程: ", RegisterServiceProcess(lnProcessId, RSP_SIMPLE_SERVICE)
? "显示当前进程: ", RegisterServiceProcess(lnProcessId, RSP_UNREGISTER_SERVICE)

Clea dlls
Return

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus