Registers protocol with an NDIS adapter.
640{
649
651
653 if (!Adapter)
654 {
657 }
658
660
661
664
667
668
670
672
673
675
677
678
682 &MediaIndex,
686 Adapter,
688 0,
690
691
695 {
697 return NdisStatus;
698 }
699
701
702
703 switch (Adapter->
Media)
704 {
717 break;
718
719 default:
720
724 }
725
726
733 {
735 return NdisStatus;
736 }
737
738
745 {
748 return NdisStatus;
749 }
750
751
758 {
759
760
762 }
763
764
767 AddressOID,
771 {
774 return NdisStatus;
775 }
776
777
781 &Speed,
784 {
787 return NdisStatus;
788 }
789
790
791 Adapter->
Speed = Speed * 100L;
792
793
797
802
804
811 {
813 ("Could not set lookahead buffer size (0x%X).\n",
814 NdisStatus));
815 return NdisStatus;
816 }
817
818
825 {
827 NdisStatus));
828 return NdisStatus;
829 }
830
832
834
836}
#define LA_DbgPrint(_t_, _x_)
VOID EXPORT NdisOpenAdapter(OUT PNDIS_STATUS Status, OUT PNDIS_STATUS OpenErrorStatus, OUT PNDIS_HANDLE NdisBindingHandle, OUT PUINT SelectedMediumIndex, IN PNDIS_MEDIUM MediumArray, IN UINT MediumArraySize, IN NDIS_HANDLE NdisProtocolHandle, IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_STRING AdapterName, IN UINT OpenOptions, IN PSTRING AddressingInformation OPTIONAL)
#define IEEE_802_ADDR_LENGTH
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
#define InitializeListHead(ListHead)
#define KeInitializeSpinLock(sl)
#define ExAllocatePool(type, size)
PLIST_ENTRY NTAPI ExInterlockedInsertTailList(IN OUT PLIST_ENTRY ListHead, IN OUT PLIST_ENTRY ListEntry, IN OUT PKSPIN_LOCK Lock)
#define LAN_STATE_STOPPED
#define LAN_STATE_STARTED
PDEVICE_OBJECT LanDeviceObject
NDIS_STATUS NDISCall(PLAN_ADAPTER Adapter, NDIS_REQUEST_TYPE Type, NDIS_OID OID, PVOID Buffer, UINT Length)
Send a request to NDIS.
#define exAllocatePool(x, y)
#define NDIS_STATUS_PENDING
#define NDIS_STATUS_NOT_SUPPORTED
#define NDIS_PACKET_TYPE_BROADCAST
#define NDIS_STATUS_SUCCESS
#define NDIS_PACKET_TYPE_MULTICAST
#define NDIS_PACKET_TYPE_DIRECTED
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _Out_ PUINT _In_ UINT _In_ NDIS_HANDLE _In_ NDIS_HANDLE _In_ PNDIS_STRING AdapterName
_In_ NDIS_STATUS _In_ NDIS_STATUS OpenStatus
@ NdisRequestQueryInformation
@ NdisRequestSetInformation
#define NDIS_STATUS_RESOURCES
static NDIS_MEDIUM MediaArray[MEDIA_ARRAY_SIZE]
NTSYSAPI VOID NTAPI RtlCopyUnicodeString(PUNICODE_STRING DestinationString, PUNICODE_STRING SourceString)
enum _NDIS_MEDIUM NDIS_MEDIUM
#define OID_GEN_MAXIMUM_TOTAL_SIZE
#define OID_GEN_LINK_SPEED
#define OID_GEN_CURRENT_PACKET_FILTER
#define OID_802_3_CURRENT_ADDRESS
#define OID_GEN_MAXIMUM_FRAME_SIZE
#define OID_GEN_CURRENT_LOOKAHEAD
#define OID_GEN_MAXIMUM_SEND_PACKETS
UCHAR HWAddress[IEEE_802_ADDR_LENGTH]
UNICODE_STRING RegistryPath
LIST_ENTRY AdapterListHead
NDIS_HANDLE NdisProtocolHandle
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath