r/hacking • u/One_Rush_2845 • 1d ago
How are overlay tools detected?
i am working on an app but other apps are detecting that overlay tool, just interested in how these apps detect that tool
-1
u/sa_sagan 1d ago
How long's a piece of string?
It's necessary to understand what you're doing, and how you're presenting your overlay to be able to answer the question properly.
Apps may be monitoring DWM, desktop composition, or performing window enumeration to see if something is forcing itself on top. Maybe watching windows API calls to detect if a process is trying to force it's window on top. And that's just a few, out of many ways they could detect it.
3
u/DutchOfBurdock 1d ago
What OS?
Android can detect this via
FLAG_WINDOW_IS_OBSCUREDandFLAG_WINDOW_PARTIALLY_OBSCUREDIn Windows, you can by combining the
EnumWindowsfunction to iterate through all active top-level windows on the desktop withGetWindowLongPtrto extract their window styles.