ICeeGen::AddSectionReloc 方法

更新:2007 年 11 月

向基本代码中添加一条 .reloc 指令。

HRESULT AddSectionReloc (
      [in] HCEESECTION            section,
      [in] ULONG                  offset,
      [in] HCEESECTION            relativeTo, 
      [in] CeeSectionRelocType    relocType
);

参数

  • section
    [in] 要在其中添加 .reloc 指令的内存中代码段。

  • offset
    [in] 该段的偏移量。

  • relativeTo
    [in] offset 引用的段。

  • relocType
    [in] CeeSectionRelocType 值之一,指示要添加的 .reloc 指令的种类。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**Cor.h

**库:**在 MsCorEE.dll 中用作资源

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICeeGen