By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,302 Members | 1,453 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,302 IT Pros & Developers. It's quick & easy.

conversion of String data into Binary data in the registry

P: 1
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.