MprAdminMIBServerConnect function (mprapi.h)

The MprAdminMIBServerConnect function establishes a connection to the router being administered. This call should be made before any other calls to the server. The handle returned by this function is used in subsequent MIB calls.


DWORD MprAdminMIBServerConnect(
  [in]  LPWSTR            lpwsServerName,
  [out] MIB_SERVER_HANDLE *phMibServer


[in] lpwsServerName

Pointer to a Unicode string that specifies the name of the remote server. If the caller specifies NULL for this parameter, the function returns a handle to the local server.

[out] phMibServer

Pointer to a handle variable. This variable receives a handle to the server.

Return value

If the function succeeds, the return value is NO_ERROR.


Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mprapi.h
Library Mprapi.lib
DLL Mprapi.dll

See also


Router Management MIB Functions

Router Management MIB Reference