VirtualBox

Ignore:
Timestamp:
Jul 26, 2014 11:58:18 AM (10 years ago)
Author:
vboxsync
Message:

VBox/err.h: four VERR_SUP_VP_* status codes for the latest SUP changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r52204 r52205  
    12661266                    rcNt = NtFreeVirtualMemory(pThis->hProcess, &pvFree, &cbFree, MEM_RELEASE);
    12671267                    if (!NT_SUCCESS(rcNt))
    1268                         supHardNtVpSetInfo2(pThis, VERR_GENERAL_FAILURE,
     1268                        supHardNtVpSetInfo2(pThis, VERR_SUP_VP_FREE_VIRTUAL_MEMORY_FAILED,
    12691269                                            "NtFreeVirtualMemory (%p LB %#zx) failed: %#x",
    12701270                                            MemInfo.BaseAddress, MemInfo.RegionSize, rcNt);
     
    12861286                            rcNt2 = NtProtectVirtualMemory(pThis->hProcess, &pvCopy, &cbCopy, PAGE_READONLY, NULL);
    12871287                        if (!NT_SUCCESS(rcNt2))
    1288                             supHardNtVpSetInfo2(pThis, VERR_GENERAL_FAILURE,
     1288                            supHardNtVpSetInfo2(pThis, VERR_SUP_VP_UNMAP_AND_PROTECT_FAILED,
    12891289                                                "NtUnmapViewOfSection (%p/%p LB %#zx) failed: %#x (%#x)",
    12901290                                                MemInfo.AllocationBase, MemInfo.BaseAddress, MemInfo.RegionSize, rcNt, rcNt2);
     
    12921292                }
    12931293                else
    1294                     supHardNtVpSetInfo2(pThis, VERR_GENERAL_FAILURE,
     1294                    supHardNtVpSetInfo2(pThis, VERR_SUP_VP_UNKOWN_MEM_TYPE,
    12951295                                        "Unknown executable memory type %#x at %p/%p LB %#zx",
    12961296                                        MemInfo.Type, MemInfo.AllocationBase, MemInfo.BaseAddress, MemInfo.RegionSize);
     
    15591559                                   "The process has no KERNEL32.DLL.");
    15601560    else if (iKernel32 != UINT32_MAX && pThis->enmKind == SUPHARDNTVPKIND_CHILD_PURIFICATION)
    1561         return supHardNtVpSetInfo2(pThis, VERR_GENERAL_FAILURE,
     1561        return supHardNtVpSetInfo2(pThis, VERR_SUP_VP_KERNEL32_ALREADY_MAPPED,
    15621562                                   "The process already has KERNEL32.DLL loaded.");
    15631563
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette