API函数
现在手上没有源码,如果可以,请留下email,我明天从公司发给你

解决方案 »

  1.   

    一个程序能发出n歌剧并
    IDPrivate Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, lpdwProcessId As Long) As LongDim ThreadID As Long, ProcessID As Long
    ThreadID = GetWindowThreadProcessId(Me.hWnd, )ProcessID就是你要的
      

  2.   

    ThreadID = GetWindowThreadProcessId(Me.hWnd,ProcessID )
    ProcessID就是你要的
      

  3.   

    大家不要误会!我是说要获得不是本程序的进程ID?是系统下在运行的ID!
      

  4.   

    用enumWindows 回调得到hWnd,再调用GetWindowThreadProcessID