共用方式為


NdisFSetAttributes (Compact 2013)

3/26/2014

A filter driver calls the NdisFSetAttributes function to specify a filter module context area.

Syntax

NDIS_STATUS
  NdisFSetAttributes(
    IN NDIS_HANDLE  NdisFilterHandle,
    IN NDIS_HANDLE  FilterModuleContext,
    IN PNDIS_FILTER_ATTRIBUTES  FilterAttributes
    );

Parameters

  • NdisFilterHandle
    The NDIS handle that identifies this filter module. NDIS passed the handle to the filter driver in a call to the FilterAttach function.
  • FilterModuleContext
    The caller-allocated context area for this filter module.

Return Value

NdisFSetAttributes returns one of the following status values:

Value

Meaning

NDIS_STATUS_SUCCESS

NdisFSetAttributes returns NDIS_STATUS_SUCCESS if it set the filter driver attributes.

NDIS_STATUS_RESOURCES

NdisFSetAttributes failed because of insufficient resources.

NDIS_STATUS_FAILURE

NdisFSetAttributes returns NDIS_STATUS_FAILURE if none of the previous values applies.

Remarks

A filter driver calls NdisFSetAttributes from its FilterAttach function and passes the handle that NDIS passed to FilterAttach at the NdisFilterHandle parameter. The FilterModuleContext parameter of NdisFSetAttributes specifies the context area for this filter module. NDIS passes the context area back to the filter driver in calls to functions such as FilterSendNetBufferLists.

Requirements

Header

ndis.h

See Also

Reference

NDIS Functions for Filter Drivers
FilterAttach
FilterSendNetBufferLists
NDIS_FILTER_ATTRIBUTES