Thread: Help with ZwQueryDirectoryFile for my Driver.

  1. #1
    Registered User
    Join Date
    Nov 2008

    Help with ZwQueryDirectoryFile for my Driver.


    I am new to driver development and currently developing a my simple driver that will simply ask a directory (or folder) as input from user-mode (e.g "z:\") and display all the files/folders exists in it. By the way, the directory input is passed-on to the kernel and then the kernel will processed the request; then the kernel sends a message containing the list of files/folders that will be parsed by the user-mode for display..

    i've read the msdn about ZwQueryDirectoryFile that returns various kind of information about files in the directory and i don't know how to used it. ^_^

    Can you help me how can i get all the files/folders exists in a directory?

    If im in the right track of using ZwQueryDirectoryFile, can you help me how to use this routine on getting files/folders?..

    And If you have other ways aside from using ZwQueryDirectoryFile routine, can you give me an idea HOW and if you have sample snippets can you show it to me?..

    Any help will be greatly appriciated.

    Thanks in advance to you guys.. ^_^


  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with ZwQueryDirectoryFile for my Driver.
    By taDo in forum Windows Programming
    Replies: 9
    Last Post: 11-27-2008, 08:54 AM
  2. Help with ZwQueryDirectoryFile for my Driver.
    By taDo in forum Networking/Device Communication
    Replies: 1
    Last Post: 11-26-2008, 12:13 AM
  3. Replies: 0
    Last Post: 07-28-2008, 03:10 AM
  4. Linux (2.6.10+) device driver: multiple classes?
    By filker0 in forum Linux Programming
    Replies: 3
    Last Post: 09-26-2005, 08:46 PM
  5. egavga.bgi
    By PING in forum Game Programming
    Replies: 6
    Last Post: 11-16-2004, 01:46 AM

Tags for this Thread