Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OpenProccess Failure Pin
Hamid_RT8-Jul-07 19:32
Hamid_RT8-Jul-07 19:32 
GeneralRe: OpenProccess Failure Pin
Jebus898-Jul-07 22:14
Jebus898-Jul-07 22:14 
GeneralRe: OpenProccess Failure Pin
DevMentor.org12-Jul-07 9:42
DevMentor.org12-Jul-07 9:42 
QuestionDeclaring classes to compiler before declarations Pin
irrdev8-Jul-07 9:22
irrdev8-Jul-07 9:22 
AnswerRe: Declaring classes to compiler before declarations Pin
Christian Graus8-Jul-07 9:27
protectorChristian Graus8-Jul-07 9:27 
GeneralRe: Declaring classes to compiler before declarations Pin
irrdev8-Jul-07 10:11
irrdev8-Jul-07 10:11 
AnswerRe: Declaring classes to compiler before declarations Pin
Michael Dunn8-Jul-07 10:18
sitebuilderMichael Dunn8-Jul-07 10:18 
QuestionGetting key hierarchy from HKEY... Pin
dontknowitall8-Jul-07 9:02
dontknowitall8-Jul-07 9:02 
Given a HKEY, can the root and subkey hierarchy be determined? I tried using RegQueryInfoKey() using the lpClass parameter in the hope that it would work but it doesn't.

<br />
LPTSTR TempData[4096];<br />
DWORD TempSize = 4096;<br />
<br />
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows", 0, GENERIC_READ, &TempKey);<br />
RegQueryInfoKey(TempKey, TempData, &TempSize, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);<br />


None of the other registry access functions seem like what I need. I want to be able to take a HKEY as input and generate a string such as "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows" as output.

BTW, what is the lpClass parameter good for? Every HKEY I've tried causes it to return zero bytes of data (TempSize == 0). The function always returns ERROR_SUCCESS.
AnswerRe: Getting key hierarchy from HKEY... Pin
Hamid_RT8-Jul-07 19:48
Hamid_RT8-Jul-07 19:48 
QuestionLoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 8:37
vegito6168-Jul-07 8:37 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery8-Jul-07 9:03
Mark Salsbery8-Jul-07 9:03 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
dontknowitall8-Jul-07 9:10
dontknowitall8-Jul-07 9:10 
QuestionRe: LoadLibrary and GetProcAddress Help Pin
Hamid_RT8-Jul-07 19:43
Hamid_RT8-Jul-07 19:43 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 20:10
vegito6168-Jul-07 20:10 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery9-Jul-07 8:43
Mark Salsbery9-Jul-07 8:43 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
vegito6169-Jul-07 23:23
vegito6169-Jul-07 23:23 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery10-Jul-07 5:37
Mark Salsbery10-Jul-07 5:37 
QuestionRedraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 5:53
dkmr8-Jul-07 5:53 
AnswerRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 9:07
Bogdan Apostol8-Jul-07 9:07 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 10:47
dkmr8-Jul-07 10:47 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 10:55
Bogdan Apostol8-Jul-07 10:55 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 11:15
dkmr8-Jul-07 11:15 
AnswerRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 15:17
Bogdan Apostol8-Jul-07 15:17 
QuestionWindbg Pin
tom groezer8-Jul-07 0:08
tom groezer8-Jul-07 0:08 
AnswerRe: Windbg [modified] Pin
mid=57418-Jul-07 0:20
mid=57418-Jul-07 0:20 

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.