Once you have the function address (as you've done in the updated question), you can try casting it to a function pointer and calling it:(*(BOOL (*)(HWND))0x76600454)((HWND)0x00021c0e)其中的第一部分将地址强制转换为BOOL (*)(HWND),这是指向使用HWND参数并返回BOOL的函数的指针.然后,函数指针被取消引用并调用.确保正确设置参数,否则会发生不良情况.在64位系统上,HWND可能是64位,因此您可能无法通过将参数作为int传递.The first part of that casts the address to BOOL (*)(HWND), which is a pointer to a function taking an HWND parameter and returning BOOL. Then, the function pointer is dereferenced and called. Make sure to get the parameters correct, otherwise bad things will happen. On 64-bit systems, and HWND might be 64 bits, so you might not be able to get away with passing the parameter as an int. 编辑:查看全文的评论. 这篇关于我可以从Visual Studio即时窗口中调用Win32 API吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 19:40