Google Answers Logo
View Question
 
Q: Sysmon in COM ( Answered 4 out of 5 stars,   1 Comment )
Question  
Subject: Sysmon in COM
Category: Computers > Programming
Asked by: hamo-ga
List Price: $2.00
Posted: 23 Jan 2003 08:44 PST
Expires: 22 Feb 2003 08:44 PST
Question ID: 147479
Can I acces sysmon tool as a com object and if yes, what methods are available?
Answer  
Subject: Re: Sysmon in COM
Answered By: bio-ga on 26 Jan 2003 21:40 PST
Rated:4 out of 5 stars
 
Hi,

Yes, you can! Actually, Microsoft has dedicated a full chapter for it
at MSDN site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/system_monitor_automation_interface.asp

Quote from the web site: "You can add the fully scriptable System
Monitor control to any ActiveX-enabled container such as a Microsoft
Word document, or a web page viewed by Internet Explorer, and then
call the System Monitor Automation Interface from your VBScript
script. The capabilities of VBScript can be added to the functionality
of the System Monitor Automation Interface to create customized
performance monitors with capabilities beyond the Performance MMC
console."


To summarize, system monitor provides the following interfaces:


CounterItem
http://msdn.microsoft.com/library/en-us/perfmon/base/counteritem.asp

Provides counter property information.


Counters
http://msdn.microsoft.com/library/en-us/perfmon/base/counters.asp

Provides methods for adding or removing CounterItem objects and
accessing related properties. It is a collection of CounterItem
objects.


LogFileItem
http://msdn.microsoft.com/library/en-us/perfmon/base/logfileitem.asp

Provides a property for returning the path of a single log file
accessed by the System Monitor control.


SystemMonitor
http://msdn.microsoft.com/library/en-us/perfmon/base/systemmonitor.asp

Provides methods and properties that correspond to the functionality
provided by the System Monitor user interface. Each SystemMonitor
object contains one Counters collection object.


Hope this helps
Regards
Bio
Google Answers Researcher
hamo-ga rated this answer:4 out of 5 stars and gave an additional tip of: $2.00
wery good answer. Wery helpfull

Comments  
Subject: Re: Sysmon in COM
From: bio-ga on 27 Jan 2003 11:37 PST
 
I'm happy to help. Thank you for your rating and the tip.

Bio

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy