Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC++ related question Pin
John-theKing2-Apr-03 19:45
John-theKing2-Apr-03 19:45 
GeneralRe: C++ related question Pin
Taka Muraoka2-Apr-03 19:59
Taka Muraoka2-Apr-03 19:59 
GeneralRe: C++ related question Pin
Alvaro Mendez3-Apr-03 5:40
Alvaro Mendez3-Apr-03 5:40 
QuestionSystem.XML – alike class library for Visual C++ 6.0 ? Pin
Serge Krynine2-Apr-03 19:43
Serge Krynine2-Apr-03 19:43 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Pavel Klocek2-Apr-03 20:18
Pavel Klocek2-Apr-03 20:18 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Ravi Bhavnani3-Apr-03 4:23
professionalRavi Bhavnani3-Apr-03 4:23 
Generalsplitter window Pin
getsammy2-Apr-03 17:16
getsammy2-Apr-03 17:16 
GeneralRegistry manipulation Pin
J.B.2-Apr-03 15:32
J.B.2-Apr-03 15:32 
Hi guys,
first of all, I'd like to say hi. It is my first time here.

I am having a task to write a program on MS V++ to open/close/query some information about hardware drivers from registry.

I have managed to find appropriate functions that could come in handy. RegOpenkey();
RegCloseKey();
etc..

My question is regarding to RegOpenKey() specifically.
From MSDN, RegOpenKey is defined as
LONG RegOpenkey(
HKEY hKey,
LPCTSTR lpSubKey,
PHKEY phkResult
);

I am trying open a subkey in a location such as HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCMCIA\WLANCARD\1

I am wondering, if it is allowed to directly open the bottom subkey (\1) of this registry directory string, done as below.

HEKY hKey;
if (RegOpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Enum\PCMCIA\WLANCARD\1", &hKey) == ERROR_SUCCESS);

MessageBox("The registry is open successfullly");

I don't seem to get correct response with the code

Thanks alot

GeneralRe: Registry manipulation Pin
RaajaOfSelf2-Apr-03 16:27
RaajaOfSelf2-Apr-03 16:27 
GeneralRe: Registry manipulation Pin
De Nardis Andrea2-Apr-03 20:52
De Nardis Andrea2-Apr-03 20:52 
QuestionI want to Hook Mouse but failed? Pin
white jungle2-Apr-03 15:30
white jungle2-Apr-03 15:30 
AnswerRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 18:47
Simon.W2-Apr-03 18:47 
GeneralRe: I want to Hook Mouse but failed? Pin
white jungle2-Apr-03 19:25
white jungle2-Apr-03 19:25 
GeneralRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 20:37
Simon.W2-Apr-03 20:37 
GeneralDirectory changing.. and command lines.. Pin
(Steven Hicks)n+12-Apr-03 12:45
(Steven Hicks)n+12-Apr-03 12:45 
Generalsendmessage and CDialog pointer Pin
nss2-Apr-03 12:19
nss2-Apr-03 12:19 
GeneralRe: sendmessage and CDialog pointer Pin
valikac2-Apr-03 12:43
valikac2-Apr-03 12:43 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 12:50
nss2-Apr-03 12:50 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 13:01
Dave Bryant2-Apr-03 13:01 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 13:56
nss2-Apr-03 13:56 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 13:58
Dave Bryant2-Apr-03 13:58 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 14:04
Dave Bryant2-Apr-03 14:04 
GeneralWow! Thanks!!! Pin
ns3-Apr-03 1:22
ns3-Apr-03 1:22 
GeneralRe: Wow! Thanks!!! Pin
Dave Bryant3-Apr-03 8:35
Dave Bryant3-Apr-03 8:35 
GeneralCustom Win32 Button Class Pin
England 2 Turkey 02-Apr-03 10:36
sussEngland 2 Turkey 02-Apr-03 10:36 

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.