更新:2007 年 11 月
表示一个公共语言运行库 (CLR) 模块,它可以是一个可执行文件,也可以是一个动态链接库 (DLL)。
interface ICorDebugModule : IUnknown {
HRESULT _stdcall GetProcess([out] ICorDebugProcess** ppProcess);
HRESULT _stdcall GetBaseAddress([out] uint64* pAddress);
HRESULT _stdcall GetAssembly([out] ICorDebugAssembly** ppAssembly);
HRESULT _stdcall GetName(
[in] unsigned int cchName,
[out] unsigned int* pcchName,
[out] ICorDebugModule szName);
HRESULT _stdcall EnableJITDebugging(
[in] long bTrackJITInfo,
[in] long bAllowJitOpts);
HRESULT _stdcall EnableClassLoadCallbacks([in] long bClassLoadCallbacks);
HRESULT _stdcall GetFunctionFromToken(
[in] unsigned int methodDef,
[out] ICorDebugFunction** ppFunction);
HRESULT _stdcall GetFunctionFromRVA(
[in] uint64 rva,
[out] ICorDebugFunction** ppFunction);
HRESULT _stdcall GetClassFromToken(
[in] unsigned int typeDef,
[out] ICorDebugClass** ppClass);
HRESULT _stdcall CreateBreakpoint([out] ICorDebugModuleBreakpoint** ppBreakpoint);
HRESULT _stdcall GetEditAndContinueSnapshot([out] ICorDebugEditAndContinueSnapshot** ppEditAndContinueSnapshot);
HRESULT _stdcall GetMetaDataInterface(
[in] GUID* riid,
[out] IUnknown** ppObj);
HRESULT _stdcall GetToken([out] unsigned int* pToken);
HRESULT _stdcall IsDynamic([out] long* pDynamic);
HRESULT _stdcall GetGlobalVariableValue(
[in] unsigned int fieldDef,
[out] ICorDebugValue** ppValue);
HRESULT _stdcall GetSize([out] unsigned int* pcBytes);
HRESULT _stdcall IsInMemory([out] long* pInMemory);
};
方法
方法 |
说明 |
---|---|
未实现。 |
|
确定是否为此模块调用 ICorDebugManagedCallback::LoadClass 和 ICorDebugManagedCallback::UnloadClass 回调。 |
|
确定实时 (JIT) 编译器是否为此模块中的方法保留调试信息。 |
|
获取包含此模块的程序集。 |
|
获取该模块的基址。 |
|
从元数据中获取 ICorDebugClass。 |
|
已否决。 |
|
未实现。 |
|
获取由元数据标记指定的函数。 |
|
获取指定全局变量的值对象。 |
|
获取可用于检查模块的元数据的元数据接口指针。 |
|
获取模块的文件名称。 |
|
获取此模块的包含进程。 |
|
获取模块的大小(以字节为单位)。 |
|
获取此模块所对应的表项的标记。 |
|
指示模块是否为动态模块。 |
|
指示此模块是否仅存在于内存中。 |
要求
**平台:**请参见 .NET Framework 系统要求。
**头文件:**CorDebug.idl
**库:**CorGuids.lib
**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0