├── .gitattributes
├── .gitignore
├── Images
└── Plugin.EnterPSSession.jpg
├── Plugin.EnterPSSession
├── Class1.cs
├── Plugin.EnterPSSession.csproj
├── Plugin.EnterPSSession.sln
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
└── Resources
│ ├── PowerShell5-32.png
│ └── PowerShell_5.0_icon.png
├── Plugin.Sample
├── Class1.cs
├── Plugin.Sample.csproj
├── Plugin.Sample.sln
└── Properties
│ └── AssemblyInfo.cs
└── readme.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | #################
2 | ## Eclipse
3 | #################
4 |
5 | *.pydevproject
6 | .project
7 | .metadata
8 | bin/
9 | tmp/
10 | *.tmp
11 | *.bak
12 | *.swp
13 | *~.nib
14 | local.properties
15 | .classpath
16 | .settings/
17 | .loadpath
18 |
19 | # External tool builders
20 | .externalToolBuilders/
21 |
22 | # Locally stored "Eclipse launch configurations"
23 | *.launch
24 |
25 | # CDT-specific
26 | .cproject
27 |
28 | # PDT-specific
29 | .buildpath
30 |
31 |
32 | #################
33 | ## Visual Studio
34 | #################
35 |
36 | ## Ignore Visual Studio temporary files, build results, and
37 | ## files generated by popular Visual Studio add-ons.
38 |
39 | # User-specific files
40 | *.suo
41 | *.user
42 | *.sln.docstates
43 |
44 | # Build results
45 |
46 | [Dd]ebug/
47 | [Rr]elease/
48 | x64/
49 | build/
50 | [Bb]in/
51 | [Oo]bj/
52 |
53 | # MSTest test Results
54 | [Tt]est[Rr]esult*/
55 | [Bb]uild[Ll]og.*
56 |
57 | *_i.c
58 | *_p.c
59 | *.ilk
60 | *.meta
61 | *.obj
62 | *.pch
63 | *.pdb
64 | *.pgc
65 | *.pgd
66 | *.rsp
67 | *.sbr
68 | *.tlb
69 | *.tli
70 | *.tlh
71 | *.tmp
72 | *.tmp_proj
73 | *.log
74 | *.vspscc
75 | *.vssscc
76 | .builds
77 | *.pidb
78 | *.log
79 | *.scc
80 |
81 | # Visual C++ cache files
82 | ipch/
83 | *.aps
84 | *.ncb
85 | *.opensdf
86 | *.sdf
87 | *.cachefile
88 |
89 | # Visual Studio profiler
90 | *.psess
91 | *.vsp
92 | *.vspx
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 |
101 | # TeamCity is a build add-in
102 | _TeamCity*
103 |
104 | # DotCover is a Code Coverage Tool
105 | *.dotCover
106 |
107 | # NCrunch
108 | *.ncrunch*
109 | .*crunch*.local.xml
110 |
111 | # Installshield output folder
112 | [Ee]xpress/
113 |
114 | # DocProject is a documentation generator add-in
115 | DocProject/buildhelp/
116 | DocProject/Help/*.HxT
117 | DocProject/Help/*.HxC
118 | DocProject/Help/*.hhc
119 | DocProject/Help/*.hhk
120 | DocProject/Help/*.hhp
121 | DocProject/Help/Html2
122 | DocProject/Help/html
123 |
124 | # Click-Once directory
125 | publish/
126 |
127 | # Publish Web Output
128 | *.Publish.xml
129 | *.pubxml
130 | *.publishproj
131 |
132 | # NuGet Packages Directory
133 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
134 | #packages/
135 |
136 | # Windows Azure Build Output
137 | csx
138 | *.build.csdef
139 |
140 | # Windows Store app package directory
141 | AppPackages/
142 |
143 | # Others
144 | sql/
145 | *.Cache
146 | ClientBin/
147 | [Ss]tyle[Cc]op.*
148 | ~$*
149 | *~
150 | *.dbmdl
151 | *.[Pp]ublish.xml
152 | *.pfx
153 | *.publishsettings
154 |
155 | # RIA/Silverlight projects
156 | Generated_Code/
157 |
158 | # Backup & report files from converting an old project file to a newer
159 | # Visual Studio version. Backup files are not needed, because we have git ;-)
160 | _UpgradeReport_Files/
161 | Backup*/
162 | UpgradeLog*.XML
163 | UpgradeLog*.htm
164 |
165 | # SQL Server files
166 | App_Data/*.mdf
167 | App_Data/*.ldf
168 |
169 | #############
170 | ## Windows detritus
171 | #############
172 |
173 | # Windows image file caches
174 | Thumbs.db
175 | ehthumbs.db
176 |
177 | # Folder config file
178 | Desktop.ini
179 |
180 | # Recycle Bin used on file shares
181 | $RECYCLE.BIN/
182 |
183 | # Mac crap
184 | .DS_Store
185 |
186 |
187 | #############
188 | ## Python
189 | #############
190 |
191 | *.py[cod]
192 |
193 | # Packages
194 | *.egg
195 | *.egg-info
196 | dist/
197 | build/
198 | eggs/
199 | parts/
200 | var/
201 | sdist/
202 | develop-eggs/
203 | .installed.cfg
204 |
205 | # Installer logs
206 | pip-log.txt
207 |
208 | # Unit test / coverage reports
209 | .coverage
210 | .tox
211 |
212 | #Translations
213 | *.mo
214 |
215 | #Mr Developer
216 | .mr.developer.cfg
217 |
--------------------------------------------------------------------------------
/Images/Plugin.EnterPSSession.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tadas/RDCManPlugins/2a79fd855301fccf8fae51ee39e972aab9ee5a5f/Images/Plugin.EnterPSSession.jpg
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Class1.cs:
--------------------------------------------------------------------------------
1 | using RdcMan;
2 | using System.ComponentModel.Composition;
3 | using System.Xml;
4 | using System.Windows.Forms;
5 | using System;
6 |
7 | namespace Plugin.EnterPSSession
8 | {
9 | [Export(typeof(IPlugin))]
10 | public class PluginEnterPSSession : IPlugin
11 | {
12 | private string TargetHost;
13 |
14 | public void OnContextMenu(System.Windows.Forms.ContextMenuStrip contextMenuStrip, RdcTreeNode node)
15 | {
16 | if ((node as GroupBase) == null)
17 | {
18 | if ((node as ServerBase) != null)
19 | {
20 | this.TargetHost = (node as ServerBase).ServerName;
21 | ToolStripMenuItem NewMenuItem = new DelegateMenuItem("Enter-PSSession", MenuNames.None, () => this.EnterPSSession());
22 | NewMenuItem.Image = Properties.Resources.PowerShell5_32;
23 |
24 | contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, NewMenuItem);
25 | contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, new ToolStripSeparator());
26 | }
27 | }
28 | }
29 |
30 | public void OnDockServer(ServerBase server)
31 | {
32 | }
33 |
34 | public void OnUndockServer(IUndockedServerForm form)
35 | {
36 | }
37 |
38 | public void PostLoad(IPluginContext context)
39 | {
40 | }
41 |
42 | public void PreLoad(IPluginContext context, XmlNode xmlNode)
43 | {
44 | }
45 |
46 | public XmlNode SaveSettings()
47 | {
48 | return null;
49 | }
50 |
51 | public void Shutdown()
52 | {
53 | }
54 |
55 | public void EnterPSSession()
56 | {
57 | string PSpath = System.IO.Path.Combine(Environment.SystemDirectory, "WindowsPowerShell\\v1.0\\powershell.exe");
58 | string Arguments = "-NoLogo -NoExit Enter-PSSession " + this.TargetHost;
59 |
60 | //MessageBox.Show(PSpath + " " + Arguments, "Starting PSSession", MessageBoxButtons.OK, MessageBoxIcon.Information);
61 | System.Diagnostics.Process.Start(PSpath, Arguments);
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Plugin.EnterPSSession.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {D7D77224-A8EE-4F55-926F-577F5D696A4B}
8 | Library
9 | Properties
10 | Plugin.EnterPSSession
11 | Plugin.EnterPSSession
12 | v4.0
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | True
52 | True
53 | Resources.resx
54 |
55 |
56 |
57 |
58 | ResXFileCodeGenerator
59 | Resources.Designer.cs
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
76 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Plugin.EnterPSSession.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Plugin.EnterPSSession", "Plugin.EnterPSSession.csproj", "{D7D77224-A8EE-4F55-926F-577F5D696A4B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {D7D77224-A8EE-4F55-926F-577F5D696A4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {D7D77224-A8EE-4F55-926F-577F5D696A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {D7D77224-A8EE-4F55-926F-577F5D696A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {D7D77224-A8EE-4F55-926F-577F5D696A4B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Plugin.EnterPSSession")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Plugin.EnterPSSession")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("d7d77224-a8ee-4f55-926f-577f5d696a4b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Plugin.EnterPSSession.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Plugin.EnterPSSession.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Looks up a localized resource of type System.Drawing.Bitmap.
65 | ///
66 | internal static System.Drawing.Bitmap PowerShell_5_0_icon {
67 | get {
68 | object obj = ResourceManager.GetObject("PowerShell_5_0_icon", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// Looks up a localized resource of type System.Drawing.Bitmap.
75 | ///
76 | internal static System.Drawing.Bitmap PowerShell5_32 {
77 | get {
78 | object obj = ResourceManager.GetObject("PowerShell5_32", resourceCulture);
79 | return ((System.Drawing.Bitmap)(obj));
80 | }
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\Resources\PowerShell5-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
123 |
124 |
125 | ..\Resources\PowerShell_5.0_icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
126 |
127 |
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Resources/PowerShell5-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tadas/RDCManPlugins/2a79fd855301fccf8fae51ee39e972aab9ee5a5f/Plugin.EnterPSSession/Resources/PowerShell5-32.png
--------------------------------------------------------------------------------
/Plugin.EnterPSSession/Resources/PowerShell_5.0_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tadas/RDCManPlugins/2a79fd855301fccf8fae51ee39e972aab9ee5a5f/Plugin.EnterPSSession/Resources/PowerShell_5.0_icon.png
--------------------------------------------------------------------------------
/Plugin.Sample/Class1.cs:
--------------------------------------------------------------------------------
1 | using RdcMan;
2 | using System.Windows.Forms;
3 | using System.Xml;
4 | using System.ComponentModel.Composition;
5 |
6 | namespace Plugin.Sample
7 | {
8 | [Export(typeof(IPlugin))]
9 | public class PluginSample : IPlugin
10 | {
11 | public void OnContextMenu(System.Windows.Forms.ContextMenuStrip contextMenuStrip, RdcTreeNode node)
12 | {
13 | MessageBox.Show("OnContextMenu", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
14 | }
15 |
16 | public void OnDockServer(ServerBase server)
17 | {
18 | MessageBox.Show("OnDockServer", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
19 | }
20 |
21 | public void OnUndockServer(IUndockedServerForm form)
22 | {
23 | MessageBox.Show("OnUndockServer", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
24 | }
25 |
26 | public void PostLoad(IPluginContext context)
27 | {
28 | MessageBox.Show("PostLoad", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
29 | }
30 |
31 | public void PreLoad(IPluginContext context, XmlNode xmlNode)
32 | {
33 | MessageBox.Show("PreLoad", "Plugin.Sample event", MessageBoxButtons.OK ,MessageBoxIcon.Information);
34 | }
35 |
36 | public XmlNode SaveSettings()
37 | {
38 | MessageBox.Show("SaveSettings", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
39 | return null;
40 | }
41 |
42 | public void Shutdown()
43 | {
44 | MessageBox.Show("Shutdown", "Plugin.Sample event", MessageBoxButtons.OK, MessageBoxIcon.Information);
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Plugin.Sample/Plugin.Sample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {0959BCA8-6ABC-4F11-915A-D2A36392EFF9}
8 | Library
9 | Properties
10 | Plugin.Sample
11 | Plugin.Sample
12 | v4.0
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
58 |
--------------------------------------------------------------------------------
/Plugin.Sample/Plugin.Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Plugin.Sample", "Plugin.Sample.csproj", "{0959BCA8-6ABC-4F11-915A-D2A36392EFF9}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {0959BCA8-6ABC-4F11-915A-D2A36392EFF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {0959BCA8-6ABC-4F11-915A-D2A36392EFF9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {0959BCA8-6ABC-4F11-915A-D2A36392EFF9}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {0959BCA8-6ABC-4F11-915A-D2A36392EFF9}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Plugin.Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Plugin.Sample")]
9 | [assembly: AssemblyDescription("Remote Desktop Connection Manager sample plugin")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Plugin.Sample")]
13 | [assembly: AssemblyCopyright("")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("0959bca8-6abc-4f11-915a-d2a36392eff9")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # Plugins for Remote Desktop Connection Manager #
2 |
3 | Remote Desktop Connection Manager 2.7 (maybe earlier?) contains undocumented support for plugins. This is an attempt to document this functionality.
4 |
5 | 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.
6 |
7 | ## Loading ##
8 |
9 | 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`
10 |
11 | ## IPlugin interface ##
12 |
13 | Plugins implement the `IPlugin` interface which has these callbacks:
14 | - OnContextMenu - called when the user right clicks a server node in the tree
15 | - OnDockServer - ...
16 | - OnUndockServer - ...
17 | - PostLoad - called after plugins and the connection tree is loaded
18 | - PreLoad - called while the plugins are loading
19 | - SaveSettings - user clicked OK in the Options dialog
20 | - Shutdown - RDCMan is shutting down
21 |
22 | ## Plugin.Sample ##
23 | A plugin skeleton. Place the compiled dll in the same folder as RDCMan.exe
24 |
25 | ## Plugin.EnterPSSession ##
26 | 
--------------------------------------------------------------------------------