MibGetFirst

[This is preliminary documentation and subject to change.]

The MibGetFirst function passes a SNMP MIB-style Get First Request to the routing protocol.

DWORD MibGetFirst(
  ULONG InputDataSize,    // size of the data for the request
  PVOID InputData,        // address of the data for the request
  ULONG *OutputDataSize,  // size of the data returned
  PVOID OutputData        // address of the data returned
);
 

Parameters

InputDataSize
Specifies the size of the data for the Get First Request.
InputData
Pointer to the data to be passed with the Get First Request.
OutputDataSize
Pointer to a ULONG variable:

On input: This variable contains the size of the output buffer.

On output: This variable contains the size of the data placed in the output buffer. If the initial size was not large enough, the variable contains the buffer size required to hold all of the output data.

OutputData
Pointer to a buffer to receive the data from the MIB entry.

Return Values

NO_ERROR
The routing protocol completed the request.
ERROR_CAN_NOT_COMPLETE
The routing protocol could not complete the request.
ERROR_INVALID_PARAMETER
The size or content of the data is inappropriate for the request.
ERROR_INSUFFICIENT_BUFFER
The size of the output buffer provided is not large enough to hold the requested information. The required size is returned in the ULONG variable pointed to by the OutputDataSize parameter.

QuickInfo

  Windows NT: Use version 5.0 and later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in routprot.h.
  Import Library: user-defined.

See Also

MibGet, MibGetFirst Sample, MibGetNext, MibSet