The MprAdminTransportSetInfo function sets global information, or default client interface information, or both, for a specified transport.
DWORD MprAdminTransportSetInfo( MPR_SERVER_HANDLE hMprServer, // handle to router DWORD dwTransportId, // identifies the transport LPBYTE pGlobalInfo, // global information for transport DWORD dwGlobalInfoSize, // size of global information LPBYTE pClientInterfaceInfo, // information for client interfaces DWORD dwClientInterfaceInfoSize // size of information for client // interfaces );
This parameter is optional. If the calling application specifies NULL for this parameter, the function does not set the global information.
This parameter is optional. If the calling application specifies NULL for this parameter, the function does not set the default client interface information.
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 |
---|---|
ERROR_ACCESS_DENIED | The calling application does not have sufficient privileges. |
ERROR_INVALID_PARAMETER | The pGlobalInfo parameter and the pClientInterfaceInfo parameter are both NULL. |
ERROR_NOT_ENOUGH_MEMORY | Insufficient resources to complete the operation. |
ERROR_UNKNOWN_PROTOCOL_ID | The dwTransportId value does not match any installed transport. |
Windows NT/2000: Requires Windows 2000.
Header: Declared in Mprapi.h.
Library: Use Mprapi.lib.
Router Management Reference, Router Administration Functions, MprAdminServerConnect, MprAdminTransportGetInfo