Mimic the 'Take ownership' function of PDMW

Does anyone know how I can mimic the 'Take ownership' function?  essentially I want to fire the command from code.  If I track the CommandOpenPreNotify event I see that Command 2120 is issued when I select File>Take Ownership.

any thoughts?

Jason

SolidworksApi macros