def list_keys(path: str, hive: int = winreg.HKEY_CURRENT_USER) -> list[str]:
        """
        Returns a list of all the keys at a given registry path.
        """

        open_key = winreg.OpenKey(hive, path)
        key_amt = winreg.QueryInfoKey(open_key)[0]
        keys = []

        for count in range(key_amt):
            subkey = winreg.EnumKey(open_key, count)
            keys.append(subkey)

        return keys

        Returns a list of all the keys at a given registry path.
        
context_menu/windows_menus.py