NTDDK gives error when used with VC++

Hello Guys,
When I include NTDDK.h in vc++ application it leaves 102 error like some
types are undefined.I am not including Windows.h with that.What can be
error.I have platform sdk and ddk 2000 and visual studio installed.

Thanx in advance.

why do u want to include ntddk.h for an application … u must be using some
variables types in ur appln which are probably not defined in ntddk.h . Use
windows.h

–Arup

-----Original Message-----
From: Krishna [mailto:xxxxx@rediffmail.com]
Sent: Monday, April 15, 2002 5:58 PM
To: NT Developers Interest List
Subject: [ntdev] NTDDK gives error when used with VC++

Hello Guys,
When I include NTDDK.h in vc++ application it leaves 102 error like some
types are undefined.I am not including Windows.h with that.What can be
error.I have platform sdk and ddk 2000 and visual studio installed.

Thanx in advance.


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

HEllo I am krishna…
this message is for Arup banargi …
Hello Arup, Actually I am using some types and function from ntddk.I need
them in my application .I am doing it for callgates…user to kernel mode.

I think it can be used with vc++ ,but how ??? What settings I need to do
??
do anybody know ??

You cannot mix both DDK header files and VC++ Headers files.

----- Original Message -----
From: “Krishna”
To: “NT Developers Interest List”
Sent: Monday, April 15, 2002 6:10 PM
Subject: [ntdev] RE: NTDDK gives error when used with VC++

> HEllo I am krishna…
> this message is for Arup banargi …
> Hello Arup, Actually I am using some types and function from ntddk.I need
> them in my application .I am doing it for callgates…user to kernel mode.
>
> I think it can be used with vc++ ,but how ??? What settings I need to do
> ??
> do anybody know ??
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com
> To unsubscribe send a blank email to %%email.unsub%%

You can if you create a separate module that handles DDK specific stuff.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of int3
Sent: Monday, April 15, 2002 6:11 AM
To: NT Developers Interest List
Subject: [ntdev] RE: NTDDK gives error when used with VC++

You cannot mix both DDK header files and VC++ Headers files.

----- Original Message -----
From: “Krishna”
To: “NT Developers Interest List”
Sent: Monday, April 15, 2002 6:10 PM
Subject: [ntdev] RE: NTDDK gives error when used with VC++

> HEllo I am krishna…
> this message is for Arup banargi …
> Hello Arup, Actually I am using some types and function from ntddk.I
> need them in my application .I am doing it for callgates…user to
> kernel mode.
>
> I think it can be used with vc++ ,but how ??? What settings I need to
> do ?? do anybody know ??
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com To
> unsubscribe send a blank email to %%email.unsub%%


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

> Hello Arup, Actually I am using some types and function from ntddk.I need

them in my application .

Copy-paste them to your own header.

Max

> When I include NTDDK.h in vc++ application it leaves 102 error

Surely. NTDDK.H is unsuitable for use in user-mode builds, and VC++ apps are user mode ones.

Max

Ok … but see if you can find out a cleaner option … Say for example
… when u define IOCTLS in ur driver code u include devicotl.h so as to
include the definitions for the CTL_CODES’s macro …

Now in order to use these ioctls in an user mode app … u should include
winioctl.h and not devioctl.h 'coz certain constants used in the later
doesn’t make sense in user mode app and perhaps not advisable to use …

– I do not know what type and functions ur using … but in case they are
same as what I discussed above then use the proper file .

–Arup

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, April 16, 2002 12:53 AM
To: NT Developers Interest List
Subject: [ntdev] RE: NTDDK gives error when used with VC++

Hello Arup, Actually I am using some types and function from ntddk.I need
them in my application .

Copy-paste them to your own header.

Max


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

Hi,
have a look at …

http://www.codeproject.com/books/1578701996.asp

~Govind
www.nesttech.com

At 21.22 15/04/2002, you wrote:

> When I include NTDDK.h in vc++ application it leaves 102 error

Surely. NTDDK.H is unsuitable for use in user-mode builds, and VC++ apps
are user mode ones.

what does exactly make them “unsuitable”? I remember too a lot of error
messages when using DDK headers “out of context”, but I don’t remember the
details