I just came across this blog entry, talking about managed access to iTunes. If you follow the links from that page, there are some more code samples.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.