Programmer's Highway

VB.NET Tips and simple code

I'm very sorry for machine translation in English.

VB.NET IPC Can not connect between different users

If the interprocess communication between different users, you must specify a user group to 'authorizedGroup' property. Each user must belong to the same user group.
Please check this page.

However, you do not know how to set the property in the description of the MSDN.
'authorizedGroup' property is set by the constructor of IpcServerChannel using Hashtable.

        ' Create the channel.
        Dim properties As New Hashtable()
        Dim channel As New IpcServerChannel(properties, Nothing)
Visual Studio 2010 .NET Framework 4