如何使用System :: Call调用WindowFromPoint windows API函数

时间:2012-08-27 18:33:17

标签: winapi nsis

如何在系统插件语法中将P​​OINT结构传递给WindowFromPoint()

1 个答案:

答案 0 :(得分:2)

System::Alloc 8
Pop $0
System::Call 'USER32::GetCursorPos(ir0)'
System::Call '*$0(i.r8,i.r9)'
System::Free $0
System::Call 'USER32::WindowFromPoint(ir8,ir9)i.r1'
System::Call 'USER32::GetClassName(ir1,t.r2,i ${NSIS_MAX_STRLEN})'
MessageBox mb_ok "$8x$9: $1=$2"