RegDeleteTree is not avalible on win2k winXp. So use RegDelnode from MSDN
http://msdn.microsoft.com/en-us/library/ms724235%28VS.85%29.aspx