登录
首页 » Windows开发 » thunk是一组动态生成的ASM指令,它记录了窗口类对象的this指针,并且这组指令可以当作函数,既也可以是窗口过程来使用。thunk先把窗口对象this指针记...

thunk是一组动态生成的ASM指令,它记录了窗口类对象的this指针,并且这组指令可以当作函数,既也可以是窗口过程来使用。thunk先把窗口对象this指针记...

于 2022-08-09 发布 文件大小:6.42 kB
0 193
下载积分: 2 下载次数: 1

代码说明:

thunk是一组动态生成的ASM指令,它记录了窗口类对象的this指针,并且这组指令可以当作函数,既也可以是窗口过程来使用。thunk先把窗口对象this指针记录下来,然后转向到静态stdProc回调函数,转向之前先记录HWND,然后把堆栈里HWND的内容替换为this指针,这样在stdProc里就可以从HWND取回对象指针,定位到WindowProc了-thunk is a group of dynamically generated ASM command, it records the window class object this pointer, and this group of commands can be used as a function of both the process can also be a window to use. thunk first window object this pointer record, and then shifted to the static callback function stdProc, before turning record HWND, and then the contents of the stack where HWND replace this pointer, so in stdProc can retrieve the object from the HWND pointer, locate the WindowProc

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 自己写的一个 Base64 编码解码工具,fcl 里已经有了,写这个主要是为了让大家了解 Base64 编码原理...
    自己写的一个 Base64 编码解码工具,fcl 里已经有了,写这个主要是为了让大家了解 Base64 编码原理-His writing a Base64 encoding and decoding tools, fcl were already there, writing this mainly to let everyone understand the principles of Base64 Encoding
    2022-01-26 00:36:37下载
    积分:1
  • Pocket PC 2003 system under the CHM electronic help files readable source code o...
    POCKET PC 2003系统下的CHM电子帮助文件阅读的源代码,值得一看.-Pocket PC 2003 system under the CHM electronic help files readable source code overseas.
    2022-06-12 05:16:37下载
    积分:1
  • 一种网络通信编程实例源代码
    VC++网络通信编程实例案例精选源代码1-examples of network communication programming source code for a selected case
    2022-11-05 10:55:03下载
    积分:1
  • As an industrial control software, an integral part of this software can be used...
    为一个工业控制软件的一个组成部分,此软件可用于控制电镀生产线-As an industrial control software, an integral part of this software can be used to control the electroplating production line
    2023-02-17 10:15:04下载
    积分:1
  • 函数从LLH到ECEF坐标转换
    Function convert the coordinates from LLH to ECEF
    2022-03-26 06:25:34下载
    积分:1
  • 2005最新C++经典著作 2005最新C++经典著作
    2005最新C++经典著作 2005最新C++经典著作-2005最新C++经典著作Addison.Wesley.Effective.C.Plus.Plus.55.Specific.Ways.to.Improve.Your.Programs.and.Designs.3rd.Edition.May.2005.eBook-DDU.chm Addison.Wesley,.C++.Common.Knowledge.Essential.Intermediate.Programming.(2005).chm Addison.Wesley.-.Exceptional.C++.Style.40.New.Engineering.Puzzles,.Programming.Problems.and.Solutions.-.Herb.Sutter.chm Addison.Wesley,.C++.Coding.Standards.101.Rules.Guidelines.(2004).LiB.chm Addison.Wesley.-.Imperfect.C++.Practical.Solutions.for.Real-Life.Programming.chm
    2022-03-16 20:27:18下载
    积分:1
  • A good an example of multi
    很好的一个多媒体编程的一个实例,大家顶下!-A good an example of multi-media programming, the top U.S. under!
    2022-09-06 05:15:02下载
    积分:1
  • VC++开发的DOS界面写字板
    VC++开发的DOS界面写字板-development of the VC DOS interface tablet
    2023-04-13 05:30:04下载
    积分:1
  • 本文件种程序的功能是adpmedian!
    本文件种程序的功能是adpmedian!-adpmedian
    2022-05-24 03:09:25下载
    积分:1
  • C语言实现贪吃蛇
    //: Snake.c /* * * * * * * * * * * * * * * * * * * * * * * // Project: RedSnake(贪吃蛇) // Author: Problue // Version: 1.0 // Date: 19:55 2012-10-29 * * * * * * * * * * * * * * * * * * * * * * */ #include #include #include #include "pcc32.h" // 定义地图的尺寸及坐标 #define MAP_WIDTH 32 // 地图宽度 #define MAP_HEIGHT 32 // 地图高度 #define OFFSET_X 1 // 地图左右的边距 #define OFFSET_Y 1 // 地图上下的边距 #define TOTAL_WIDTH (MAP_WIDTH + OFFSET_X * 2) // 窗口宽度 #define TOTAL_HEIGHT (MAP_HEIGHT + OFFSET_Y * 2) // 窗口高度 #define GotoMap(x, y) gotoTextPos((x) * 2, (y)) // 定义地图方格的状态,分别为: 空格、蛇头、蛇身、蛇尾、食物 #define BS_SPACE 0 #define BS_SHEAD 1 #define BS_SBODY 2 #define BS_STAIL 3 #define BS_FOOD 4 // 蛇默认长度 #define SNAKE_MIN_LEN 5 // 定义蛇运动方向: 上、下、左、右 #define DIR_UP 1 #define DIR_DOWN 2 #define DIR_LEFT 3
    2022-05-15 19:59:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载