RegisterDynamicSource

           

Registers the calling component as a dynamic component. A dynamic component generates events that are measured; for example, Performance Monitor is a dynamic component.

Syntax

Visual Basic object.RegisterDynamicSource(strVisibleName As String, guidSourceID As String, strDescription As String, guidClsid As String, inproc As Long)
Visual C++ HRESULT RegisterDynamicSource([in] LPCOLESTR strVisibleName,
[in] REFGUID guidSourceID,
[in] LPCOLESTR strDescription,
[in] REFGUID guidClsid,
[in] long inproc);
Visual J++ object.RegisterDynamicSource(String strVisibleName, String guidSourceID, String strDescription, String guidClsid, int inproc);

Parameters

object

A unique instance of the installer object.

strVisibleName

The name of the component or system that will be firing events. This name is visible to the Visual Studio Analyzer user. You must use Unicode characters from the ANSI character set for the name.

guidSourceID

A unique identifier for this component.

strDescription

The description of the component or system that will be firing events. This name is visible to the Visual Studio Analyzer user. You must use Unicode characters from the ANSI character set for the description.

guidClsid

(Optional) A unique identifier for the class to which this component belongs. Used when the component being registered is not already running on the client machine; this parameter tells the Visual Studio Analyzer server which client process to start.

inproc

(Optional) The type of client process to start. Used when the component being registered is not already running on the client machine; this parameter tells the Visual Studio Analyzer server to start the client process as either in-process or out-of-process.