reticivis-net/uwd2

Watermark re-appears after explorer.exe restart and after reboot

marss72 opened this issue · 4 comments

I know it's not persistent, but you could make an installer, that would schedule a task in the task scheduler on the boot. I don't know how to fix restarting explorer, but I restart explorer very often...

Hmmm, having an installer that adds it as a boot process is a good idea. I originally tried to modify system files but turns out windows does NOT like you doing that
I was planning at some point to add a thing that monitors explorer for restarts, there just isn’t an easier way that I know of than constantly checking for explorer’s PID which would use resources in the background

Don't modify any system files — risking errors, or even making device unbootable. Monitoring is a good idea, but you have to make it very lightweight. I have never coded anything with hooks so I don't know if it's possible, but you may could hook some process and if it close or open, call this watermark remover.

@reticivis-net Alternatively, you can get the desktop hwnd, use it to get a process handle (GetProcessHandleFromHwnd), then wait on it (OpenProcess(SYNCHRONIZE, ...), WaitForSingleObject).

@reticivis-net Alternatively, you can get the desktop hwnd, use it to get a process handle (GetProcessHandleFromHwnd), then wait on it (OpenProcess(SYNCHRONIZE, ...), WaitForSingleObject).

oh that's perfect! thanks!