IAgentCommands::GetCount

[從 Windows 7 開始,Microsoft Agent 已被取代,而且在後續版本的 Windows 中可能無法使用。]

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

擷取 Commands 集合中的 Command 物件數目。

  • 傳回S_OK,表示作業成功。

pdwCount

接收Commands集合中命令數目的變數位址。

pdwCount 只包含您在 Commands 集合中定義的 Command 數目 。 不包含伺服器或其他用戶端專案。