form_load 里写上 me.hide
注册表里
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run下面键个字符串值,写你程序的全PATH和NAME
注册表里
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run下面键个字符串值,写你程序的全PATH和NAME
第二..在form.load中調過一個API..RegisterServiceProcess.此API可以在Win98下隱藏進程..但在win2000中做不到..
以下為申明.
Public Declare Function RegisterServiceProcess Lib "KERNEL32.DLL" (ByVal processid As String, ByVal dwtype As Long) As Long
調用方法..
RegisterServiceProcess vbNullString, 1 'Hide process
是:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices