Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.19 KB

readme.md

File metadata and controls

26 lines (18 loc) · 1.19 KB

Plugins for Remote Desktop Connection Manager

Remote Desktop Connection Manager 2.7 (maybe earlier?) contains undocumented support for plugins. This is an attempt to document this functionality.

Plugins are C# dlls (.NET 4.0?) which export a class implementing IPlugin interface. Add C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe to your project references.

Loading

For a plugin to be loaded the dll must be placed in the same folder as RDCMan.exe and it must be called Plugin.*.dll. For more info see RdcMan.Program.InstantiatePlugins() inside of RDCMan.exe

IPlugin interface

Plugins implement the IPlugin interface which has these callbacks:

  • OnContextMenu - called when the user right clicks a server node in the tree
  • OnDockServer - ...
  • OnUndockServer - ...
  • PostLoad - called after plugins and the connection tree is loaded
  • PreLoad - called while the plugins are loading
  • SaveSettings - user clicked OK in the Options dialog
  • Shutdown - RDCMan is shutting down

Plugin.Sample

A plugin skeleton. Place the compiled dll in the same folder as RDCMan.exe

Plugin.EnterPSSession

Screenshot