Re: how to hide a directory?

-----Original Message-----
From: William Chow [mailto:xxxxx@sftechserv.com]
Sent: Friday, August 22, 2003 6:00 PM
To: File Systems Developers
Subject: [ntfsd] Re: how to hide a directory?

Writing any sort of Windows code (or any code which utilizes modern system
functionality) is very different from writing sequential code. I can’t even
remember the last time I wrote a typical, sequential style program of
significant size and functionality.
The difficult parts of system driver development (especially for beginners)
are:

  1. Understanding the architecture of the target OS in a non-trivial manner.
  2. Getting to know the API (just try browsing the DDK documentation)
  3. Debugging (very very time-consuming and difficult)

Driver development is an all-or-nothing proposition. You either have no idea
what’s going on, or you know the system and the code in a non-trivial
fashion.

Good places to start:
Windows NT Device Driver Development by the OSR people (if you can find a
copy).
The DDK (obviously).
The IFS (obviously).
Windows NT File System Internals (download from web or find used copy)

Things which won’t work:
Just looking at a bunch of “example” code is not going to get you anywhere.
You can’t just simply get the ddk and get SFILTER and expect to compile and
play around with it. You need to know more-or-less what the thing does
before you screw around with it.
Getting in over your head with the API before you understand the base
concepts. Unlike other types of programming you can’t just “ignore stuff for
now.” Basically every line of code inside a driver is pretty much essential
for its functionality, so before you dive into example code you need to
understand how stuff is structured and why it’s there.

Things which will work:
Lots of debug prints, getting to know Windbg really well, and learning how
to use logging in general.

----- Original Message -----
From: “Tom Hansen”
To: “File Systems Developers”
Sent: Friday, August 22, 2003 7:33 AM
Subject: [ntfsd] Re: how to hide a directory?

Writing device code in Windows is very different from writing your
typical step-step (sequential) programs. It isn’t for everybody and I
would not recommend just jumping into it on an aggressive schedule if
you have never done system level development before. Consider getting
help from consultants that have experience in this area - or as Nick
says, start reading, experimenting and learning on your own. But don’t
expect a reliable driver in a short period of time.

/TomH

-----Original Message-----
From: Nick Ryan [mailto:xxxxx@nryan.com]
Sent: Friday, August 22, 2003 1:19 AM
To: File Systems Developers
Subject: [ntfsd] Re: how to hide a directory?

Too complex to understand? Well, then you’ve got to increase your
understanding, cuz that’s the way it is in these here parts. :slight_smile:

tu21cn wrote:
> Hello Nick Ryan, thanks for your help!
> I have found some examples in the list, but some code is too complex
to
> understand.
>
> “Nick Ryan” wrote in message news:xxxxx@ntfsd…
>
>>Intercept IRP_MJ_DIRECTORY_CONTROL and filter IRP_MN_QUERY_DIRECTORY
>>buffers. Complicated, but there are good examples in the ntfsd list
>>archives.
>>
>>tu21cn wrote:
>>
>>
>>>If I want to hide a directory (i.e c:\temp), what should I do? Is
there
>>>someone can tell me the detail or how to get a document about this,
>
> thanks!
>
>>>
>>>
>>>
>>–
>>Nick Ryan (MVP for DDK)
>>
>>
>>
>
>
>
>
>


Nick Ryan (MVP for DDK)


You are currently subscribed to ntfsd as: xxxxx@exagrid.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@sftechserv.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntfsd as: sboboc@ps.ro
To unsubscribe send a blank email to xxxxx@lists.osr.com