Lines Matching refs:error
186 char *error = NULL; in adjustPrivileges() local
194 error = "OpenProcessToken failed: "; in adjustPrivileges()
210 error = "LookupPrivilegeValue failed: "; in adjustPrivileges()
221 error = "AdjustTokenPrivileges failed: "; in adjustPrivileges()
226 if (error != NULL && gIsDebug) { in adjustPrivileges()
228 err.setLastWin32Error(error); in adjustPrivileges()
471 static SYSTEM_PROCESS_INFORMATION *queryAllProcess(const char **error) { in queryAllProcess() argument
486 *error = "No processes found"; in queryAllProcess()
499 *error = "Failed to query system processes"; in queryAllProcess()
506 *error = "Failed to allocate system processes info buffer"; in queryAllProcess()
511 if (*error != NULL) { in queryAllProcess()
522 static SYSTEM_HANDLE_INFORMATION *queryAllHandles(const char **error) { in queryAllHandles() argument
537 *error = "No handles found"; in queryAllHandles()
550 *error = "Failed to allocate system handle info buffer"; in queryAllHandles()
556 *error = "Failed to query system handles"; in queryAllHandles()
561 if (*error != NULL) { in queryAllHandles()
570 const char *error = NULL; in findLock() local
599 error = "Failed to bind to ntdll.dll"; in findLock()
612 processesPtr = queryAllProcess(&error); in findLock()
615 handlesPtr = queryAllHandles(&error); in findLock()
754 if (error != NULL) { in findLock()
757 if (gIsDebug) fprintf(stderr, "[ERROR] %s: %s", error, msg.cstr()); in findLock()