windows-nt/Source/XPSP1/NT/net/tcpip/driver/inc/mdl2ndis.h
2020-09-26 16:20:57 +08:00

62 lines
836 B
C

/*++
Copyright (c) 1999 Microsoft Corporation
Module Name:
mdl2ndis.h
Abstract:
MDL <--> NDIS_BUFFER conversion.
Author:
Scott Holden (sholden) 11/12/1999
Revision History:
--*/
#if MILLEN
TDI_STATUS
ConvertMdlToNdisBuffer(
PIRP pIrp,
PMDL pMdl,
PNDIS_BUFFER *ppNdisBuffer
);
TDI_STATUS
FreeMdlToNdisBufferChain(
PIRP pIrp
);
#else // MILLEN
//
// Of course for Windows 2000 an NDIS_BUFFER chain is really an MDL chain.
//
__inline
TDI_STATUS
ConvertMdlToNdisBuffer(
PIRP pIrp,
PMDL pMdl,
PNDIS_BUFFER *ppNdisBuffer
)
{
*ppNdisBuffer = pMdl;
return TDI_SUCCESS;
}
__inline
TDI_STATUS
FreeMdlToNdisBufferChain(
PIRP pIrp
)
{
return TDI_SUCCESS;
}
#endif // !MILLEN