fragen
asked on
RegSetValueEx
i want to create a key in the registry.
i have tried the following:
lRet = RegSetValueEx(hKey, "test", 0, 2, 0, 0)
the problem is, that i don't understand the syntax:
LONG RegSetValueEx(
HKEY hKey, // handle to key
LPCTSTR lpValueName, // value name
DWORD Reserved, // reserved
DWORD dwType, // value type
CONST BYTE *lpData, // value data
DWORD cbData // size of value data
);
i want to create the complete key with the entry clsid with the value:
[HKEY_LOCAL_MACHINE\SOFTWA RE\Classes \PROTOCOLS \Handler\m ailto]
"CLSID"="{3050f3DA-98B5-11 CF-BB82-00 AA00BDCE0B }"
maybe somebody can send me an example
thanks very much
fragen
i have tried the following:
lRet = RegSetValueEx(hKey, "test", 0, 2, 0, 0)
the problem is, that i don't understand the syntax:
LONG RegSetValueEx(
HKEY hKey, // handle to key
LPCTSTR lpValueName, // value name
DWORD Reserved, // reserved
DWORD dwType, // value type
CONST BYTE *lpData, // value data
DWORD cbData // size of value data
);
i want to create the complete key with the entry clsid with the value:
[HKEY_LOCAL_MACHINE\SOFTWA
"CLSID"="{3050f3DA-98B5-11
maybe somebody can send me an example
thanks very much
fragen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi
You can find more about working with registry using windows scripting host at http://support.microsoft.com/support/kb/articles/Q244/6/75.ASP
Cheers
You can find more about working with registry using windows scripting host at http://support.microsoft.com/support/kb/articles/Q244/6/75.ASP
Cheers
Last 3 Grade(s) Given:
A B B
Question Grading Record:
3 / 8
Looks like fragen is good at Fragen but not so good at Antworten.
A B B
Question Grading Record:
3 / 8
Looks like fragen is good at Fragen but not so good at Antworten.
http://www.vbapi.com/ref/r/regsetvalueex.html