| 子程序名 | 返回值类型 | 公开 | 备 注 | ||||
| 进程_取线程数 | 整数型 | 通过进程ID或进程名获取指定进程线程数。 | |||||
| 参数名 | 类 型 | 参考 | 可空 | 数组 | 备 注 | ||
| 进程ID或进程名 | 文本型 | ||||||
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | ||
| hProcessSnap | 整数型 | |||||
| bool | 整数型 | |||||
| pe32 | PROCESSENTRY32 | |||||
| cntThreads | 整数型 | |||||
pe32.dwSize = 296
bool = Process32Next (hProcessSnap, pe32)
判断循环首 (bool = 1)
判断 (到整数 (进程ID或进程名) ≠ 0)

如果真 (到整数 (进程ID或进程名) = pe32.th32ProcessID)

cntThreads = pe32.cntThreads

跳出循环 ()



判断 (到小写 (进程ID或进程名) = 到小写 (到文本 (pe32.szExeFile)))
cntThreads = pe32.cntThreads
跳出循环 ()



bool = Process32Next (hProcessSnap, pe32)
判断循环尾 ()CloseHandle (hProcessSnap)
返回 (cntThreads)
词条作者信息 使用例程
