MprAdminIsServiceRunning

The MprAdminIsServiceRunning function checks whetherRRAS is running on a specified machine. If not, none of the router administration function calls will succeed.

BOOL MprAdminIsServiceRunning(
  LPWSTR lpwsServerName  // name of machine to query
);

Parameters

lpwsServerName
[in] Pointer to a Unicode string that specifies the name of the server to query.

Return Values

The return value is one of the following boolean values.

Value Meaning
TRUE The service is running on the specified server.
FALSE The service is not running on the specified server.

Requirements

  Windows NT/2000: Requires Windows 2000. Available as a redistributable for Windows NT 4.0.
  Header: Declared in Mprapi.h.
  Library: Use Mprapi.lib.

See Also

Router Management Reference, Router Administration Functions