| 59 | } |
| 60 | |
| 61 | bool CAccess::DecreasePrivilege(HANDLE hProcess) |
| 62 | { |
| 63 | __try |
| 64 | { |
| 65 | if (DecreasePrivilegeEx(hProcess) == false) |
| 66 | return false; |
| 67 | } |
| 68 | __except (CExceptionHandlers::OnExceptionThrowed(GetExceptionInformation())) |
| 69 | { |
| 70 | // Logf(CUSTOM_LOG_FILENAME, xorstr("DecreasePrivilege fail!\n").crypt_get()); |
| 71 | } |
| 72 | return true; |
| 73 | } |
| 74 | |
| 75 | bool CAccess::RemoveProcessDebugPriv(DWORD dwProcessId, HANDLE hProcess) |
| 76 | { |
no test coverage detected