[This is preliminary documentation and subject to change.]
The ConnectToRouter function is used to connect the plugin module to the router. The plugin module should disconnect from the Routing and Remote Access Service Server when the IMprUIPlugin is released.
ConnectToRouter (
LPCTSTR pRouterName,
IMprUIHost *pMprUIHost
);
The ConnectToRouter function has no return values.
Routing and Remote Access Administrator expects pRouterName to be a LPCWSTR, not a LPCTSTR. Though the plugin.h header file reports TCHAR, if third-party plugin modules are complied with ANSI, Routing and Remote Access Administrator will pass through a Unicode string.