Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marss72 opened this issue Mar 31, 2024 · 4 comments
Open

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

marss72 opened this issue Mar 31, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@marss72
Copy link

marss72 commented Mar 31, 2024

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...

@machineonamission
Copy link
Owner

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

@marss72
Copy link
Author

marss72 commented Apr 1, 2024

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.

@riverar
Copy link

riverar commented Apr 5, 2024

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

@machineonamission
Copy link
Owner

@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!

@machineonamission machineonamission added the enhancement New feature or request label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants