Link to home
Start Free TrialLog in
Avatar of fragen
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\SOFTWARE\Classes\PROTOCOLS\Handler\mailto]
"CLSID"="{3050f3DA-98B5-11CF-BB82-00AA00BDCE0B}"
 
maybe somebody can send me an example
thanks very much
fragen
Avatar of AzraSound
AzraSound
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of Ark
Ark
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of caraf_g
caraf_g

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.