There is also an example in the Examples forum.

List Registry Startup Items