I made a small program to detect mouse moving from a screen to another on multiscreen configuration and it is detected as a trojan on windows 10 by windows defender. On my pc it is not detected (windows 7 pro 64) by windows defender nor my antivirus. I'm using just a few functions:
GetCursorPos(&P);
...
HWND hwnd = WindowFromPoint(P);
HWND hparent = GetParent(hwnd);
while (hparent)
{
hwnd = hparent;
hparent = GetParent(hwnd);
}
SetForegroundWindow(hwnd);
Is there something in that code that can be suspicious ?
Thanks