This function sets the specified information in the registry.
[C++Builder/Visual C++] BOOL
PK3NETSetRegistryValue(long lRegKey, LPCSTR lpszSubKey, LPCSTR
lpszName, LPCSTR lpszIn);
[Delphi] function
PK3NETSetRegistryValue(lRegKey: Longint; lpszSubKey, lpszName,
lpszIn: PAnsiChar): LongBool;
[Visual Basic] Function
PK3NETSetRegistryValue(ByVal lRegKey As Long, ByVal lpszSubKey As
String, ByVal lpszName As String, ByVal lpszIn As String) As
Long
Parameters
Name | Explanation |
lRegKey | 0: HKEY_CLASSES_ROOT 1: HKEY_LOCAL_MACHINE 2: HKEY_CURRENT_USER |
lpszSubKey | The registry subkey |
lpszName | The registry item name |
lpszIn | The data to be set into the item specified by lpszName |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3NETSetRegistryValue function sets the specified information in the registry.
Depending on the value of IRegKey and on the user's permission settings, this function may be unable to set the information into the registry. If user permissions are limited, be sure to set IRegKey to 2 (HKEY_CURRENT_USER).