/* * ======== REG_SetValue ======== * Set a value in the registry. */ DSP_STATUS REG_SetValue(IN CONST char *pstrValue, IN u8 *pbData, IN u32 dwDataSize) { DSP_STATUS status; DBC_Require(pstrValue && pbData); DBC_Require(dwDataSize > 0); DBC_Require(strlen(pstrValue) < REG_MAXREGPATHLENGTH); SYNC_EnterCS(reglock); /* * We need to use regsup calls * for now we don't need the key handle or * the subkey, all we need is the value to lookup. */ status = regsupSetValue((char *)pstrValue, pbData, dwDataSize); SYNC_LeaveCS(reglock); return status; }
/* * ======== REG_SetValue ======== * Set a value in the registry. */ DSP_STATUS REG_SetValue(OPTIONAL IN HANDLE *phKey, IN CONST char *pstrSubkey, IN CONST char *pstrValue, IN CONST u32 dwType, IN u8 *pbData, IN u32 dwDataSize) { DSP_STATUS status; DBC_Require(pstrValue && pbData); DBC_Require(phKey == NULL); DBC_Require(dwDataSize > 0); DBC_Require(strlen(pstrValue) < REG_MAXREGPATHLENGTH); /* We need to use regsup calls... */ /* ...for now we don't need the key handle or */ /* the subkey, all we need is the value to lookup. */ if (regsupSetValue((char *)pstrValue, pbData, dwDataSize) == DSP_SOK) status = DSP_SOK; else status = DSP_EFAIL; return status; }