hThreadCre =
系统_WMI监视进程W (0, &ProcessNotifyEventProc
) hThreadDel =
系统_WMI监视进程W (1, &ProcessNotifyEventProc
) CloseHandle (hThreadCre
)CloseHandle (hThreadDel
)|
ProcessNotifyEventProc | 整数型 | |
|
iInstance | 整数型 | | | |
pszName | 整数型 | | | | dwProcessID | 整数型 | | | | pszCommandLine | 整数型 | | | | pszExecutablePath | 整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 |
szName | 字节集 | | |
szCmdLine | 字节集 | | |
szPath | 字节集 | | |
szName =
指针_到字节集W (pszName
)szCmdLine =
指针_到字节集W (pszCommandLine
)szPath =
指针_到字节集W (pszExecutablePath
)调试输出 (多项选择 (iInstance + 1,
“进程开启”,
“进程关闭”),
编码_Unicode到Ansi (szName
), dwProcessID,
编码_Unicode到Ansi (szCmdLine
),
编码_Unicode到Ansi (szPath
))
返回 (0
)