Hi, I already found the problem with OpenKey. http://www.miraclec.com/list_archives/lazarus/2001-01/msg00337.html I changed PHandle: PHKEY; by Handle: HKEY; and now everything works well. A little strange, no? -- |-----------------------------| | Luis R. Hilario | | http://www.luisdigital.2y.net | |-----------------------------|