Conflicts between miniport.h and ntddk.h

How can miniport drivers use the routines in ntddk.h? For example, say my
hardware requires some big endian values that I want to swap using
RtlUlongByteSwap. Including both miniport.h and ntddk.h causes a ton of
errors.

Thanks

Make sure ntddk.h is not already included in miniport.h. If it is then just
include miniport.h

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@attotech.com
Sent: Monday, December 06, 2004 5:15 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Conflicts between miniport.h and ntddk.h

How can miniport drivers use the routines in ntddk.h? For example, say my
hardware requires some big endian values that I want to swap using
RtlUlongByteSwap. Including both miniport.h and ntddk.h causes a ton of
errors.

Thanks


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently
subscribed to ntdev as: xxxxx@cse.psu.edu
To unsubscribe send a blank email to xxxxx@lists.osr.com

Include miniport.h in one of your source file, and ntddk.h in another.
Note: NDIS miniports which are importing the kernel functions are not
WHQLable.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Tuesday, December 07, 2004 1:14 AM
Subject: [ntdev] Conflicts between miniport.h and ntddk.h

> How can miniport drivers use the routines in ntddk.h? For example, say my
> hardware requires some big endian values that I want to swap using
> RtlUlongByteSwap. Including both miniport.h and ntddk.h causes a ton of
> errors.
>
> Thanks
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>