The record industry won a victory Thursday against illegal online music swapping in Hong Kong as a court ordered four Internet service providers to reveal the names of 22 people who uploaded copyrighted music onto Web sites.

The move — sought by seven record labels, including Universal, Sony BMG and Warner Music — paved the way for legal action against the 22 suspected offenders to seek compensation.