Saturday, June 30, 2007

Read key string from registry c++ win32

LPTSTR DStudioRegistry::GetStringValue(HKEY hKey, LPCWSTR key, LPCWSTR string)
DWORD dwType, dwSize;
HKEY hSubKey;
KString temp;
LPTSTR result;
BYTE buff[512];
if (RegOpenKeyEx(hKey, key, NULL, KEY_ALL_ACCESS ,&hSubKey)== ERROR_SUCCESS)
if (RegQueryValueExW(hSubKey, string , NULL, &dwType, buff, &dwSize) == ERROR_SUCCESS)
KString str( (LPCTSTR)buff);

result = str.m_sString;
return result;


Anonymous said...

Hi There I'd love to thank you for such a great quality site!
I was sure this is a nice way to make my first post!

Hilary Driscoll
if you're ever bored check out my site!
[url=]hanukkah Party Supplies[/url].

Anonymous said...

Bonjour I'd love to congratulate you for such a terrific made site!
Just thought this would be a nice way to make my first post!
When trying to produce capital it is usually a smart belief to start a savings or investing game plan as soon in life as imaginable. But don't worry if you have not thought of saving your assets until later on in life. With the help of honest work, that is investigating the best investment vehicles for your cash you can slowly but surely increase your wealth so that it numbers to a huge amount by the period you hope to retire. Inspect all of the applicable asset classes from stocks to real estate as investments for your money. A researched and diversified portfolio of investments in a wide range of asset classes can help your money get bigger through the years.

-Christian Sokolowski
[url=]currency exchange rates[/url]

Anonymous said...

top [url=]uk bonus casino[/url] check the latest [url=]casino games[/url] autonomous no set aside hand-out at the chief [url=]