Formatting a HDD.

Hi,
I want to “Format” a partition of HDD. The traget HDD is a secondary HDD(non
Boot HDD). Is there any API or IOCTL in Windows that can do this. I want to
make this compatibale in Win 95 and Win NT Technology. Is this possible at
application level? If not could you please, let me know how to have this
done at driver level.

Also, ( :slight_smile: ) how do we come to know if there is any file in a sector,
without reading the sector(by checking the MFT or something like that).

I would be greteful if you could give me some code snippet.

with thanks and regards,
Venkat Raghavulu A.R
"

ZenSar Technologies Ltd. Mail Disclaimer: This e-mail and any files
transmitted with it are confidential and the views expressed in the same are
not necessarily the views of ZenSar Technologies Ltd., and its Directors,
Management or Employees. This communication represents the originator’s
personal views and opinions. If you are not the intended recipient or the
person responsible for delivering the e-mail to the intended recipient, be
advised that you have received this e-mail by error, and that any use,
dissemination, forwarding, printing, or copying of this e-mail is strictly
prohibited. You shall be under obligation to keep the contents of this
e-mail, strictly confidential and shall not disclose, disseminate or divulge
the same to any Person, Company, Firm or Entity. Please ensure you have
adequate virus protection before you open or detach any documents from this
transmission. ZenSar Technologies Ltd. does not accept any liability for
viruses. If you received this e-mail in error, please immediately notify
xxxxx@zensar.com. The rights to monitor all e-mail communication
through our network are reserved with us.

"

Hi,
I want to “Format” a partition of HDD. The traget HDD is a secondary HDD(non
Boot HDD). Is there any API or IOCTL in Windows that can do this. I want to
make this compatibale in Win 95 and Win NT Technology. Is this possible at
application level? If not could you please, let me know how to have this
done at driver level.

Also, ( :slight_smile: ) how do we come to know if there is any file in a sector,
without reading the sector(by checking the MFT or something like that).

I would be greteful if you could give me some code snippet.
(Am sorry for resending it again)

with thanks and regards,

Venkat Raghavulu A.R
"

ZenSar Technologies Ltd. Mail Disclaimer: This e-mail and any files
transmitted with it are confidential and the views expressed in the same are
not necessarily the views of ZenSar Technologies Ltd., and its Directors,
Management or Employees. This communication represents the originator’s
personal views and opinions. If you are not the intended recipient or the
person responsible for delivering the e-mail to the intended recipient, be
advised that you have received this e-mail by error, and that any use,
dissemination, forwarding, printing, or copying of this e-mail is strictly
prohibited. You shall be under obligation to keep the contents of this
e-mail, strictly confidential and shall not disclose, disseminate or divulge
the same to any Person, Company, Firm or Entity. Please ensure you have
adequate virus protection before you open or detach any documents from this
transmission. ZenSar Technologies Ltd. does not accept any liability for
viruses. If you received this e-mail in error, please immediately notify
xxxxx@zensar.com. The rights to monitor all e-mail communication
through our network are reserved with us.

"

This might be of some help.
http://www.sysinternals.com/ntw2k/source/fmifs.shtml http:

Niraj

-----Original Message-----
From: Venkat Raghavulu [mailto:xxxxx@zensar.com]
Sent: Tuesday, September 17, 2002 9:25 AM
To: File Systems Developers
Subject: [ntfsd] Formatting a HDD.

Hi,
I want to “Format” a partition of HDD. The traget HDD is a secondary HDD(non Boot HDD). Is there any API or IOCTL in Windows that can do this. I want to make this compatibale in Win 95 and Win NT Technology. Is this possible at application level? If not could you please, let me know how to have this done at driver level.

Also, ( :slight_smile: ) how do we come to know if there is any file in a sector, without reading the sector(by checking the MFT or something like that).

I would be greteful if you could give me some code snippet.
(Am sorry for resending it again)

with thanks and regards,

Venkat Raghavulu A.R
"

ZenSar Technologies Ltd. Mail Disclaimer: This e-mail and any files transmitted with it are confidential and the views expressed in the same are not necessarily the views of ZenSar Technologies Ltd., and its Directors, Management or Employees. This communication represents the originator’s personal views and opinions. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail by error, and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. You shall be under obligation to keep the contents of this e-mail, strictly confidential and shall not disclose, disseminate or divulge the same to any Person, Company, Firm or Entity. Please ensure you have adequate virus protection before you open or detach any documents from this transmission. ZenSar Technologies Ltd. does not accept any liability for viruses. If you received this e-ma!
il in error, please immediately notify xxxxx@zensar.com. The rights to monitor all e-mail communication through our network are reserved with us.

"


You are currently subscribed to ntfsd as: xxxxx@netapp.com
To unsubscribe send a blank email to %%email.unsub%%</http:>

Formatting a HDD.>Also, ( :slight_smile: ) how do we come to know if there is any
file in a sector, without reading the sector

(by checking the MFT or something like that).

FSCTL_GET_RETRIEVAL_POINTERS returns the list of runs occupied by the
file.

ZenSar Technologies Ltd. Mail Disclaimer: This e-mail and any files
transmitted with it are
confidential and the views expressed in the same are not necessarily
the views of ZenSar
Technologies Ltd., and its Directors, Management or Employees.

“Or Employees”??? Including the message author who is ZenSar employee?
This seems to be the most funny legal text I ever saw :slight_smile:

Max