X
X
xandr0s2012-05-09 17:19:11
VPN
xandr0s, 2012-05-09 17:19:11

How to create a network connection shortcut using C#?

If you drop a shortcut to the created network connection (for example, VPN) on the desktop, then its properties look like this:

How to create such a shortcut using C#?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xanep, 2012-05-10
@xanep

The topic is complex for C #, so I won’t give you an example, but I’ll tell you where to look. You need to work with the IShellLink
COM object , and specifically to set links to special objects that are not files, there is the IShellLink::SetIDList method For C # there are wrappers for working with Windows COM objects Windows API Code Pack In general, I directed you, further a little googling and reading msdn will do the trick.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question