Hi Guys,
I want to create 'DWORD' type of value in registry. I am using the following command to create the value in registry-
DECLARE Integer RegCreateKey IN Win32API ;
Integer nHKey, String @cSubKey, Integer @nResult
DECLARE Integer RegSetValueEx IN Win32API ;
Integer hKey, String lpszValueName, Integer dwReserved,Integer fdwType, String @lpbData, Integer cbData
#DEFINE HKEY_CURRENT_USER 2147483649
=RegCreateKey(HKEY_CURRENT_USER,"System\Policies",@hKey)
=RegSetValueEx(hKey,"Testing",0,4,"1",10)
=RegCloseKey(hkey)
These commands are creating the DWORD type of value but data part is showing "Invalid DWORD Value".
I want to know how to pass the right DWORD type of value to registry?
Thanks in advance.
Pankaj
Senior Software Engineer,
Infotech Enterprises Limited
Hyderabad, Andhra Pradesh, India.
URL :
I want to create 'DWORD' type of value in registry. I am using the following command to create the value in registry-
DECLARE Integer RegCreateKey IN Win32API ;
Integer nHKey, String @cSubKey, Integer @nResult
DECLARE Integer RegSetValueEx IN Win32API ;
Integer hKey, String lpszValueName, Integer dwReserved,Integer fdwType, String @lpbData, Integer cbData
#DEFINE HKEY_CURRENT_USER 2147483649
=RegCreateKey(HKEY_CURRENT_USER,"System\Policies",@hKey)
=RegSetValueEx(hKey,"Testing",0,4,"1",10)
=RegCloseKey(hkey)
These commands are creating the DWORD type of value but data part is showing "Invalid DWORD Value".
I want to know how to pass the right DWORD type of value to registry?
Thanks in advance.
Pankaj
Senior Software Engineer,
Infotech Enterprises Limited
Hyderabad, Andhra Pradesh, India.
URL :