Finding XPCOM Contract IDs: components.Classes["THISPART"]
When you need to create or access well-known objects 开发者_开发百科in XPCOM, where do you find their contract IDs?
You also should look at the Mozilla code through http://mxr.mozilla.org to understand how people use interfaces and functions your want to use.
It really depends on the object you are looking for. Generally, the documentation will tell you what the contract ID is. If there's a specific contract ID you are looking for, that'd be an easier to answer question.
精彩评论