Recent

Author Topic: ulternative to windows registry  (Read 3848 times)

vini7

  • New Member
  • *
  • Posts: 13
ulternative to windows registry
« on: November 06, 2007, 11:39:00 am »
I want to port the application which is configuring PC for UDP configuration.

Fot that in delphi code MyReg.OpenKey  and MyReg.CloseKey is used for getting 1) computer name 2) work group 3) ip address4) ip mask etc.

I want to port this application in lazarus.

So does linux uses registry??

how to get these data and which functions I shld use to configure UDP settings???


Regards

Vini7

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
RE: ulternative to windows registry
« Reply #1 on: November 06, 2007, 01:25:05 pm »
No, Linux does not use the windows registry (Surprise ;-)
For getting some of the values you mentioned, have a look a netdb.pp.
In the netdb folder of you fpc installation, there are some examples like testhosts.pp.