Use only Ansi APIs for cleaning up the registry.