all groups > dotnet clr > july 2004 >
You're in the

dotnet clr

group:

ICorProfilerInfo::GetModuleInfo doesn't have argument for assembly


ICorProfilerInfo::GetModuleInfo doesn't have argument for assembly Adam Preble
7/22/2004 4:55:03 PM
dotnet clr:
According to the profiling documentation I have, ICorProfilerInfo::GetModuleInfo has the following prototype:

HRESULT GetModuleInfo( ModuleID moduleId,
LPCBYTE **ppBaseLoadAddress,
SIZE_T cchName,
SIZE_T *pcchName,
WCHAR szName[],
mdModule *pModuleToken,
AssemblyID *pAssemblyId )

However, I get a compilation error when I try to use it with all 7 arguments. Specifically, AssemblyID doesn't seem to exist. Looking at Matt Pietrick's profiling API demonstration, he excludes it.

Re: ICorProfilerInfo::GetModuleInfo doesn't have argument for assembly Paul Pendlebury [MSFT]
7/23/2004 12:32:52 PM
I believe this is a case where the documentation is wrong. The extra
parameter in the prototype is actually the "mdModule *pModuleToken"
parameter. The correct prototype should be:



HRESULT GetModuleInfo(

ModuleID moduleId,

LPCBYTE *ppBaseLoadAddress,

ULONG cchName,

ULONG *pcchName,

WCHAR szName[] ,

AssemblyID *pAssemblyId)



Thanks,

Paul



This posting is provided "AS IS" with no warranties, and confers no rights.




[quoted text, click to view]
arguments. Specifically, AssemblyID doesn't seem to exist. Looking at Matt
Pietrick's profiling API demonstration, he excludes it.
[quoted text, click to view]
collect all the attritubes for a function when it is JIT-compiled. Does
this work for some people? Is this a known issue? Is there a workaround?

AddThis Social Bookmark Button