Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The MprAdminServerGetInfo function retrieves information about the specified RRAS server.
DWORD MprAdminServerGetInfo(
[in] MPR_SERVER_HANDLE hMprServer,
[in] DWORD dwLevel,
[out] LPBYTE *lplpbBuffer
);
[in] hMprServer
Handle to the router to query. Obtain this handle by calling MprAdminServerConnect.
[in] dwLevel
A DWORD value that describes the format in which the information is returned in the lplpBuffer parameter. Acceptable values for dwLevel include 0, 1, and 2 as listed in the following table.
Value | Structure Format |
---|---|
0 | Windows 2000 Server or later: MPR_SERVER_0 |
1 | Windows Server 2003 or later: MPR_SERVER_1 |
2 | Windows Server 2008 or later: MPR_SERVER_2 |
[out] lplpbBuffer
On successful completion, a pointer to a
MPR_SERVER_0,
MPR_SERVER_1,
or MPR_SERVER_2 structure. The dwLevel parameter indicates the type of structure.
Free the memory for this buffer using
MprAdminBufferFree
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 calling application does not have sufficient privileges. |
|
The lplpbBuffer parameter is NULL. |
|
The hMprServer parameter is NULL. |
Requirement | Value |
---|---|
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today