include vmm.h
LONG _RegSetValueEx(HKEY hkey, LPTSTR lpszValueName,
DWORD dwReserved, DWORD fdwType, LPBYTE lpbDta, DWORD cbData)
Stores data in the value field of an open registry key; the service can also set additional value and type information for the given key. See the documentation for the Win32 function of the same name for additional information.
ERROR_KEY_DELETED |
ERROR_OUTOFMEMORY |
ERROR_REGISTRY_IO_FAILED |
ERROR_REGISTRY_CORRUPT |
ERROR_BADDB |
HKEY_CLASSES_ROOT |
HKEY_CURRENT_USER |
HKEY_LOCAL_MACHINE |
HKEY_USERS |
REG_BINARY | Binary data in any form. |
REG_SZ | A null-terminated UNICODE or ANSI string. |
If the key specified by lpszSubKey does not exist, this service will create it.
Value lengths are limited by available memory. Long values (more than 2048 bytes) should be stored as files with the filenames stored in the registry.
Of the predefined key values, only HKEY_LOCAL_MACHINE is available to VxDs during initialization time. The entire registry space can only be accessed after VxD initialization is complete.