ConnectToRouter

[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
);
 

Parameters

pRouterName
Pointer to a string containing the name of the router to which the plugin module is to connect.
pMprUIHost
Pointer to the IMprUIHost interface.

Return Values

The ConnectToRouter function has no return values.

Remarks

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.