MprConfigServerGetInfoEx function

The MprConfigServerGetInfoEx function retrieves port information for a specified server.

Syntax


DWORD APIENTRY MprConfigServerGetInfoEx(
  _In_  HANDLE        hMprConfig,
  _Out_ MPR_SERVER_EX *pServerInfo
);

Parameters

hMprConfig [in]

A handle to the router configuration. Obtain this handle by calling MprConfigServerConnect.

pServerInfo [out]

A pointer, on output, to a MPR_SERVER_EX structure that contains the port information for the RRAS server in hMprConfig.

To free this memory, call MprAdminBufferFree.

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.

ValueMeaning
ERROR_ACCESS_DENIED

The calling application does not have sufficient privileges.

ERROR_DDM_NOT_RUNNING

The Demand Dial Manager (DDM) is not running.

ERROR_PROC_NOT_FOUND

The specified procedure could not be found.

Other

Use FormatMessage to retrieve the system error message that corresponds to the error code returned.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mprapi.h

Library

Mprapi.lib

DLL

Mprapi.dll

See also

Router Configuration Functions
Router Management Reference
MprConfigBufferFree
MprConfigServerConnect
MprAdminServerGetInfoEx
MprAdminServerSetInfoEx

 

 

Community Additions

ADD
Show: