def _api_modifier(self, event): """Adds flags field to CLSID and IID instances.""" clsid = guid_name(event["arguments"].get("clsid")) if clsid: event["flags"]["clsid"] = clsid iid = event["arguments"].get("iid") if isinstance(iid, (tuple, list)): event["flags"]["iid"] = [guid_name(x) for x in iid] elif guid_name(iid): event["flags"]["iid"] = guid_name(iid)