Skip to content

Latest commit

 

History

History
215 lines (162 loc) · 6.03 KB

nf-mprapi-mpradminconnectiongetinfo.md

File metadata and controls

215 lines (162 loc) · 6.03 KB
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.
MprAdminConnectionGetInfo
MprAdminConnectionGetInfo function [RAS]
_mpr_mpradminconnectiongetinfo
mprapi/MprAdminConnectionGetInfo
rras.mpradminconnectiongetinfo
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
MprAdminConnectionGetInfo
mprapi/MprAdminConnectionGetInfo
c++
APIRef
kbSyntax
DllExport
Mprapi.dll
MprAdminConnectionGetInfo

MprAdminConnectionGetInfo function

-description

The MprAdminConnectionGetInfo function retrieves data about a specific connection.

-parameters

-param hRasServer [in]

A handle to the computer from which the connection information is retrieved. To obtain this handle, call MprAdminServerConnect.

-param dwLevel [in]

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

-param hRasConnection [in]

A handle to the connection to retrieve data about. To obtain this handle, call MprAdminConnectionEnum.

-param lplpbBuffer [out]

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.

-returns

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
ERROR_INVALID_PARAMETER
The handle to the RAS server or the handle to the RAS connection is invalid.
ERROR_INVALID_LEVEL
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.
ERROR_INTERFACE_NOT_CONNECTED
The hConnection handle is invalid.
RPC_S_INVALID_BINDING
The hRasServer handle is invalid.
Other
An error from MprError.h, RasError.h, or WinError.h.

-remarks

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.

-see-also

MprAdminBufferFree

MprAdminConnectionEnum

MprAdminServerConnect

RAS Administration Functions

RAS_CONNECTION_0

RAS_CONNECTION_1

RAS_CONNECTION_2

RAS_CONNECTION_3

Remote Access Service Administration Reference