UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mprapi.MprAdminConnectionGetInfo |
MprAdminConnectionGetInfo function (mprapi.h) |
Retrieves data about a specific connection. |
|
rras\mpradminconnectiongetinfo.htm |
RRAS |
1fef5fbf-de3f-43c6-8b94-808f6ed209d8 |
12/05/2018 |
MprAdminConnectionGetInfo, MprAdminConnectionGetInfo function [RAS], _mpr_mpradminconnectiongetinfo, mprapi/MprAdminConnectionGetInfo, rras.mpradminconnectiongetinfo |
mprapi.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Mprapi.lib |
Mprapi.dll |
Windows |
19H1 |
|
|
|
|
|
|
The MprAdminConnectionGetInfo function retrieves data about a specific connection.
A handle to the computer from which the connection information is retrieved. To obtain this handle, call MprAdminServerConnect.
A DWORD value that describes the format in which the information is returned in the lplpbBuffer parameter. Acceptable values for dwLevel include 0, 1, 2, and 3, as listed in the following table.
Windows NT 4.0: This parameter must be zero.
Value | Structure Format |
---|---|
0 | RAS_CONNECTION_0 |
1 | Windows 2000 or later: RAS_CONNECTION_1 |
2 | Windows 2000 or later: RAS_CONNECTION_2 |
3 | Windows Server 2008 or later: RAS_CONNECTION_3 |
A handle to the connection to retrieve data about. To obtain this handle, call MprAdminConnectionEnum.
On successful completion, a pointer to an array of structures that describe the connection. These structures are of type RAS_CONNECTION_0, RAS_CONNECTION_1, RAS_CONNECTION_2, or RAS_CONNECTION_3, depending on the value of the dwLevel parameter.
To free this memory, call MprAdminBufferFree.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the error codes listed in the following table.
Return code | Description |
---|---|
|
The handle to the RAS server or the handle to the RAS connection is invalid. |
|
The value passed for dwLevel is not zero, one, two, or three. Levels one and two are supported only on Windows 2000 or later. Level three is supported only on Windows Server 2008 or later. |
|
The hConnection handle is invalid. |
|
The hRasServer handle is invalid. |
|
An error from MprError.h, RasError.h, or WinError.h. |
This function is available on Windows NT 4.0 if the RRAS redistributable is installed. However, the version of Mprapi.dll included in the RRAS redistributable exports the function as RasAdminConnectionGetInfo rather than MprAdminConnectionGetInfo. Therefore, when using the RRAS redistributable, use LoadLibrary and GetProcAddress to access this function.