Тот handle, что я получаю при помощи WinSpy++ и с помощью WindowFromPoint сходятся.
Код:
var
handle:THandle;
begin
if (ssCtrl in Shift) and (chr(Key) in [chr(114)]) then begin
handle:=WindowFromPoint(Mouse.CursorPos);
Label1.Caption:=IntTohex(handle,8);