VOID
NdisMSetAttributesEx(
IN NDIS_HANDLE MiniportAdapterHandle,
IN NDIS_HANDLE MiniportAdapterContext,
IN UINT CheckForHangTimeInSeconds OPTIONAL,
IN ULONG AttributeFlags,
IN NDIS_INTERFACE_TYPE AdapterType
);
- MiniportAdapterHandle
- Specifies the handle input to MiniportInitialize.
- MiniportAdapterContext
- Specifies a handle for a resident context area allocated by MiniportInitialize.
- CheckForHangTimeInSeconds
- Specifies the interval, in seconds, at which NDIS should call the MiniportCheckForHang function. If a driver has not responded to an OID request or sent request within two successive calls to MiniportCheckForHang, NDIS can call the driver's MiniportReset function.
The actual interval that NDIS uses when calling MiniportCheckForHang is always a multiple of 2 seconds. For example, if you specifiy 5 seconds, the actual interval will be approximately 4 seconds.
Specifying zero for this parameter indicates that NDIS should call MiniportCheckForHang at the NDIS default 2-second interval.
If the caller sets NDIS_ATTRIBUTE_DESERIALIZE in AttributeFlags, NDIS does not queue pending sends for the miniport driver. Instead, such a deserialized driver must manage its own queuing of subsequent send requests internally whenever it has insufficient resources to transmit an incoming send immediately.
- AttributeFlags ( IM driver의 경우 초록색으로 된 것은 필수로 set 해줘야 한다 )
- Specifies a bitmask that can be set with one or more (ORed) of the following flags:
- NDIS_ATTRIBUTE_BUS_MASTER
- Set if the caller's NIC is a bus-master DMA device.
- NDIS_ATTRIBUTE_DESERIALIZE
- Set if the caller is a deserialized miniport driver.
- NDIS_ATTRIBUTE_IGNORE_PACKET_TIMEOUT
- Set if NDIS should not attempt to time-out pending send packets that it holds queued to the caller. Intermediate drivers should set this flag, but NIC drivers should not.
- NDIS_ATTRIBUTE_IGNORE_REQUEST_TIMEOUT
- Set if NDIS should not attempt to time-out pending query and set requests that it holds queued to the caller. Intermediate drivers should set this flag, but NIC drivers should not.
- NDIS_ATTRIBUTE_INTERMEDIATE_DRIVER
- Set if the caller is an intermediate driver.
- NDIS_ATTRIBUTE_IGNORE_TOKEN_RING_ERRORS
- Set if NDIS should not call a Token Ring NIC driver's MiniportReset function if Token Ring errors are indicated.
- NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND
- Set if NDIS should not call a driver's MiniportHalt function before the system transitions to a low-power (sleeping) state. Drivers that rely on hardware-maintained state should not set this flag.
Note Setting this flag disables the Allow the computer to turn off this device to save power check box in the Power Management Tab of the Properties dialog box for the network interface card (NIC). Power management is disabled even if the NIC is capable of power management.
- NDIS_ATTRIBUTE_SURPRISE_REMOVE_OK
- Set if the driver can handle removal of its NIC without user notification. Such a driver exports a MiniportPnPEventNotify function. System support for NDIS_ATTRIBUTE_SURPRISE_REMOVE_OK is available in Windows XP and later operating systems.
- NDIS_ATTRIBUTE_NOT_CO_NDIS
- Set by a driver that can support both connection-oriented and connectionless devices to indicate that the device is a connectionless device. System support for NDIS_ATTRIBUTE_NOT_CO_NDIS is available in Windows XP and later operating systems.
- NDIS_ATTRIBUTE_USES_SAFE_BUFFER_APIS
- Set by a driver that uses NdisBufferVirtualAddressSafe, NdisGetFirstBufferFromPacketSafe, and NdisQueryBufferSafe exclusively to access system virtual addresses for send packet buffers. NDIS_ATTRIBUTE_USES_SAFE_BUFFER_APIS is also set by a driver that exclusively uses physical addresses to access such buffers. Setting NDIS_ATTRIBUTE_USES_SAFE_BUFFER_APIS can improve performance since the operating system will not have to map send packet buffers to system virtual addresses. System support for NDIS_ATTRIBUTE_USES_SAFE_BUFFER_APIS is available in Windows XP and later versions.
- NDIS_ATTRIBUTE_DO_NOT_BIND_TO_ALL_CO
- Set by a CoNDIS miniport driver that does not provide TAPI services. Setting NDIS_ATTRIBUTE_DO_NOT_BIND_TO_ALL_CO prevents NDIS from binding the miniport driver to the NDIS TAPI proxy driver (NDPROXY). By default, NDIS binds NDPROXY to all CoNDIS miniport drivers.
- AdapterType
- Specifies the I/O bus interface type of the caller's NIC, which usually is the type of I/O bus on which the NIC is connected, as one of the following:
- NdisInterfaceInternal
- Specifies a host-specific internal interface.
- NdisInterfaceIsa
- Specifies the ISA interface.
- NdisInterfaceEisa
- Specifies the extended ISA (EISA) interface.
- NdisInterfaceMca
- This refers to the MCA bus, which is no longer supported.
- NdisInterfaceTurboChannel
- Specifies the Turbo Channel interface.
- NdisInterfacePci
- Specifies the Peripheral Component Interconnect (PCI) interface.
- NdisInterfacePcMcia
- Specifies the Personal Computer Memory Card International Association (PC Card) interface.
- This parameter is irrelevant for intermediate drivers, which should pass zero for this argument to NdisMSetAttributesEx.
Parameters
이 글의 트랙백 주소 :: http://www.waaraawa.com/trackback/400
-
Subject: NDIS_INTERFACE_TYPE
Tracked from I`m Tourist in my own. [2008/01/29 15:08] 삭제\inc\ddk\wxp\ndis.h //// Possible Hardware Architecture. Define these to// match the HAL INTERFACE_TYPE enum.//typedef enum _NDIS_INTERFACE_TYPE{ NdisInterfaceInternal = Internal, // 0 NdisInterfaceIsa = Isa, // 1 NdisInterfaceEisa = Eisa, // 2 NdisInt...






::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::