Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Capturing mouse events and Cursor Pin
Trollslayer12-Jul-05 11:33
mentorTrollslayer12-Jul-05 11:33 
GeneralRe: I found a solution Pin
Kharfax13-Jul-05 4:57
Kharfax13-Jul-05 4:57 
QuestionHow to Create inbound application using Tapi 3.0 Pin
riyajain12-Jul-05 3:02
riyajain12-Jul-05 3:02 
QuestionHow do I read a particular registry key Pin
Matthew Devine12-Jul-05 2:37
Matthew Devine12-Jul-05 2:37 
AnswerRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 2:59
Jose Lamas Rios12-Jul-05 2:59 
GeneralRe: How do I read a particular registry key Pin
Matthew Devine12-Jul-05 3:47
Matthew Devine12-Jul-05 3:47 
GeneralRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 4:00
Jose Lamas Rios12-Jul-05 4:00 
GeneralRe: How do I read a particular registry key Pin
Matthew Devine12-Jul-05 4:26
Matthew Devine12-Jul-05 4:26 
Yeah that's exactly right, that's what I'm seeing

HKEY hKeyRoot,hKeyNew;
LPCTSTR lpSubKey;
LPTSTR Value;
DWORD retcode;
DWORD Value_type;
DWORD Value_data;
DWORD Value_size;

hKeyRoot = HKEY_CURRENT_USER;
lpSubKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
Value = "ProxyEnable";

retcode = RegOpenKeyEx
(
hKeyRoot,
lpSubKey,
0,
KEY_QUERY_VALUE,
&hKeyNew
);
if (retcode != ERROR_SUCCESS)
MessageBox("Error opening key",_T("NO"));

retcode = RegQueryValueEx
(
hKeyNew, // HKEY (hkey) handle of key to query
Value, // LPSTR (lpValueName) address of name of value to query
NULL, // LPDWORD (lpReserved) reserved
&Value_type, // LPDWORD (lpType) address of buffer for value type
(BYTE *) &Value_data,// LPBYTE (lpData) address of data buffer
&Value_size // LPDWORD (lpcbData) address of data buffer size
);
if (retcode != ERROR_SUCCESS)
MessageBox("Error reading key",_T("NO"));
else
fout<<"Registry Value - "<
GeneralRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 4:41
Jose Lamas Rios12-Jul-05 4:41 
GeneralRe: How do I read a particular registry key Pin
David Crow12-Jul-05 5:16
David Crow12-Jul-05 5:16 
AnswerRe: How do I read a particular registry key Pin
Ravi Bhavnani12-Jul-05 3:01
professionalRavi Bhavnani12-Jul-05 3:01 
QuestionHow to place image in Excel? Pin
Member 95748212-Jul-05 2:12
Member 95748212-Jul-05 2:12 
GeneralINI file processing from memory Pin
_rubinho_12-Jul-05 1:46
_rubinho_12-Jul-05 1:46 
GeneralRe: INI file processing from memory Pin
Indivara12-Jul-05 2:27
professionalIndivara12-Jul-05 2:27 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 3:23
_rubinho_12-Jul-05 3:23 
GeneralRe: INI file processing from memory Pin
David Crow12-Jul-05 5:21
David Crow12-Jul-05 5:21 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 5:39
_rubinho_12-Jul-05 5:39 
GeneralRe: INI file processing from memory Pin
krmed12-Jul-05 6:03
krmed12-Jul-05 6:03 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 6:26
_rubinho_12-Jul-05 6:26 
GeneralRe: INI file processing from memory Pin
Jose Lamas Rios12-Jul-05 7:46
Jose Lamas Rios12-Jul-05 7:46 
GeneralRe: INI file processing from memory Pin
Joe Woodbury13-Jul-05 8:24
professionalJoe Woodbury13-Jul-05 8:24 
GeneralPainting Several Images - not refreshing screen Pin
seq-12-Jul-05 1:41
seq-12-Jul-05 1:41 
GeneralRe: Painting Several Images - not refreshing screen Pin
Jose Lamas Rios12-Jul-05 2:26
Jose Lamas Rios12-Jul-05 2:26 
GeneralRe: Painting Several Images - not refreshing screen Pin
seq-12-Jul-05 10:36
seq-12-Jul-05 10:36 
GeneralRe: Painting Several Images - not refreshing screen Pin
Blake Miller12-Jul-05 5:01
Blake Miller12-Jul-05 5:01 

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.