def METHOD_NAME(ql: Qiling, address: int, params):
    directory_id = params["csidl"]
    dst = params["pszPath"]
    if directory_id == CSIDL_COMMON_APPDATA:
        path = ntpath.join(ql.os.userprofile, "AppData\\")
        # We always create the directory
        appdata_dir = path.split("C:\\")[1].replace("\\", "/")
        ql.log.debug("dir path: %s" % path)
        path_emulated = os.path.join(ql.rootfs, appdata_dir)
        ql.log.debug("emulated path: %s" % path_emulated)
        ql.mem.write(dst, (path + "\x00").encode("utf-16le"))
        # FIXME: Somehow winodws path is wrong
        if not os.path.exists(path_emulated):
            try:
                os.makedirs(path_emulated, 0o755)
            except OSError:
                ql.log.debug("os.makedirs failed")
            else:
                ql.log.debug("os.makedirs completed")
    else:
        raise QlErrorNotImplemented("API not implemented")
    return 1