-
thunk是一组动态生成的ASM指令,它记录了窗口类对象的this指针,并且这组指令可以当作函数,既也可以是窗口过程来使用。thunk先把窗口对象this指针记...
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
- 2022-08-09 23:02:21下载
- 积分:1
-
获得本机以及指定域名的ipv4和ipv6地址
应用背景本代码可以用来实现获取本机以及指定域名的ipv4地址以及ipv6地址,代码分了两个c++文件,并非写在一起,使用时可以注释掉其中一个或是新建项目将其中一个c++文件剪切进去。关键技术
对于本地的ip地址我们只需要使用WinSocket继承的Berkeley Socket API里面的函数gethostbyname()通过名字获得主机信息,然后再显示出其ip地址即可,对于输出ipv6地址需将地址族改为AF_INET6.进一步得到ipv6地址。而要得到指定域名的ip地址时需要对一个地址同样使用gethostbyname()获得信息,再进行显示。
- 2022-07-04 18:45:02下载
- 积分:1
-
socket编程实例 可以实现简单的Socket通信 可供初学者参考
socket编程实例 可以实现简单的Socket通信 可供初学者参考-socket programming can be achieved simply an instance of Socket Communications for advanced users
- 2022-05-23 03:37:25下载
- 积分:1
-
示例网络摄像头
Visual Basic应用程序,其中显示了网络摄像头的输出,并具有快照。 可用于不同的网络摄像头和易于理解。Visual Basic Application wherein shows output of web cam and have snapshots.Can be used to different webcams and easy to understand.
- 2023-01-24 10:55:04下载
- 积分:1
-
模拟指示灯控件。
模拟指示灯控件。-simulated light controls.
- 2022-01-31 06:53:05下载
- 积分:1
-
使用OPenGL 写的Robot程序,可以行走
使用OPenGL 写的Robot程序,可以行走-Robot using OPenGL written procedures, you can walk
- 2022-07-23 05:56:45下载
- 积分:1
-
packages in java
java包。。包存储在各自的文件夹中并正确继承。这是一个理解软件包的简单程序。
- 2022-03-30 00:59:22下载
- 积分:1
-
不用API函数实现的窗体颜色渐变.很不错的哦
不用API函数实现的窗体颜色渐变.很不错的哦-not API functions of the form color gradient. Oh, very good
- 2022-01-22 05:04:33下载
- 积分:1
-
Scroll demo example screenshots
滚屏截图的演示例子-Scroll demo example screenshots
- 2022-01-21 06:12:28下载
- 积分:1
-
- 2022-04-07 19:19:24下载
- 积分:1