Hi,
I am a student trying to learn the internals of file system in
windows.
I want to know the system calls for the following.
- Creating a file
- Closing a file.
- Moving a file. etc. I am new to windows system programming. I will
be
happy if some one a direct me to proper resources.
Thanks
Junaith Ahemed
Hi Juna!
I am a student trying to learn the internals of file system in
windows.
I want to know the system calls for the following.
- Creating a file
- Closing a file.
- Moving a file. etc. I am new to windows system programming. I will
be
happy if some one a direct me to proper resources.
Depends on the point of view, since “system calls” is ambiguous. In fact
there is much more about it, than just tell someone to create a file, to
close a file or to move a file. At least when talking about file system
internals this is more complicated.
You could search the MSDN on the web for “ZwCreateFile” to find information
about the “native Windows API” (system components like drivers call it).
Anyway, application programmers usually prefer the Windows API (look for
“CreateFile” on the MSDN to find out how to open/create a file with it). All
these calls don’t reach the filesystem-driver itself , but they are
translated by some windows subsystems and forwarded to the filesystem,
generally as “IRP_MJ_CREATE” request (also search the MSDN for it, it’s nice
documented for the most types of devices - unfortunately you will have to
spend some money in books if this really is what you’re looking for).
Tobias
----- Original Message -----
From: “juna_shah”
Newsgroups: ntfsd
To: “File Systems Developers”
Sent: Monday, December 16, 2002 8:36 PM
Subject: [ntfsd] File System Internals
Hi Junaith,
If what you want to do is write windows
applications that use files, you should check out the
File related Windows API.
- Start by searching for CreateFile in MSDN.
- The standard library functions fopen, fclose
etc will also be ok.
- The functions like CreateFile and fopen
finally result in calls like ZwCreateFile - the native
API.
If you are writing applications (user mode
programs), forget (3) and stick to (1).
Hope that helps.
Regards,
Manoj
— juna_shah wrote:
> Hi,
> I am a student trying to learn the internals of
> file system in
> windows.
> I want to know the system calls for the following.
>
> 1. Creating a file
> 2. Closing a file.
> 3. Moving a file. etc. I am new to windows system
> programming. I will
> be
> happy if some one a direct me to proper resources.
>
> Thanks
> Junaith Ahemed
>
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
%%email.unsub%%
=====
-----------------------------------
Manoj Paul Joseph,
Chennai (Madras),
India.
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com