VB获取相同的进程名的ID

2025-01-04 10:17:12
推荐回答(1个)
回答1:

3.58 icePub_getProcessInfo

l 函数原型:
int WINAPI icePub_getProcessInfo(char *strInfoList ,int maxLen)
输入:maxLen strInfoList最大长度
输出:strInfoList 进程基本信息,name|pid|path,一行一条信息

VB sample 代码:
Private Declare Function icePub_getProcessInfo Lib "icePubDll.dll" (ByVal strInfoList As String, ByVal maxLen As Integer) As Integer

Dim a2 As Integer
DIm buff As String

buff=space(1024*30+1)
a2=icePub_getProcessInfo(buff,1024*30)

MsgBox buff

http://dl.icese.net/dev.php?f=icePubDll.rar 下载