Platform SDK: Agent

IAgentCommands::GetCount

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

Retrieves the number of Command objects in a Commands collection.

pdwCount
Address of a variable that receives the number of Commands in a Commands collection.

pdwCount includes only the number of Commands you define in your Commands collection. Server or other client entries are not included.