Changeset 99828 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm
- Timestamp:
- May 17, 2023 1:48:57 PM (21 months ago)
- svn:sync-xref-src-repo-rev:
- 157464
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r98103 r99828 108 108 109 109 /* Write hw information to registry, so that it's visible in windows property dialog */ 110 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.ChipType",110 rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.ChipType", 111 111 g_wszVBoxChipType, sizeof(g_wszVBoxChipType)); 112 112 VBOXMP_WARN_VPS(rc); 113 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.DacType",113 rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.DacType", 114 114 g_wszVBoxDACType, sizeof(g_wszVBoxDACType)); 115 115 VBOXMP_WARN_VPS(rc); 116 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.MemorySize",116 rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.MemorySize", 117 117 &cbVRAM, sizeof(ULONG)); 118 118 VBOXMP_WARN_VPS(rc); 119 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.AdapterString",119 rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.AdapterString", 120 120 g_wszVBoxAdapterString, sizeof(g_wszVBoxAdapterString)); 121 121 VBOXMP_WARN_VPS(rc); 122 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.BiosString",122 rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.BiosString", 123 123 g_wszVBoxBiosString, sizeof(g_wszVBoxBiosString)); 124 124 VBOXMP_WARN_VPS(rc); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPRegistry.cpp
r98103 r99828 58 58 } 59 59 60 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t Val)60 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t Val) 61 61 { 62 return VideoPortSetRegistryParameters(Reg, pName, &Val, sizeof(Val));62 return VideoPortSetRegistryParameters(Reg, (PWSTR)pName, &Val, sizeof(Val)); 63 63 } 64 64 65 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t *pVal)65 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t *pVal) 66 66 { 67 VP_STATUS rc; 68 69 rc = VideoPortGetRegistryParameters(Reg, pName, FALSE, VBoxMPQueryNamedValueCB, pVal); 70 if (rc!=NO_ERROR && pVal) 71 { 67 VP_STATUS rc = VideoPortGetRegistryParameters(Reg, (PWSTR)pName, FALSE, VBoxMPQueryNamedValueCB, pVal); 68 if (rc != NO_ERROR && pVal) 72 69 *pVal = 0; 73 }74 70 return rc; 75 71 }
Note:
See TracChangeset
for help on using the changeset viewer.