Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 28-10-2009
Member
 
Join Date: Jul 2009
Posts: 77
How to read the registry before .NET

It is quite common when developing in Windows to get together to make simple things that does not seems be possible. Read the frequency of the processor, read an item in the registry. But with the mechanism for recovering information on the Internet, the techniques of the past are often replaced, obscured by modern techniques.

I think these and other simple solutions but necessity .NET 1 2 3 ... etc. Yes, the solution often takes a few lines, but where the lib that comes with it is 40 MB and even in static, that is nag.

And I wonder how it was time for Windows 95-98 ...

The question brings me post on the registry. I would like to make a simple code that will be intended as a bootstrap, so I designed the 50-200 KB but will read the registry. And so I just wonder how you would do with Windows 98 to play a key.
Reply With Quote
  #2  
Old 28-10-2009
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: How to read the registry before .NET

Before .NET was used functions of the Win32 API, written mostly in C, including all click of functions RegXXX

So to play a key under Windows 98:
RegOpenKeyEx - to open the key
RegGetValue - to read
RegCloseKey - to close the key
Reply With Quote
  #3  
Old 28-10-2009
Member
 
Join Date: Jul 2009
Posts: 77
Re: How to read the registry before .NET

Thank you very much for your response, I do not know what to look for on MSDN. The MSDN doc: http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx. Windows XP shows minimum version, I wonder if they update their docs ignoring backward compatibility. You say it was compatible with Windows 98?
Reply With Quote
  #4  
Old 28-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: How to read the registry before .NET

RegOpenKey, RegGetValue and RegCloseKey existed since Windows 95. RegOpenKeyEx came later. I do not know when exactly, but it works on Windows 98. RegOpenKeyEx function basically opens the specified key.

Syntax:

Quote:
LONG RegOpenKeyEx(
HKEY hKey,
LPCWSTR lpSubKey,
DWORD ulOptions,
REGSAM samDesired,
PHKEY phkResult
);
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #5  
Old 29-10-2009
taiphanmem
 
Posts: n/a
Re: How to read the registry before .NET

CLICK HERE
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to read the registry before .NET"
Thread Thread Starter Forum Replies Last Post
Stop:c0000218{Registry File Failure}registry cannot load the hive Nadhe Windows XP Support 6 19-04-2012 07:37 PM
Using vb/java scripts how to read registry Vaibhav S Software Development 3 07-02-2009 08:47 PM
Read registry on remote computer (with alternate credentials) Jo Windows Server Help 2 27-09-2008 05:02 PM
Cause of "Error: Registry Recovery. One of the files containing the system's Registry data had to be recovered maratha Windows XP Support 3 18-07-2008 12:09 PM
how can I write a script to read a remote registry - using different credentials? Mark Windows Server Help 3 16-01-2008 10:33 PM


All times are GMT +5.5. The time now is 09:41 PM.