The interface's methods use a cookie to represent the client requesting the notification. You use the cookie in the call to the UnadviseRunningDocTableEvents method when the package no longer wants to listen to RDT events.

You may want to implement additional interfaces for richer event notification:

To receive notice before the first lock on a document is applied (giving you a chance to load the document), implement the IVsRunningDocTableEvents4 interface.

Notes to Implementers

Implement this interface in your packages to receive events about the state of documents in the RDT. Note that this interface derives from the IVsRunningDocTableEvents interface and must implement all methods on that interface as well.