IAgentCommands::GetCount

[从 Windows 7 开始,Microsoft 代理已弃用,可能在后续版本的 Windows 中不可用。]

HRESULT GetCount(
   long * pdwCount  // address of count of commands
);                    

检索 Commands 集合中的 Command 对象数。

  • 返回指示操作成功的S_OK。

pdwCount

接收 Commands 集合中 Commands 数的变量的地址。

pdwCount 仅包括你在 Commands 集合中定义的 命令 数。 不包括服务器或其他客户端条目。