ntifs.h help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ddk@msn.com

    ntifs.h help

    I have DDK 3790 installed and I'm trying to compile some code but I
    always get an error
    ...... ntifs.h is there!(C:\WINDD K\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\BKK ernel\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_UNK NOWN 0x00000022
    #define IOCTL_UNKNOWN_B ASE FILE_DEVICE_UNK NOWN

  • Alf P. Steinbach

    #2
    Re: ntifs.h help

    * ddk@msn.com:[color=blue]
    >
    > I'm trying to compile some code but I always get an error[/color]

    Ouch.

    Shoot that compiler.


    [color=blue]
    > Error
    > c:\cesource\BKK ernel\BKDrvr.c( 9) : fatal error C1083: Cannot open
    > include file: 'C:\WINDDK\3790 \ifs\ntifs.h': No such file or directory[/color]

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

    --
    A: Because it messes up the order in which people normally read text.
    Q: Why is it such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet and in e-mail?

    Comment

    • Matthias Käppler

      #3
      Re: ntifs.h help

      > ..... ntifs.h is there!(C:\WINDD K\3790\ifs\w2k\ ntifs.h)
      [...][color=blue]
      > c:\cesource\BKK ernel\BKDrvr.c( 9) : fatal error C1083: Cannot open
      > include file: 'C:\WINDDK\3790 \ifs\ntifs.h': No such file or directory[/color]

      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.

      Comment

      • ddk@msn.com

        #4
        Re: ntifs.h help

        Matthias Käppler wrote:[color=blue][color=green]
        >>..... ntifs.h is there!(C:\WINDD K\3790\ifs\w2k\ ntifs.h)[/color]
        >
        > [...]
        >[color=green]
        >>c:\cesource\B KKernel\BKDrvr. c(9) : fatal error C1083: Cannot open
        >>include file: 'C:\WINDDK\3790 \ifs\ntifs.h': No such file or directory[/color]
        >
        >
        > 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.[/color]

        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

        Comment

        • Chuck McDevitt

          #5
          Re: ntifs.h help

          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.



          Comment

          • ddk@msn.com

            #6
            Re: ntifs.h help

            Chuck McDevitt wrote:
            [color=blue]
            > 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.
            >
            >
            >[/color]

            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?

            Comment

            • Matthias Käppler

              #7
              Re: ntifs.h help

              ddk@msn.com wrote:
              [color=blue]
              > Matthias Käppler wrote:[color=green][color=darkred]
              >>>..... ntifs.h is there!(C:\WINDD K\3790\ifs\w2k\ ntifs.h)[/color]
              >>
              >> [...]
              >>[color=darkred]
              >>>c:\cesource\ BKKernel\BKDrvr .c(9) : fatal error C1083: Cannot open
              >>>include file: 'C:\WINDDK\3790 \ifs\ntifs.h': No such file or directory[/color]
              >>
              >>
              >> 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.[/color]
              >
              > 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[/color]

              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

              Comment

              Working...