Created
February 3, 2026 17:36
-
-
Save jonny-jhnson/9f2f7816292707babf2f7d25d4b55606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch (notification) { | |
| case PRJ_NOTIFICATION_PRE_DELETE: | |
| { | |
| std::wprintf(L"[*] PRE_DELETE. ACCESS DENIED. File: %s, TriggeringImageInfo: %s (PID: %d)\n", | |
| callbackData->FilePathName, | |
| callbackData->TriggeringProcessImageFileName, | |
| callbackData->TriggeringProcessId); | |
| return HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED); | |
| } | |
| default: | |
| { | |
| break; | |
| } | |
| } | |
| return S_OK; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment