Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PMIB_SET_TRAP_INFO callback function (routprot.h)

The MibSetTrapInfo function passes in a handle to an event which is signaled whenever a TRAP needs to be issued.

The PMIP_SET_TRAP_INFO type defines a pointer to this callback function. MibSetTrapInfo is a placeholder for the application-defined function name.

Syntax

PMIB_SET_TRAP_INFO PmibSetTrapInfo;

DWORD PmibSetTrapInfo(
 [in] HANDLE Event,
 [in] ULONG InputDataSize,
 [in] PVOID InputData,
 [out] PULONG OutputDataSize,
 [out] PVOID OutputData
)
{...}

Parameters

[in] Event

Handle to an event that is signaled when a TRAP needs to be issued.

[in] InputDataSize

Specifies a ULONG variable that contains the size in bytes of the data pointed to by InputData.

[in] InputData

Pointer to the input data.

[out] OutputDataSize

Pointer to a ULONG variable that specifies the size in bytes of the data pointed to by * OutputData.

[out] OutputData

Receives the address of a pointer to the output data.

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
ERROR_ACCESS_DENIED
The caller does not have sufficient privileges.
ERROR_NOT_ENOUGH_MEMORY
Insufficient resources to complete the operation.
 

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header routprot.h

See also

MibGetTrapInfo


Feedback

Was this page helpful?

Additional resources