Article View: borland.public.cppbuilder.nativeapi
Article #12276FirstTimeWindowsInstalled.
From: Safari
Date: Wed, 10 Dec 2003 15:13
Date: Wed, 10 Dec 2003 15:13
17 lines
1273 bytes
1273 bytes
Hello to all,
How can i read FirstTimeWindowsInstalled from Registry?
void __fastcall TMain::Button1Click(TObject *Sender)
{
TRegistry *Regis = new TRegistry.Create;
Regis->RootKey = HKEY_LOCAL_MACHINE;
Regis->OpenKey("\\Software\\Microsoft\\Windows NT\\CurrentVersion",
false);
int Value = Regis->ReadInteger("InstallDate");
// Or
// AnsiString Value = IntToHex(Regis->ReadInteger("InstallDate"), 1);
...
}
Thanks,
Safari
Technical Details
Message-ID:
<3fdc4d66@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4bc4a0b3c60109c0,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-14 03:52:10 PST From: "Safari" <Safari@alloymail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: FirstTimeWindowsInstalled. Date: Wed, 10 Dec 2003 18:43:54 +0330 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 194.225.63.173 Message-ID: <3fdc4d66@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071402342 194.225.63.173 (14 Dec 2003 03:45:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail