BOOL and XP DDK

Hi all,
If the Ndis miniport driver is compiled using XP DDK, any BOOL type used
in the code gives erros, whereas W2K DDK did not. Ndis.h has a BOOLEAN
define as UCHAR and if I replace BOOL with BOOLEAN, it works fine. Also if
I define typedef UCHAR BOOL; in all files that use BOOL, its fine. But
there are hundereds of such file.

Why is BOOL not accepted by XP DDK compiler, when it is fine with W2K DDK
compiler.

thanks
Rajinder

XP DDK Build settings are more strict then prior. By default, many warnings
are now errors.

Some grief in accommodating this change. However, it’s for the better I
think.

It’s like DriverVerifier: It catches bugs that have never been seen in most
situations. Bugs nevertheless.

Regards,

Thomas F. Divine

PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
http: - http:

“Rajinder Sharma” wrote in message
news:xxxxx@ntdev…
>
> Hi all,
> If the Ndis miniport driver is compiled using XP DDK, any BOOL type used
> in the code gives erros, whereas W2K DDK did not. Ndis.h has a BOOLEAN
> define as UCHAR and if I replace BOOL with BOOLEAN, it works fine. Also if
> I define typedef UCHAR BOOL; in all files that use BOOL, its fine. But
> there are hundereds of such file.
>
> Why is BOOL not accepted by XP DDK compiler, when it is fine with W2K DDK
> compiler.
>
> thanks
> Rajinder
>
></http:></http:>