次の方法で共有


IAgentCommands::GetCount

[Microsoft エージェントは Windows 7 の時点で非推奨となり、以降のバージョンの Windows では使用できない場合があります。]

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

Commands コレクション内の Command オブジェクトの数を取得します。

  • 操作が成功したことを示すS_OKを返します。

pdwCount

Commands コレクション内の Commands の数を受け取る変数のアドレス。

pdwCount には、Commands コレクションで定義したコマンドの数のみが含まれます。 サーバーまたはその他のクライアント エントリは含まれません。