Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process Memory Space Pin
David Crow23-Apr-08 3:51
David Crow23-Apr-08 3:51 
QuestionRegistry key Pin
ftsOne22-Apr-08 19:18
ftsOne22-Apr-08 19:18 
GeneralRe: Registry key Pin
Jhony george22-Apr-08 20:08
Jhony george22-Apr-08 20:08 
GeneralRe: Registry key Pin
ftsOne22-Apr-08 20:24
ftsOne22-Apr-08 20:24 
GeneralRe: Registry key Pin
Jhony george22-Apr-08 20:44
Jhony george22-Apr-08 20:44 
GeneralRe: Registry key Pin
ftsOne22-Apr-08 21:22
ftsOne22-Apr-08 21:22 
GeneralRe: Registry key Pin
Jhony george22-Apr-08 21:29
Jhony george22-Apr-08 21:29 
GeneralRe: Registry key Pin
ftsOne22-Apr-08 21:51
ftsOne22-Apr-08 21:51 
void SearchHive(HKEY hive)
{
HKEY hKey;
DWORD dwIndex = 0;
LONG lRet;
DWORD cbName = IS_KEY_LEN;
TCHAR szSubKeyName[IS_KEY_LEN];

if (::RegOpenKeyEx(hive, NULL, 0, KEY_READ, &hKey) != ERROR_SUCCESS || g_bCancelSearch)
goto Stop;
while (((lRet = ::RegEnumKeyEx(hKey, dwIndex, szSubKeyName, &cbName, NULL,NULL, NULL, NULL)) != ERROR_NO_MORE_ITEMS) && g_bCancelSearch != true)
{
// Do we have a key to open?

if (lRet == ERROR_SUCCESS)
{
/**********************************************
Do Something with the key

hKey is an open HKEY handle returned by ::RegOpenKeyEx
szSubKeyName is the key in string format returned by ::RegEnumKeyEx at dwIndex
usually something like 'SOFTWARE' or 'HARDWARE'

what is the human readable format for hKey
for example:
convertHKEYtoString(hKey) would return something like
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp\MySettings

/*********************************************/
}
dwIndex++;
cbName = IS_KEY_LEN;
}
Stop:
//No more subkeys
::RegCloseKey(hKey);
}
GeneralRe: Registry key Pin
Hamid_RT23-Apr-08 1:14
Hamid_RT23-Apr-08 1:14 
GeneralRe: Registry key Pin
ftsOne23-Apr-08 9:00
ftsOne23-Apr-08 9:00 
GeneralRe: Registry key Pin
David Crow24-Apr-08 8:28
David Crow24-Apr-08 8:28 
General[Message Deleted] Pin
Joe_Wong22-Apr-08 18:52
Joe_Wong22-Apr-08 18:52 
GeneralRe: question about catching drag and drop from window explorer Pin
Hamid_RT23-Apr-08 1:13
Hamid_RT23-Apr-08 1:13 
GeneralI want to design my own file storage format Pin
shanzy22-Apr-08 18:26
shanzy22-Apr-08 18:26 
GeneralRe: I want to design my own file storage format Pin
Cedric Moonen22-Apr-08 20:10
Cedric Moonen22-Apr-08 20:10 
GeneralSymbol Path Pin
ForNow22-Apr-08 17:33
ForNow22-Apr-08 17:33 
GeneralRe: Symbol Path Pin
Naveen22-Apr-08 18:30
Naveen22-Apr-08 18:30 
GeneralRe: Symbol Path Pin
ForNow23-Apr-08 6:54
ForNow23-Apr-08 6:54 
GeneralRe: Symbol Path Pin
Naveen23-Apr-08 14:08
Naveen23-Apr-08 14:08 
GeneralRe: Symbol Path Pin
ForNow23-Apr-08 14:46
ForNow23-Apr-08 14:46 
GeneralEncapsulating enums Pin
Leslie Sanford22-Apr-08 17:06
Leslie Sanford22-Apr-08 17:06 
GeneralRe: Encapsulating enums Pin
Rajkumar R22-Apr-08 18:20
Rajkumar R22-Apr-08 18:20 
GeneralRe: Encapsulating enums Pin
CPallini22-Apr-08 21:12
mveCPallini22-Apr-08 21:12 
QuestionHow to get thread used memory size? Pin
hanlei000000000922-Apr-08 16:10
hanlei000000000922-Apr-08 16:10 
AnswerRe: How to get thread used memory size? Pin
Maximilien22-Apr-08 16:15
Maximilien22-Apr-08 16:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.