hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

KarachiKing555
hi,
i cant edit manipulate registry in delphi7 !! even using REGISTRY in uses !

i get registry.dcu not found error in console !! i searched for registry.dcu and found it in \LIB folder i think ! wat should i doo to get it work ! some1 adviced me to re-install delphi i did twice still no luck !!

n any1 knows a toutrial or chart which tells u wat to use in USES headers when doing certain job ! thx
TedOb1
USES registry

http://delphi.about.com/library/weekly/aa011299.htm


eXeco
The registry DCU is a large one.

If you are concern with the Size of your exe you should use the Win32 Reg API.

For example here is a Delphi procedure to write a Key with that APIs :

CODE
procedure WriteRegString(Root :HKey; thepath, thkey, thevalue :string);
var HK :HKEY; DW: Dword;

   begin

   RegOpenKey(Root,PChar(thepath),HK);

   if HK = 0 then
        RegCreateKeyEx(Root,PChar(thepath),0,nil,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,nil,HK,@DW);


    RegSetValueEx(HK,PChar(thekey),0, REG_SZ, Pchar(thevalue),Length(thevalue));

    RegCloseKey(HK);

   end;


You could write the same type of procedure to delete or read etc etc (and it will save you undreds of bits smile.gif ).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.