Ejemplo n.º 1
0
/*
 *  ======== REG_DeleteValue ========
 *  Deletes a registry entry value.  NOTE:  A registry entry value is not the
 *  same as *  a registry key.
 */
DSP_STATUS REG_DeleteValue(IN CONST char *pstrValue)
{
	DSP_STATUS status;
	DBC_Require(strlen(pstrValue) < REG_MAXREGPATHLENGTH);

	SYNC_EnterCS(reglock);
	status = regsupDeleteValue(pstrValue);
	SYNC_LeaveCS(reglock);

	return status;
}
Ejemplo n.º 2
0
/*
 *  ======== REG_DeleteValue ========
 *  Deletes a registry entry value.  NOTE:  A registry entry value is not the
 *  same as *  a registry key.
 */
DSP_STATUS REG_DeleteValue(OPTIONAL IN HANDLE *phKey, IN CONST char *pstrSubkey,
			   IN CONST char *pstrValue)
{
	DSP_STATUS status;
	DBC_Require(pstrSubkey && pstrValue);
	DBC_Require(phKey == NULL);
	DBC_Require(strlen(pstrSubkey) < REG_MAXREGPATHLENGTH);
	DBC_Require(strlen(pstrValue) < REG_MAXREGPATHLENGTH);

	GT_0trace(REG_debugMask, GT_ENTER, "REG_DeleteValue: entered\n");

	/*  Note that we don't use phKey */
	if (regsupDeleteValue(pstrSubkey, pstrValue) == DSP_SOK)
		status = DSP_SOK;
	else
		status = DSP_EFAIL;

	return status;
}