Microsoft SDK for Java

IJavaEventMonitorIDInfo::
ClassInformation

The ClassInformation method of the IJavaEventMonitorIDInfo interface is called by a profiler to retrieve information on a Java class. The profiler passes in the ClassID of the class it is interested in.

Syntax

HRESULT ClassInformation(ClassID class_id, LPSTR *ppclass_name, LPSTR *ppsource_file_name, int *pmethods, MethodID **ppmethod_ids, __int64 *pobjects_created);

Return Value

The name of the class, the source file attribute contained within the class file, an array of MethodIDs representing the class's methods, and a count of the number of objects of this class that have been created since the Microsoft VM was started.

Parameters

[in] class_id The ClassID of the class the profiler is interested in.
[out] *ppclass_name The UTF-8 string name of the method. This consists of the class name with dots. This item is taken directly from the constant pool of the class file and modified with dots instead of forward slashes.
[out] *ppsource_file_name The UTF-8 source file attribute taken directly from the constant pool of the class file, unmodified.
[out] *pmethods The number of MethodIDs in the array.
[out] **ppmethod_ids A pointer to an array of MethodIDs for the class.
[out] *pobjects_created A counter that represents the number of instances of this class that have been created since the class was loaded.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.