pe_find_constraint_resource() returns a (resource_t *). Probably a pe_find_constraint_tag() then.