Changeset 99828 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- May 17, 2023 1:48:57 PM (23 months ago)
- svn:sync-xref-src-repo-rev:
- 157464
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDrawCmd.cpp
r98103 r99828 158 158 } 159 159 160 void VBoxDispDumpPSO(SURFOBJ *pso, c har *s)160 void VBoxDispDumpPSO(SURFOBJ *pso, const char *s) 161 161 { 162 162 RT_NOREF(pso, s); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispInternal.h
r98103 r99828 163 163 164 164 BOOL VBoxDispIsScreenSurface(SURFOBJ *pso); 165 void VBoxDispDumpPSO(SURFOBJ *pso, c har *s);165 void VBoxDispDumpPSO(SURFOBJ *pso, const char *s); 166 166 167 167 BOOL vrdpDrvRealizeBrush(BRUSHOBJ *pbo, SURFOBJ *psoTarget, SURFOBJ *psoPattern, SURFOBJ *psoMask, -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPCommon.h
r98103 r99828 61 61 VP_STATUS VBoxMPCmnRegInit(IN PVBOXMP_DEVEXT pExt, OUT VBOXMPCMNREGISTRY *pReg); 62 62 VP_STATUS VBoxMPCmnRegFini(IN VBOXMPCMNREGISTRY Reg); 63 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t Val);64 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t *pVal);63 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t Val); 64 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t *pVal); 65 65 66 66 /* Pointer related */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r98103 r99828 405 405 } 406 406 407 NTSTATUS vboxWddmRegOpenKeyEx(OUT PHANDLE phKey, IN HANDLE hRootKey, IN P WCHAR pName, IN ACCESS_MASK fAccess)407 NTSTATUS vboxWddmRegOpenKeyEx(OUT PHANDLE phKey, IN HANDLE hRootKey, IN PCWCHAR pName, IN ACCESS_MASK fAccess) 408 408 { 409 409 OBJECT_ATTRIBUTES ObjAttr; … … 416 416 } 417 417 418 NTSTATUS vboxWddmRegOpenKey(OUT PHANDLE phKey, IN P WCHAR pName, IN ACCESS_MASK fAccess)418 NTSTATUS vboxWddmRegOpenKey(OUT PHANDLE phKey, IN PCWCHAR pName, IN ACCESS_MASK fAccess) 419 419 { 420 420 return vboxWddmRegOpenKeyEx(phKey, NULL, pName, fAccess); … … 562 562 } 563 563 564 NTSTATUS vboxWddmRegQueryValueDword(IN HANDLE hKey, IN P WCHAR pName, OUT PDWORD pDword)564 NTSTATUS vboxWddmRegQueryValueDword(IN HANDLE hKey, IN PCWCHAR pName, OUT PDWORD pDword) 565 565 { 566 566 struct … … 591 591 } 592 592 593 NTSTATUS vboxWddmRegSetValueDword(IN HANDLE hKey, IN P WCHAR pName, IN DWORD val)593 NTSTATUS vboxWddmRegSetValueDword(IN HANDLE hKey, IN PCWCHAR pName, IN DWORD val) 594 594 { 595 595 UNICODE_STRING RtlStr; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.h
r98103 r99828 93 93 NTSTATUS vboxWddmRegQueryDrvKeyName(PVBOXMP_DEVEXT pDevExt, ULONG cbBuf, PWCHAR pBuf, PULONG pcbResult); 94 94 95 NTSTATUS vboxWddmRegOpenKeyEx(OUT PHANDLE phKey, IN HANDLE hRootKey, IN P WCHAR pName, IN ACCESS_MASK fAccess);96 NTSTATUS vboxWddmRegOpenKey(OUT PHANDLE phKey, IN P WCHAR pName, IN ACCESS_MASK fAccess);97 NTSTATUS vboxWddmRegQueryValueDword(IN HANDLE hKey, IN P WCHAR pName, OUT PDWORD pDword);98 NTSTATUS vboxWddmRegSetValueDword(IN HANDLE hKey, IN P WCHAR pName, IN DWORD val);95 NTSTATUS vboxWddmRegOpenKeyEx(OUT PHANDLE phKey, IN HANDLE hRootKey, IN PCWCHAR pName, IN ACCESS_MASK fAccess); 96 NTSTATUS vboxWddmRegOpenKey(OUT PHANDLE phKey, IN PCWCHAR pName, IN ACCESS_MASK fAccess); 97 NTSTATUS vboxWddmRegQueryValueDword(IN HANDLE hKey, IN PCWCHAR pName, OUT PDWORD pDword); 98 NTSTATUS vboxWddmRegSetValueDword(IN HANDLE hKey, IN PCWCHAR pName, IN DWORD val); 99 99 100 100 NTSTATUS vboxWddmRegDrvFlagsSet(PVBOXMP_DEVEXT pDevExt, DWORD fVal); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPRegistry.cpp
r98103 r99828 52 52 { 53 53 if (!Reg) 54 {55 54 return ERROR_INVALID_PARAMETER; 56 }57 55 58 56 NTSTATUS Status = ZwClose(Reg); … … 60 58 } 61 59 62 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t *pVal)60 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t *pVal) 63 61 { 64 62 /* seems like the new code assumes the Reg functions zeroes up the value on failure */ … … 66 64 67 65 if (!Reg) 68 {69 66 return ERROR_INVALID_PARAMETER; 70 }71 67 72 68 NTSTATUS Status = vboxWddmRegQueryValueDword(Reg, pName, (PDWORD)pVal); … … 74 70 } 75 71 76 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, P WSTR pName, uint32_t Val)72 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t Val) 77 73 { 78 74 if (!Reg) -
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 } -
trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp
r98639 r99828 100 100 typedef struct 101 101 { 102 P WSTR pApplicationId;103 P WSTR pDisplayName;104 P WSTR pProductName;105 P WSTR pMfgName;102 PCWSTR pApplicationId; 103 PCWSTR pDisplayName; 104 PCWSTR pProductName; 105 PCWSTR pMfgName; 106 106 } INSTALLERINFO, *PINSTALLERINFO; 107 107 typedef const PINSTALLERINFO PCINSTALLERINFO; -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/path.cpp
r98103 r99828 37 37 * Defined Constants And Macros * 38 38 *********************************************************************************************************************************/ 39 static UNICODE_STRING g_UnicodeBackslash = { 2, 4, L"\\" };39 static UNICODE_STRING g_UnicodeBackslash = { 2, 4, (PWSTR)L"\\" }; 40 40 41 41 -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.cpp
r98103 r99828 1124 1124 NTSTATUS Status = STATUS_BAD_NETWORK_NAME; 1125 1125 1126 ULONG i; 1127 PWCHAR pwc; 1128 PWCHAR pwc1; 1129 1130 static PWCHAR spwszPrefix = L"\\Device\\VBoxMiniRdr\\;"; 1126 static WCHAR const s_wszPrefix[] = L"\\Device\\VBoxMiniRdr\\;"; 1131 1127 1132 1128 /* Unicode chars in the string. */ … … 1135 1131 1136 1132 /* Check that the name starts with correct prefix. */ 1137 pwc1 = &spwszPrefix[0]; 1138 pwc = ConnectionName->Buffer; 1133 PCWCHAR pwc1 = &s_wszPrefix[0]; 1134 PCWCHAR pwc = ConnectionName->Buffer; 1135 ULONG i; 1139 1136 for (i = 0; i < cConnectionName; i++, pwc1++, pwc++) 1140 1137 { -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.cpp
r98103 r99828 69 69 { 70 70 /** The actual method name the subscription is for. */ 71 c har *pszMethod;71 const char *pszMethod; 72 72 /** A friendly name for the subscription. */ 73 c har *pszSubscriptionName;73 const char *pszSubscriptionName; 74 74 /** The actual subscription UUID. 75 75 * Should not be changed. */ 76 c har *pszSubscriptionUUID;76 const char *pszSubscriptionUUID; 77 77 } g_aSENSEvents[] = { 78 78 { "Logon", "VBoxCredProv SENS Logon", "{561D0791-47C0-4BC3-87C0-CDC2621EA653}" }, … … 284 284 break; 285 285 286 hr = g_pIEventSystem->Store( PROGID_EventSubscription, (IUnknown*)pIEventSubscription);286 hr = g_pIEventSystem->Store((BSTR)PROGID_EventSubscription, (IUnknown*)pIEventSubscription); 287 287 if (FAILED(hr)) 288 288 break; … … 346 346 AssertContinue(SUCCEEDED(hr)); /* keep going */ 347 347 int iErrorIdX; 348 hr = g_pIEventSystem->Remove( PROGID_EventSubscription, bstrSubToRemove.raw(), &iErrorIdX);348 hr = g_pIEventSystem->Remove((BSTR)PROGID_EventSubscription, bstrSubToRemove.raw(), &iErrorIdX); 349 349 if (FAILED(hr)) 350 350 { -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.h
r98103 r99828 91 91 { 92 92 /** The user's profile image (tile). */ 93 { { VBOXCREDPROV_FIELDID_TILEIMAGE, CPFT_TILE_IMAGE, L"Tile Image", {0} }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE },94 { { VBOXCREDPROV_FIELDID_USERNAME, CPFT_LARGE_TEXT, L"Username", CPFG_LOGON_USERNAME }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE },95 { { VBOXCREDPROV_FIELDID_PASSWORD, CPFT_PASSWORD_TEXT, L"Password", CPFG_LOGON_PASSWORD }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED },96 { { VBOXCREDPROV_FIELDID_DOMAINNAME, CPFT_LARGE_TEXT, L"", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED },97 { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON, CPFT_SUBMIT_BUTTON, L"Submit", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED },93 { { VBOXCREDPROV_FIELDID_TILEIMAGE, CPFT_TILE_IMAGE, (LPWSTR)L"Tile Image", {0} }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE }, 94 { { VBOXCREDPROV_FIELDID_USERNAME, CPFT_LARGE_TEXT, (LPWSTR)L"Username", CPFG_LOGON_USERNAME }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE }, 95 { { VBOXCREDPROV_FIELDID_PASSWORD, CPFT_PASSWORD_TEXT, (LPWSTR)L"Password", CPFG_LOGON_PASSWORD }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 96 { { VBOXCREDPROV_FIELDID_DOMAINNAME, CPFT_LARGE_TEXT, (LPWSTR)L"", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 97 { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON, CPFT_SUBMIT_BUTTON, (LPWSTR)L"Submit", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 98 98 /** New since Windows 8: The image used to represent a credential provider on the logon page. */ 99 { { VBOXCREDPROV_FIELDID_PROVIDER_LOGO, CPFT_TILE_IMAGE, L"Provider Logo", CPFG_CREDENTIAL_PROVIDER_LOGO }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE },99 { { VBOXCREDPROV_FIELDID_PROVIDER_LOGO, CPFT_TILE_IMAGE, (LPWSTR)L"Provider Logo", CPFG_CREDENTIAL_PROVIDER_LOGO }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE }, 100 100 /** New since Windows 8: The label associated with a credential provider on the logon page. */ 101 { { VBOXCREDPROV_FIELDID_PROVIDER_LABEL, CPFT_SMALL_TEXT, L"Provider Label", CPFG_CREDENTIAL_PROVIDER_LABEL }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE }101 { { VBOXCREDPROV_FIELDID_PROVIDER_LABEL, CPFT_SMALL_TEXT, (LPWSTR)L"Provider Label", CPFG_CREDENTIAL_PROVIDER_LABEL }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE } 102 102 }; 103 103 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r98103 r99828 1643 1643 DWORD winEr; 1644 1644 int iPath; 1645 UINT fSetFlags = 0; /* /permissive- hack */ 1645 1646 1646 1647 winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ONLY_ACTIVE_PATHS); … … 1744 1745 #endif 1745 1746 1746 UINTfSetFlags = !fSetTopology ? (SDC_USE_SUPPLIED_DISPLAY_CONFIG) : (SDC_ALLOW_PATH_ORDER_CHANGES | SDC_TOPOLOGY_SUPPLIED);1747 fSetFlags = !fSetTopology ? (SDC_USE_SUPPLIED_DISPLAY_CONFIG) : (SDC_ALLOW_PATH_ORDER_CHANGES | SDC_TOPOLOGY_SUPPLIED); 1747 1748 winEr = vboxDispIfWddmDcSet(&DispCfg, fSetFlags | SDC_VALIDATE); 1748 1749 if (winEr != ERROR_SUCCESS) -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp
r98103 r99828 158 158 159 159 160 static BOOL laGetRegistryDWORD( WCHAR *pwszRegKey,WCHAR *pwszName, DWORD *pdwValue)160 static BOOL laGetRegistryDWORD(const WCHAR *pwszRegKey, const WCHAR *pwszName, DWORD *pdwValue) 161 161 { 162 162 LONG lErr; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h
r98103 r99828 80 80 * The environment information for services. 81 81 */ 82 typedef struct _VBOXSERVICEENV82 typedef struct VBOXSERVICEENV 83 83 { 84 84 /** hInstance of VBoxTray. */ … … 97 97 * A service descriptor. 98 98 */ 99 typedef struct _VBOXSERVICEDESC99 typedef struct VBOXSERVICEDESC 100 100 { 101 101 /** The service's name. RTTHREAD_NAME_LEN maximum characters. */ 102 c har*pszName;102 const char *pszName; 103 103 /** The service description. */ 104 c har*pszDesc;104 const char *pszDesc; 105 105 106 106 /** Callbacks. */ … … 145 145 * The service initialization info and runtime variables. 146 146 */ 147 typedef struct _VBOXSERVICEINFO147 typedef struct VBOXSERVICEINFO 148 148 { 149 149 /** Pointer to the service descriptor. */ … … 166 166 } VBOXSERVICEINFO, *PVBOXSERVICEINFO; 167 167 168 /* Globally unique (system wide) message registration. */ 169 typedef struct _VBOXGLOBALMESSAGE 168 /** 169 * Globally unique (system wide) message registration. 170 */ 171 typedef struct VBOXGLOBALMESSAGE 170 172 { 171 173 /** Message name. */ 172 c har*pszName;174 const char *pszName; 173 175 /** Function pointer for handling the message. */ 174 int (* pfnHandler)(WPARAM wParam, LPARAM lParam);176 int (*pfnHandler)(WPARAM wParam, LPARAM lParam); 175 177 176 178 /* Variables. */ -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxVRDP.cpp
r98103 r99828 65 65 }; 66 66 67 typedef struct _VBOXVRDPEXPPARAM67 typedef struct VBOXVRDPEXPPARAM 68 68 { 69 69 const char *name; … … 77 77 } VBOXVRDPEXPPARAM, *PVBOXVRDPEXPPARAM; 78 78 79 typedef struct _VBOXVRDPCONTEXT79 typedef struct VBOXVRDPCONTEXT 80 80 { 81 81 const VBOXSERVICEENV *pEnv; … … 96 96 static VBOXVRDPEXPPARAM s_aSPIParams[] = 97 97 { 98 { SPI_(MEDIUM, DESKWALLPAPER), VBOX_SPI_STRING, "" },98 { SPI_(MEDIUM, DESKWALLPAPER), VBOX_SPI_STRING, (void *)"" }, 99 99 { SPI_(FULL, DROPSHADOW), VBOX_SPI_BOOL_PTR, }, 100 100 { SPI_(HIGH, FONTSMOOTHING), VBOX_SPI_BOOL, },
Note:
See TracChangeset
for help on using the changeset viewer.