当前位置: 代码迷 >> VC/MFC >> 64位内切汇编解决方案
  详细解决方案

64位内切汇编解决方案

热度:152   发布时间:2016-05-02 03:42:35.0
64位内切汇编
本帖最后由 VisualEleven 于 2015-08-27 09:40:10 编辑
//VMProtect SDK
#define VMProtectBegin \
__asm _emit 0xEB \
__asm _emit 0x10 \
__asm _emit 0x56 \
__asm _emit 0x4D \
__asm _emit 0x50 \
__asm _emit 0x72 \
__asm _emit 0x6F \
__asm _emit 0x74 \
__asm _emit 0x65 \
__asm _emit 0x63 \
__asm _emit 0x74 \
__asm _emit 0x20 \
__asm _emit 0x62 \
__asm _emit 0x65 \
__asm _emit 0x67 \
__asm _emit 0x69 \
__asm _emit 0x6E \
__asm _emit 0x00 \

#define VMProtectEnd \
__asm _emit 0xEB \
__asm _emit 0x0E \
__asm _emit 0x56 \
__asm _emit 0x4D \
__asm _emit 0x50 \
__asm _emit 0x72 \
__asm _emit 0x6F \
__asm _emit 0x74 \
__asm _emit 0x65 \
__asm _emit 0x63 \
__asm _emit 0x74 \
__asm _emit 0x20 \
__asm _emit 0x65 \
__asm _emit 0x6E \
__asm _emit 0x64 \
__asm _emit 0x00 \

vc2005  不认 VMProtectBegin   和VMProtectEnd  提示

提示 使用了非标准扩展: 不支持在此结构上使用“__asm”关键字
------解决思路----------------------
VS的编译器不支持64位内联汇编
------解决思路----------------------
单独写一段64位汇编代码
  相关解决方案