Changeset 9918 in vbox
- Timestamp:
- Jun 25, 2008 2:02:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r9811 r9918 640 640 typedef struct 641 641 { 642 char achName[128]; 642 char achName[128]; /**< This is really szName. */ 643 643 } HGCMServiceLocationHost; 644 644 … … 1574 1574 VBGLR3DECL(int) VbglR3InfoSvcDisconnect(uint32_t u32ClientId); 1575 1575 VBGLR3DECL(int) VbglR3InfoSvcWriteKey(uint32_t u32ClientId, char *pszKey, char *pszValue); 1576 VBGLR3DECL(int) VbglR3InfoSvcReadKey(uint32_t u32ClientId, char *pszKey, char *p cValue, uint32_t cbValue, uint32_t *pcbActual);1576 VBGLR3DECL(int) VbglR3InfoSvcReadKey(uint32_t u32ClientId, char *pszKey, char *pszValue, uint32_t cbValue, uint32_t *pcbActual); 1577 1577 /** @} */ 1578 1578 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibInfoSvc.cpp
r9811 r9918 110 110 * @param u32ClientId The client id returned by VbglR3ClipboardConnect(). 111 111 * @param pszKey The registry key to save to. 112 * @param pcValue Where to store the value retrieved. 113 * @param cbValue The size of the array pcValue 112 * @param pszValue Where to store the value retrieved. 113 * @param cbValue The size of the buffer pszValue points to. 114 * @param pcbActual Where to store the required buffer size. This should be set on buffer 115 * overflows errors but actually isn't... Optional. 114 116 */ 115 117 VBGLR3DECL(int) VbglR3InfoSvcReadKey(uint32_t u32ClientId, char *pszKey, 116 char *p cValue, uint32_t cbValue, uint32_t *pcbActual)118 char *pszValue, uint32_t cbValue, uint32_t *pcbActual) 117 119 { 118 120 GetConfigKey Msg; … … 123 125 Msg.hdr.cParms = 3; 124 126 VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1); 125 VbglHGCMParmPtrSet(&Msg.value, p cValue, cbValue);127 VbglHGCMParmPtrSet(&Msg.value, pszValue, cbValue); 126 128 VbglHGCMParmUInt32Set(&Msg.size, 0); 127 129
Note:
See TracChangeset
for help on using the changeset viewer.