MprAdminTransportGetInfo function (mprapi.h)
The MprAdminTransportGetInfo function retrieves global information, default client interface information, or both, for a specified transport.
Syntax
DWORD MprAdminTransportGetInfo(
[in] MPR_SERVER_HANDLE hMprServer,
[in] DWORD dwTransportId,
[out, optional] LPBYTE *ppGlobalInfo,
[out, optional] LPDWORD lpdwGlobalInfoSize,
[out, optional] LPBYTE *ppClientInterfaceInfo,
[out, optional] LPDWORD lpdwClientInterfaceInfoSize
);
Parameters
[in] hMprServer
Handle to the router from which information is being retrieved. This handle is obtained from a previous call to MprAdminServerConnect.
[in] dwTransportId
A DWORD value that describes the transport type to retrieve. Acceptable values for dwTransportId are listed in the following table.
Value | Transport (Protocol Family) |
---|---|
PID_ATALK | AppleTalk |
PID_IP | Internet Protocol version 4 |
PID_IPX | Internet Packet Exchange |
PID_NBF | NetBIOS Frames Protocol |
PID_IPV6 | Windows Server 2008 or later: Internet Protocol version 6 |
[out, optional] ppGlobalInfo
Pointer to a pointer variable. This variable points to an information header that receives global information for this transport. Use the Information Header Functions to manipulate information headers.
Free this memory by calling MprAdminBufferFree.
This parameter is optional. If the calling application specifies NULL for this parameter, the function does not retrieve the global information.
[out, optional] lpdwGlobalInfoSize
Pointer to a DWORD variable. This variable receives the size, in bytes, of the global information for the transport.
[out, optional] ppClientInterfaceInfo
Pointer to a pointer variable. This variable points to default client interface information for this transport. Free this memory by calling MprAdminBufferFree.
This parameter is optional. If the calling application specifies NULL for this parameter, the function does not retrieve the client interface information.
[out, optional] lpdwClientInterfaceInfoSize
Pointer to a DWORD variable. This variable receives the size, in bytes, of the client interface information.
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 calling application does not have sufficient privileges. |
|
One of the following is true:
|
|
Insufficient resources to complete the operation. |
|
The dwTransportId value does not match any installed transport. |
Remarks
The ppGlobalInfo and ppClientInterfaceInfo parameters cannot both be NULL.
Requirements
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 |