Removed references to advapi32 registry functions from some of the