Multiple redefinition problem

Dear All,
How do i avoid multiple redefinitions? This iam getting when
i try to include ntddk.h ahead of ndis.h in passthru.c of passthru sample
from ntddk\src\netwrok.

The same problem doesn’t occur in case of Packet\driver
sample although ntddk.h and ndis.h are included in that order.

May not be the right place…but…

thanks
Sesha.
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

I’d like to respond to your question, but the severe warning attached to
the bottom of your email appears to prohibit my doing so. If I could
respond, I might point out that the packet driver is not an ndis
miniport driver, while the passthru driver is an ndis miniport driver,
and that this information could be learned from the sources files for
each driver. I might also point out that you can work around the
miniport limitations by separate compilation of modules that use the
ntddk, but once again, I feel constrained from doing this because of the
severe warnings attached to your question.

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: Seshagiri_Babu
To: “NT Developers Interest List”
Date: Mon, 9 Sep 2002 17:22:04 +0530
Subject: [ntdev] Multiple redefinition problem

> Dear All,
> How do i avoid multiple redefinitions? This iam getting
when
> i try to include ntddk.h ahead of ndis.h in passthru.c of passthru
> sample
> from ntddk\src\netwrok.
>
> The same problem doesn’t occur in case of Packet\driver
> sample although ntddk.h and ndis.h are included in that order.
>
> May not be the right place…but…
>
>
> thanks
> Sesha.
> ********************************************************************
>

> This email (including any attachments) is intended for the sole use of
> the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or
> copying or
> distribution or forwarding of any or all of the contents in this
> message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please
> contact
> the sender by email and delete all copies; your cooperation in this
> regard
> is appreciated.
> ********************************************************************
>

>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%

>> but the severe warning attached

Ya and the legal value of that bullshit is more at the level of “scarecrow”,
at least arround here.

If a comany feels compeled to attach 1001 warnings to it’s employe emails,
then the devleopers from that comany who are seeking help should have the
common sense to use their personal email addresses , or something like that.

Certainly , Im not the intended recipient of his e-mail, and I find boring
to waste precious
space in my mailbox with those “disclaimers”. I have no need for them.

Regards, Dan

**************************************************************************
This email is my private property and contains confidential information
about uber-secret technologies. If you you received this e-mail, please
report to the nearest hospital
to have your MEMORY ERASED, or to be scheduled for IMMEDIATE TERMINATION if
the erasing procedure fails. Your cooperation in this regard is
appreciated.
**************************************************************************

you have to bear with me buddy :slight_smile: We have restricted internet access to
personal mails…access only after office hours. And our management require
developers to be active during office hours. Bad for me :expressionless: Start pitying
developers like me. And take it easy if you see the junk again following my
message :wink:

cheers
Sesha.


From: Dan Partelly[SMTP:xxxxx@rdsor.ro]
Reply To: NT Developers Interest List
Sent: Monday, September 09, 2002 6:49 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Multiple redefinition problem

>> but the severe warning attached

Ya and the legal value of that bullshit is more at the level of
“scarecrow”,
at least arround here.

If a comany feels compeled to attach 1001 warnings to it’s employe emails,
then the devleopers from that comany who are seeking help should have the
common sense to use their personal email addresses , or something like
that.

Certainly , Im not the intended recipient of his e-mail, and I find boring
to waste precious
space in my mailbox with those “disclaimers”. I have no need for them.

Regards, Dan

**************************************************************************
This email is my private property and contains confidential information
about uber-secret technologies. If you you received this e-mail, please
report to the nearest hospital
to have your MEMORY ERASED, or to be scheduled for IMMEDIATE TERMINATION
if
the erasing procedure fails. Your cooperation in this regard is
appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

Use this code in the beginning of your header files:

#undef BINARY_COMPATIBLE
#define BINARY_COMPATIBLE 0

#include <ndis.h>
#include <ntddk.h>

but if you make so, your binaries won’t be compatible with win9x.</ntddk.h></ndis.h>