Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The MprAdminIsServiceInitialized function checks whether the RRAS service is running on a specified server if the calling process has access.
Syntax
DWORD MprAdminIsServiceInitialized(
[in] LPWSTR lpwsServerName,
[in] BOOL *fIsServiceInitialized
);
Parameters
[in] lpwsServerName
A pointer to a null-terminated Unicode string that specifies the name of the server to query. If this parameter is NULL, the function queries the local machine.
[in] fIsServiceInitialized
On output, a pointer to a BOOL that specifies whether the RRAS service is running on the server in lpwsServerName:
| Value | Meaning |
|---|---|
|
The service is running on the specified server. |
|
The service is not running on the specified server and/or the calling process does not have access to the RRAS service. |
Return value
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
| Value | Meaning |
|---|---|
|
The fIsServiceInitialized parameter is NULL. |
|
The RRAS service is not running on the server. |
|
The calling application does not have sufficient privileges. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | None supported |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | mprapi.h |
| Library | Mprapi.lib |
| DLL | Mprapi.dll |