🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #17049

Visual C++ Registry Question

#17049
From: Breezer
Date: Thu, 24 Feb 2000 00:00
15 lines
1054 bytes
why does following code NOT work under win95, but works fine under NT/2000

HKEY* pKey = new HKEY;
 int Res = RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\Microsoft\\Internet
Explorer\\PageSetup",0,KEY_ALL_ACCESS,pKey);

 unsigned char* Header = new unsigned char[41];
 unsigned char* Footer = new unsigned char[41];
 unsigned long Length1, Length2;
 Res = RegQueryValueEx(*pKey,"Header",NULL,NULL,Header,&Length1);
 Res = RegQueryValueEx(*pKey,"Footer",NULL,NULL,Footer,&Length2);


How can I get the values Header and Footer from the Internet Explorer key
otherwise ?
Technical Details
Message-ID: <893jl0$7h6$5@inf6serv.rug.ac.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,2f622b8c1bb166a,start
X-Google-Attributes: gidfcea4,public
From: "Breezer" <Tim.Musschoot@rug.ac.be>
Subject: Visual C++ Registry Question
Date: 2000/02/24
Message-ID: <893jl0$7h6$5@inf6serv.rug.ac.be>
X-Deja-AN: 589346884
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Organization: University of Ghent, Belgium
X-MSMail-Priority: Normal
Newsgroups: be.comp.programming