def create_moniker(computer, root, path, value=None):
    if root not in REGISTRY_HIVE:
        root = REGISTRY_HIVE.name_from_value(root)
    fullpath = sep.join([root] + path.split(sep))
    if computer:
        moniker = r"\\%s\%s" % (computer, fullpath)
    else:
        moniker = fullpath
    if value:
        return moniker + ":" + value
    else:
        return moniker
Return a valid registry moniker from component parts. Computer
dataset/ETHPy150Open tjguk/winsys/winsys/registry.py/create_moniker