MprAdminMIBGetTrapInfo function (mprapi.h)

The MprAdminMIBGetTrapInfo function queries the module that set a trap event for more information about the trap.


DWORD MprAdminMIBGetTrapInfo(
  [in]      MIB_SERVER_HANDLE hMibServer,
  [in]      DWORD             dwProtocolId,
  [in]      DWORD             dwRoutingPid,
  [in]      LPVOID            lpInData,
  [in]      DWORD             dwInDataSize,
  [out]     LPVOID            *lplpOutData,
  [in, out] LPDWORD           lpOutDataSize


[in] hMibServer

Handle to the router on which to execute this call. Obtain this handle by calling MprAdminMIBServerConnect.

[in] dwProtocolId

Specifies a DWORD variable that contains the protocol family identifier.

[in] dwRoutingPid

Specifies a DWORD variable that contains the identifier of the routing protocol.

[in] lpInData

Specifies the address of the input data.

[in] dwInDataSize

Specifies a DWORD variable that contains the size, in, bytes of the data pointed to by lpInData.

[out] lplpOutData

Receives, the address of a pointer to the output data.

[in, out] lpOutDataSize

On input, pointer to a DWORD variable.

On output, receives the size, in bytes, of the data pointed to by * lplpOutData.

Return value

If the functions succeeds, the return value is NO_ERROR

If the function fails, the return value is one of the following error codes.

Value Description
The caller does not have sufficient privileges.
The dwTransportId value does not match any installed router manager.
Insufficient resources to complete the operation.


Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mprapi.h
DLL Mprapi.dll

See also


Router Management MIB Functions

Router Management MIB Reference