ntifs.h help

D

ddk

I have DDK 3790 installed and I'm trying to compile some code but I
always get an error
...... ntifs.h is there!(C:\WINDDK\3790\ifs\w2k\ntifs.h)
(BUILD Version: 0097)
I just copied the files from another computer.... maybe I need to do an
install. (don't have the orignal prog)
Is there a way to set ntifs.h to work?

Error
c:\cesource\BKKernel\BKDrvr.c(9) : fatal error C1083: Cannot open
include file: 'C:\WINDDK\3790\ifs\ntifs.h': No such file or directory


Code/snip
/*
MSJDrvr.C - 1998 James M. Finnegan - Microsoft Systems Journal

This module implements all of the IOCTLs described in the accompanying
article*/

#include "C:\WINDDK\3790\ifs\ntifs.h"
#include "BKFunc.h"


#define HDESK ULONG
#define HWND ULONG
#define DWORD ULONG
#define UINT ULONG
#define FILE_DEVICE_UNKNOWN 0x00000022
#define IOCTL_UNKNOWN_BASE FILE_DEVICE_UNKNOWN
 
A

Alf P. Steinbach

* (e-mail address removed):
I'm trying to compile some code but I always get an error

Ouch.

Shoot that compiler.


Error
c:\cesource\BKKernel\BKDrvr.c(9) : fatal error C1083: Cannot open
include file: 'C:\WINDDK\3790\ifs\ntifs.h': No such file or directory

This probably means that there is no such file or directory.
 
M

Matthias =?ISO-8859-1?Q?K=E4ppler?=

..... ntifs.h is there!(C:\WINDDK\3790\ifs\w2k\ntifs.h)
[...]
c:\cesource\BKKernel\BKDrvr.c(9) : fatal error C1083: Cannot open
include file: 'C:\WINDDK\3790\ifs\ntifs.h': No such file or directory

Well, those two paths are NOT the same.

On top of that, it's a bad idea to include headers with absolute paths in
general. For exactly those reasons.
 
D

ddk

Matthias said:
..... ntifs.h is there!(C:\WINDDK\3790\ifs\w2k\ntifs.h)
[...]

c:\cesource\BKKernel\BKDrvr.c(9) : fatal error C1083: Cannot open
include file: 'C:\WINDDK\3790\ifs\ntifs.h': No such file or directory


Well, those two paths are NOT the same.

On top of that, it's a bad idea to include headers with absolute paths in
general. For exactly those reasons.

I'm new, can you spoon feed me as to how I should include the headers?

Thanks... your a lot sharper than Alf P .......LOL
 
C

Chuck McDevitt

You really shouldn't be copying ntifs.h from somebody else's system when you
don't have a license to use that file.

It's part of the Windows Installable File Systems Development Kit, if I
recall, which you have to PAY to get.

There is a free version from the GNU project that would probably work as
well.
 
D

ddk

Chuck said:
You really shouldn't be copying ntifs.h from somebody else's system when you
don't have a license to use that file.

It's part of the Windows Installable File Systems Development Kit, if I
recall, which you have to PAY to get.

There is a free version from the GNU project that would probably work as
well.

Buck I am new and didn't have to copy the files(even that I own the
other box), just didn't include them in the install!!
I know I should not smoke or drink or speed or breath contaminated air

I'm dumb>>>>> and no one asked that question... got the free ver
couldn't get it to work

-path fixed..thanks Matt
-how I should include the headers?
 
M

Matthias =?ISO-8859-1?Q?K=E4ppler?=

Matthias said:
..... ntifs.h is there!(C:\WINDDK\3790\ifs\w2k\ntifs.h)
[...]

c:\cesource\BKKernel\BKDrvr.c(9) : fatal error C1083: Cannot open
include file: 'C:\WINDDK\3790\ifs\ntifs.h': No such file or directory


Well, those two paths are NOT the same.

On top of that, it's a bad idea to include headers with absolute paths in
general. For exactly those reasons.

I'm new, can you spoon feed me as to how I should include the headers?

Thanks... your a lot sharper than Alf P .......LOL

You have to tell the compiler in which paths he should look for header
files. The way this is done depends on which compiler you're using.
For gcc (and mingw32 respectively), you have to specify the include
directories with -Ixyz.
Then you can simply #include <ntifs.h> and the compiler will figure out
itself where to look for this header.
For MSVC++ I don't know, check out the documentation for more details.

- Matthias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top