Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
897 B

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. mdl2ndis.h
  5. Abstract:
  6. MDL <--> NDIS_BUFFER conversion.
  7. Author:
  8. Scott Holden (sholden) 11/12/1999
  9. Revision History:
  10. --*/
  11. #if MILLEN
  12. TDI_STATUS
  13. ConvertMdlToNdisBuffer(
  14. PIRP pIrp,
  15. PMDL pMdl,
  16. PNDIS_BUFFER *ppNdisBuffer
  17. );
  18. TDI_STATUS
  19. FreeMdlToNdisBufferChain(
  20. PIRP pIrp
  21. );
  22. #else // MILLEN
  23. //
  24. // Of course for Windows 2000 an NDIS_BUFFER chain is really an MDL chain.
  25. //
  26. __inline
  27. TDI_STATUS
  28. ConvertMdlToNdisBuffer(
  29. PIRP pIrp,
  30. PMDL pMdl,
  31. PNDIS_BUFFER *ppNdisBuffer
  32. )
  33. {
  34. *ppNdisBuffer = pMdl;
  35. return TDI_SUCCESS;
  36. }
  37. __inline
  38. TDI_STATUS
  39. FreeMdlToNdisBufferChain(
  40. PIRP pIrp
  41. )
  42. {
  43. return TDI_SUCCESS;
  44. }
  45. #endif // !MILLEN