IAgentCommands::GetCount

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

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

Retrieves the number of Command objects in a Commands collection.

  • Returns S_OK to indicate the operation was successful.

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.