468,456 Members | 1,635 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

conversion of String data into Binary data in the registry

I want to store a String value as a Binary data into the registry.
The string value is a name & email address and it has to be stored in hex format.
I am using the following

CString l_strKey = "SOFTWARE\\Microsoft\\Inbox\\LdapInfo";
iSuccess = RegCreateKeyEx(HKEY_LOCAL_MACHINE, l_strKey, 0L,NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey,lpdwDisp);

l_strDWord = "SOFTWARE\\Microsoft\\Inbox\\LdapInfo\\test|test@t est.com";
iSuccess = RegSetValueEx(HKEY_LOCAL_MACHINE\\SOFTWARE\\Micros oft\\Inbox\\LdapInfo, l_strDWord, 0, REG_BINARY, (CONST BYTE*) &dwDisp, sizeof(DWORD));

can anyone please help. need a speedy solution. :confused:

thanks in advance.

shankar
Jul 11 '06 #1
0 1339

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by bowsayge | last post: by
15 posts views Thread by C# Learner | last post: by
8 posts views Thread by Saradhi | last post: by
2 posts views Thread by Chris Millar | last post: by
15 posts views Thread by Peter Afonin | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.