On Wed Apr 12 08:55:50 2023 +0000, Zhiyi Zhang wrote:
Does the following help?
[ explicit_handle ] interface interface-name { ... }
See https://learn.microsoft.com/en-us/windows/win32/midl/explicit-handle and https://learn.microsoft.com/en-us/windows/win32/rpc/explicit-binding-handles
I think in general, what you want is to add another call to run_client() with a new string, and handle that in client(). In general the flow should look pretty similar: create an RPC binding, run some tests with it [in this case you're using a different interface, so you don't want run_tests()]. You can duplicate the other tests while you're at it [authinfo, test_is_server_listening()] but it doesn't seem necessary.
On the server side, you'll need to register the new server interface as well, in server().