次の方法で共有


IAgentCommands::GetCount

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

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

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

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

pdwCount する

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

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