The most basic thing i need to know in order to implement my own
sourcesafe addin for VBA in Excel is how to programmatically toggle the
protection on individual modules. SourceSafe does it but I cannot find
any code samples online showing how this is accomplished.

It has to be programmatic so that I can both lock and unlock the module
for editing. Any help would be appreciated.