我制作了一个小程序来检测鼠标在多屏配置上从一个屏幕移动到另一个屏幕,它被 Windows Defender 在 Windows 10 上检测为木马。在我的电脑上,Windows Defender 和我的防病毒软件都没有检测到它(Windows 7 Pro 64)。我只使用了几个功能:
GetCursorPos(&P);
...
HWND hwnd = WindowFromPoint(P);
HWND hparent = GetParent(hwnd);
while (hparent)
{
hwnd = hparent;
hparent = GetParent(hwnd);
}
SetForegroundWindow(hwnd);
该代码中是否有可疑之处?
谢谢