sirroom
驱动大牛
驱动大牛
  • 注册日期2001-07-30
  • 最后登录2018-05-29
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望11点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1661回复:2

请教ndis3.0与ndis4.0续

楼主#
更多 发布于:2001-09-30 20:00
可能上面问的不太清楚吧
nt4中可用ndis3.0,想在MacAddapter中分配资源.如
NdisAllocateSharedMemory(
           adapter->NdisAdapterRegistrationHandle,
           adapter->SharedMemorySize,
           FALSE,
           &adapter->SharedMemoryPtr,
           &adapter->SharedMemoryPhysicalAddress
                                 );
在2k下想做类似的事应怎么做说穿了也就是把ndis3.0下的程序移到ndis4.0下吧.说说在2kddk或msdn中相关的地方
下面是basedir/inc/ddk下的ndis.h的一段
在2kddk的help中说这些是
"Obsolete NdisXxx Functions and Macros"

NdisAllocateSharedMemory等不知可不可以在ndis4.0以上用

#if !defined(NDIS_MINIPORT_DRIVER) || defined(NDIS_WRAPPER)

//
// Shared memory
//

EXPORT
VOID
NdisAllocateSharedMemory(
IN NDIS_HANDLE NdisAdapterHandle,
IN ULONG Length,
IN BOOLEAN Cached,
OUT PVOID * VirtualAddress,
OUT PNDIS_PHYSICAL_ADDRESS PhysicalAddress
);

EXPORT
VOID
NdisFreeSharedMemory(
IN NDIS_HANDLE NdisAdapterHandle,
IN ULONG Length,
IN BOOLEAN Cached,
IN PVOID VirtualAddress,
IN NDIS_PHYSICAL_ADDRESS PhysicalAddress
);

//
// Requests Used by MAC Drivers
//

EXPORT
VOID
NdisRegisterMac(
OUT PNDIS_STATUS Status,
OUT PNDIS_HANDLE NdisMacHandle,
IN NDIS_HANDLE NdisWrapperHandle,
IN NDIS_HANDLE MacMacContext,
IN PNDIS_MAC_CHARACTERISTICS MacCharacteristics,
IN UINT CharacteristicsLength
);

EXPORT
VOID
NdisDeregisterMac(
OUT PNDIS_STATUS Status,
IN NDIS_HANDLE NdisMacHandle
);


EXPORT
NDIS_STATUS
NdisRegisterAdapter(
OUT PNDIS_HANDLE NdisAdapterHandle,
IN NDIS_HANDLE NdisMacHandle,
IN NDIS_HANDLE MacAdapterContext,
IN NDIS_HANDLE WrapperConfigurationContext,
IN PNDIS_STRING AdapterName,
IN PVOID AdapterInformation
);

EXPORT
NDIS_STATUS
NdisDeregisterAdapter(
IN NDIS_HANDLE NdisAdapterHandle
);

EXPORT
VOID
NdisRegisterAdapterShutdownHandler(
IN NDIS_HANDLE NdisAdapterHandle,
IN PVOID ShutdownContext,
IN ADAPTER_SHUTDOWN_HANDLER ShutdownHandler
);

EXPORT
VOID
NdisDeregisterAdapterShutdownHandler(
IN NDIS_HANDLE NdisAdapterHandle
);

EXPORT
VOID
NdisReleaseAdapterResources(
IN NDIS_HANDLE NdisAdapterHandle
);
111
aliving
驱动小牛
驱动小牛
  • 注册日期2001-07-18
  • 最后登录2004-04-27
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2001-10-08 17:15
还是不太明白你的目的是什么
~~~~ Looking For Hope ~~~~ [img]http://www.driverdevelop.com/forum/upload/aliving/2002-11-11_me.jpg[/img]
sirroom
驱动大牛
驱动大牛
  • 注册日期2001-07-30
  • 最后登录2018-05-29
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望11点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2001-10-09 11:12
对啊。问的太麻烦了,不如这样问,
1.有哪位大虾的中间层驱动程序可同时在ndis3.0(9x/nt/me),ndis4.0(2000)下都能正常运行.
2.ndis3.0,4.0间的中间层驱动程序异同有哪些?
这样是不是够清楚了??
111
游客

返回顶部