获取CorBindToRuntimeEx函数指针
来源:互联网 发布:手机淘宝怎么消除差评 编辑:程序博客网 时间:2024/06/06 07:07
http://stackoverflow.com/questions/776174/jcldotnet-and-some-odd-calling-patterns-using-assembler
将.h转换成Delphi的pas文件:http://www.drbob42.com/headconv/index.htm
http://rvelthuis.de/articles/articles-convert.html
function CorBindToRuntimeEx(pwszVersion, pwszBuildFlavor: PWideChar;
startupFlags: DWORD; const rclsid: TCLSID; const riid: TIID;
out pv): HRESULT; stdcall;
{$EXTERNALSYM CorBindToRuntimeEx}
...
var
_CorBindToRuntimeEx: Pointer = nil;
function CorBindToRuntimeEx;
begin
GetProcedureAddress(_CorBindToRuntimeEx, mscoree_dll,
'CorBindToRuntimeEx');
asm
mov esp, ebp
pop ebp
jmp [_CorBindToRuntimeEx]
end;
end;
...
OleCheck(CorBindToRuntimeEx(PWideCharOrNil(ClrVer),
PWideChar(ClrHostFlavorNames[Flavor]), Flags,
CLASS_CorRuntimeHost, IID_ICorRuntimeHost,
FDefaultInterface));
- 获取CorBindToRuntimeEx函数指针
- 获取虚函数指针
- 获取成员函数的指针
- 获取成员函数的指针
- 获取成员函数的指针
- DLL加载、获取函数指针。
- 获取虚函数表指针
- C++获取类成员函数的指针
- 获取类成员函数的指针
- C++获取类中成员函数的函数指针
- 指针函数 函数指针
- 函数指针/指针函数
- 指针函数&函数指针
- 函数指针 指针函数
- 函数指针 指针函数
- 指针函数,函数指针
- 函数指针,指针函数,
- 指针函数,函数指针
- 前辈高人的精彩PuTTY 中文教程
- C#调用存储过程例<一>
- iPhone应用中避免内存泄露小技巧
- 60个新鲜的高质量免费PSD文件资源之一:免费图标
- SQL时间段查询
- 获取CorBindToRuntimeEx函数指针
- Ubuntu VNC服务器与XDMCP服务器的配置
- 如何知道当前表都与哪些表相关联
- 软件加密之粗略谈
- 公司的一道考试题算法分析——大数据量整数排序
- 损坏联机日志的恢复方法
- ORACLE分区表查询
- 股市投资技巧19----识别起涨信号
- 基于随机游走的社团划分算法hadoop MR实现