|
I am trying to create a CLR profiler to run on an x64 server.
I have a profiler which works when compiled for win32 but when trying to run it when compiled for x64, it fails on theGetTokenAndMetaDataFromFunction function with the HRESULT of80131363
This is the code that fails:
IMetaDataImport* pImport = NULL;
mdToken token = mdTypeDefNil;
// Get the metadata interface
hr = m_pProfilerInfo->GetTokenAndMetaDataFromFunction(functionInfo.FunctionID, IID_IMetaDataImport, (IUnknown**)&pImport, &token);
funtionInfo.FunctionID is the ID of the function reiceved from the method hooks.
|