Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReading USB ports Pin
satsumatable16-May-06 19:56
satsumatable16-May-06 19:56 
AnswerRe: Reading USB ports Pin
Cedric Moonen16-May-06 20:29
Cedric Moonen16-May-06 20:29 
Questionhelp me Pin
ramyasangeet16-May-06 19:52
ramyasangeet16-May-06 19:52 
GeneralRe: help me Pin
Maxwell Chen16-May-06 20:21
Maxwell Chen16-May-06 20:21 
GeneralRe: help me Pin
ramyasangeet16-May-06 21:19
ramyasangeet16-May-06 21:19 
GeneralRe: help me Pin
Maxwell Chen16-May-06 21:49
Maxwell Chen16-May-06 21:49 
AnswerRe: help me Pin
Hamid_RT17-May-06 1:37
Hamid_RT17-May-06 1:37 
Questionwindows regisrty Pin
iLL eFFect16-May-06 19:33
iLL eFFect16-May-06 19:33 
i have mentioned my prgoram under and i am tryin to read the path where the acrobat reader is installed from the registry. though RegQueryInfoKey is returnin a positive result for the key, but when i query for Value 'Path' in the key the return value(szProductType) is empty


HKEY hKey = NULL;
LONG lRet = NULL;
char szProductType[1024] = { '\0' };
DWORD dwBufLen=1024;
LPDWORD Path;
int size = 8192;
LONG appExist;

TCHAR regPath[] = TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppPaths\\AcroRd32.exe");

appExist = RegQueryInfoKey(HKEY_LOCAL_MACHINE,NULL,NULL,NULL,NULL,NULL,NULL,Path,NULL,NULL,NULL,NULL);

lRet = RegOpenKeyEx( HKEY_LOCAL_MACHINE, (LPCWSTR)regPath, 0, KEY_ALL_ACCESS, &hKey );
lRet = RegQueryValueEx( hKey, (LPCTSTR) "Path", NULL, NULL, (LPBYTE) szProductType, &dwBufLen);
AnswerRe: windows regisrty Pin
Michael Dunn16-May-06 21:06
sitebuilderMichael Dunn16-May-06 21:06 
QuestionContext menu for Recycle Bin Pin
rajeevktripathi16-May-06 19:31
rajeevktripathi16-May-06 19:31 
QuestionTransperent Icon BackGround Pin
Scorpio16-May-06 19:30
Scorpio16-May-06 19:30 
AnswerRe: Transperent Icon BackGround Pin
iLL eFFect16-May-06 19:48
iLL eFFect16-May-06 19:48 
GeneralRe: Transperent Icon BackGround Pin
Scorpio16-May-06 20:09
Scorpio16-May-06 20:09 
GeneralRe: Transperent Icon BackGround Pin
Steve Echols16-May-06 20:24
Steve Echols16-May-06 20:24 
GeneralRe: Transperent Icon BackGround Pin
Scorpio16-May-06 20:36
Scorpio16-May-06 20:36 
GeneralRe: Transperent Icon BackGround Pin
Steve Echols16-May-06 20:45
Steve Echols16-May-06 20:45 
GeneralRe: Transperent Icon BackGround Pin
Scorpio16-May-06 20:55
Scorpio16-May-06 20:55 
AnswerRe: Transperent Icon BackGround Pin
Anilkumar K V16-May-06 22:09
Anilkumar K V16-May-06 22:09 
Question[Message Deleted] Pin
ppatel56716-May-06 19:05
ppatel56716-May-06 19:05 
AnswerRe: confused about the syntax in the header file Pin
Nibu babu thomas16-May-06 19:12
Nibu babu thomas16-May-06 19:12 
AnswerRe: confused about the syntax in the header file Pin
grigsoft16-May-06 19:12
grigsoft16-May-06 19:12 
AnswerRe: confused about the syntax in the header file Pin
Stephen Hewitt16-May-06 20:43
Stephen Hewitt16-May-06 20:43 
General[Message Deleted] Pin
ppatel56716-May-06 19:52
ppatel56716-May-06 19:52 
GeneralRe: confused about the syntax in the header file Pin
grigsoft16-May-06 20:22
grigsoft16-May-06 20:22 
GeneralRe: confused about the syntax in the header file Pin
Stephen Hewitt16-May-06 20:32
Stephen Hewitt16-May-06 20:32 

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.