- Timestamp:
- Jul 18, 2014 7:14:33 AM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r52089 r52092 947 947 DECLHIDDEN(void) supR3HardenedWinInstallHooks(void) 948 948 { 949 NTSTATUS rcNt; 950 949 951 #ifndef VBOX_WITHOUT_DEBUGGER_CHECKS 950 952 /* … … 952 954 * notifications from ending up in the debugger. 953 955 */ 954 NTSTATUSrcNt = NtSetInformationThread(GetCurrentThread(), ThreadHideFromDebugger, NULL, 0);956 rcNt = NtSetInformationThread(GetCurrentThread(), ThreadHideFromDebugger, NULL, 0); 955 957 if (!NT_SUCCESS(rcNt)) 956 supR3HardenedFatalMsg("supR3HardenedWinInstallHooks", kSupInitOp_Misc, VERR_ NO_MEMORY,958 supR3HardenedFatalMsg("supR3HardenedWinInstallHooks", kSupInitOp_Misc, VERR_GENERAL_FAILURE, 957 959 "NtSetInformationThread/ThreadHideFromDebugger failed: %#x\n", rcNt); 958 960 #endif 961 962 /* 963 * Disable hard error popups so we can quietly refuse images to be loaded. 964 */ 965 ULONG fHardErr = 0; 966 rcNt = NtQueryInformationProcess(NtCurrentProcess(), ProcessDefaultHardErrorMode, &fHardErr, sizeof(fHardErr), NULL); 967 if (!NT_SUCCESS(rcNt)) 968 supR3HardenedFatalMsg("supR3HardenedWinInstallHooks", kSupInitOp_Misc, VERR_GENERAL_FAILURE, 969 "NtQueryInformationProcess/ProcessDefaultHardErrorMode failed: %#x\n", rcNt); 970 if (fHardErr & PROCESS_HARDERR_CRITICAL_ERROR) 971 { 972 fHardErr &= ~PROCESS_HARDERR_CRITICAL_ERROR; 973 rcNt = NtSetInformationProcess(NtCurrentProcess(), ProcessDefaultHardErrorMode, &fHardErr, sizeof(fHardErr)); 974 if (!NT_SUCCESS(rcNt)) 975 supR3HardenedFatalMsg("supR3HardenedWinInstallHooks", kSupInitOp_Misc, VERR_GENERAL_FAILURE, 976 "NtSetInformationProcess/ProcessDefaultHardErrorMode failed: %#x\n", rcNt); 977 } 959 978 960 979 /* -
trunk/src/VBox/Runtime/r3/win/ntdll-mini-implib.def
r51770 r52092 51 51 NtReadFile ;;= _NtReadFile@36 52 52 NtReadVirtualMemory ;;= _NtReadVirtualMemory@20 53 NtResumeProcess ;;= _NtResumeProcess@4 54 NtResumeThread ;;= _NtResumeThread@8 53 55 NtSetInformationFile ;;= _NtSetInformationFile@20 54 56 NtSetInformationObject ;;= _NtSetInformationObject@16 57 NtSetInformationProcess ;;= _NtSetInformationProcess@16 55 58 NtSetInformationThread ;;= _NtSetInformationThread@16 56 59 NtSetTimerResolution ;;= _NtSetTimerResolution@12 60 NtSuspendProcess ;;= _NtSuspendProcess@4 61 NtSuspendThread ;;= _NtSuspendThread@8 57 62 NtWriteFile ;;= _NtWriteFile@36 58 63 NtWriteVirtualMemory ;;= _NtWriteVirtualMemory@20 … … 63 68 RtlCopySid ;;= _RtlCopySid@12 64 69 RtlCreateAcl ;;= _RtlCreateAcl@12 70 RtlCreateProcessParameters ;;= _RtlCreateProcessParameters@40 65 71 RtlCreateSecurityDescriptor ;;= _RtlCreateSecurityDescriptor@8 72 RtlCreateUserProcess ;;= _RtlCreateUserProcess@40 73 RtlDestroyProcessParameters ;;= _RtlDestroyProcessParameters@4 66 74 RtlGetVersion ;;= _RtlGetVersion@4 67 75 RtlInitializeSid ;;= _RtlInitializeSid@12
Note:
See TracChangeset
for help on using the changeset viewer.