使用另类方式调用函数
2004-08-29 01:00
302 查看
大家可以自己编译运行一下下面的代码,看看为什么是这样哦:)
#include <windows.h>
#include <stdio.h>
void __stdcall Test1()
{
printf("Test1/n");
}
void __stdcall Test2()
{
printf("Test2/n");
}
void __stdcall Test3()
{
printf("Test3/n");
}
int main(int argc, char* argv[])
{
__asm
{
push 0
push 0
mov eax, ExitProcess
push eax
lea eax, Test1
push eax
lea eax, Test2
push eax
lea eax, Test3
push eax
ret
}
}
#include <windows.h>
#include <stdio.h>
void __stdcall Test1()
{
printf("Test1/n");
}
void __stdcall Test2()
{
printf("Test2/n");
}
void __stdcall Test3()
{
printf("Test3/n");
}
int main(int argc, char* argv[])
{
__asm
{
push 0
push 0
mov eax, ExitProcess
push eax
lea eax, Test1
push eax
lea eax, Test2
push eax
lea eax, Test3
push eax
ret
}
}
相关文章推荐
- NAT另类使用方式
- 部分告别Qt调试,另类使用显示Qt程序中函数加载顺序的方式
- Unity中另类的使用Lua的一种方式
- 消息机制和使用调用函数方式有何区别
- C# 使用OracleClient链接的新方式
- JavaBean中使用JDBC方式进行事务处理
- commons-digest使用方式简介
- 使用JQuery UI插件以拖动的方式管理图片8-9
- 红外条码扫描器的另类使用C#版
- (6) Spring 如何装配 集合类 以及 【第二种 依赖注入 方式】使用 构造器 注入
- 正则表达式常规使用方式
- Speech SDK 5.1--No.2:两种使用方式
- 音频的录制方式-AudioRecord,MediaRecorder的使用及播放
- [置顶] 使用OC加载图片的两种方式及其区别
- 树莓派使用文件IO操作GPIO SysFs方式
- Android 数据存储五种方式使用与总结
- Android解析XML方式(一)使用SAX解析
- Android编程使用pull方式解析xml格式文件的方法详解
- spring boot 、 spring cloud 中使用servlet形式get、post方式http请求例子,并且和原生servlet有区别
- myeclipse下使用ext的插件有三种方式