VirtualBox

Changeset 41379 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
May 21, 2012 7:19:55 PM (13 years ago)
Author:
vboxsync
Message:

wddm: missing bits for backdoor logging config

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r41058 r41379  
    23412341    return STATUS_SUCCESS;
    23422342}
     2343
     2344NTSTATUS vboxWddmDrvCfgInit(PUNICODE_STRING pRegStr)
     2345{
     2346    HANDLE hKey;
     2347    OBJECT_ATTRIBUTES ObjAttr;
     2348
     2349    InitializeObjectAttributes(&ObjAttr, pRegStr, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL);
     2350
     2351    NTSTATUS Status = ZwOpenKey(&hKey, GENERIC_READ, &ObjAttr);
     2352    if (!NT_SUCCESS(Status))
     2353    {
     2354        WARN(("ZwOpenKey for settings key failed, Status 0x%x", Status));
     2355        return Status;
     2356    }
     2357
     2358    DWORD dwValue = 0;
     2359    Status = vboxWddmRegQueryValueDword(hKey, VBOXWDDM_CFG_STR_LOG_UM, &dwValue);
     2360    if (NT_SUCCESS(Status))
     2361        g_VBoxLogUm = dwValue;
     2362
     2363    ZwClose(hKey);
     2364
     2365    return Status;
     2366}
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.h

    r39981 r41379  
    198198void VBoxWddmVrTerm();
    199199
     200NTSTATUS vboxWddmDrvCfgInit(PUNICODE_STRING pRegStr);
     201
    200202#endif /* #ifndef ___VBoxMPMisc_h__ */
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.h

    r40747 r41379  
    3030
    3131//#define VBOXWDDM_DEBUG_VIDPN
     32
     33#define VBOXWDDM_CFG_LOG_UM_BACKDOOR 0x00000001
     34#define VBOXWDDM_CFG_LOG_UM_DBGPRINT 0x00000002
     35#define VBOXWDDM_CFG_STR_LOG_UM L"VBoxLogUm"
     36extern DWORD g_VBoxLogUm;
    3237
    3338RT_C_DECLS_BEGIN
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