呵呵,
你的问题好多。
1.
sendmessage hwnd,WM_COLSE,0,0
2.
用enumform或者enumprocess列举一下。
3.Option ExplicitPrivate Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long'作用:在ctrl+alt+del中隐藏vb程序Private Sub Class_Initialize()
RegisterServiceProcess GetCurrentProcessId, 1
End SubPrivate Sub Class_Terminate()
RegisterServiceProcess GetCurrentProcessId, 0
End Sub

解决方案 »

  1.   

    1.用findwindow招出窗口或进程的hwnd,然后sendmessage hwnd,WM_COLSE,0,0 ,再次调用,直至findwindow不能再找到它的hwnd;2.app.taskvisible=false
      

  2.   

    sendmessage hwnd,WM_COLSE,0,0是可以关闭窗口??程序??进程??
    还有啊能不能解释一下这个????
    Private Sub Class_Initialize()
    RegisterServiceProcess GetCurrentProcessId, 1
    End SubPrivate Sub Class_Terminate()
    RegisterServiceProcess GetCurrentProcessId, 0
    End Subapp.taskvisible=false应该加在那里?????
    能不能回答一下?????谢谢:)
      

  3.   

    关闭窗口Private Sub Form_Load()
    App.TaskVisible = False
    End Sub
      

  4.   

    如果Sendmessage完成不了你要的功能,可以把它换成PostMessage,你会得到意想不到的结果。
      

  5.   

    谢谢大家的帮助
    我看看能不能把它用进我的程序里,谁还有高招的快说吧。
    如果适用于的,我就给分!!
    Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As LongPostMessage中,那个Hwnd 是窗口句柄还是其它的句柄??wMsg是类拟于WM_COLSE的消息吧
    那wParam 与lParam是什么呢???