SetRegistryValue method


Syntax

Invoke SetRegistryValue, hKey, lpszSubKey, lpszValueName, lpszValue

Function

Sets the specified named value from the specified registry subkey.

Parameters

hKey

Handle to one of the following predefined keys:

ecClassesRoot
ecCurrentUser
ecLocalMachine
ecUsers
ecPerformanceData
ecCurrentConfig
ecDynData

lpszSubKey

Pointer to the effective address of a null-terminated string that names the path of the subkey containing the named value to be set.

lpszValueName

Pointer to the effective address of a null-terminated string that names the named value to be set.

lpszValue

Pointer to the effective address of a null-terminated string containing the value to be set.

Return value

Eax returns TRUE if successfull, or FALSE if not.


REMARKS: If the named value especified by lpszValueName does not exist, the method creates a named value with the specified name and sets it to the value specified by lpszValue.