How to lock a volume of a drive
How to lock a volume of a drive
- Subject: How to lock a volume of a drive
- From: <email@hidden>
- Date: Thu, 12 Jan 2006 19:31:34 +0530
- Thread-topic: How to lock a volume of a drive
Title: How to lock a volume of a drive
Hi All
I am new to MacOsx. I am writing a program which will detect the drive mounted on the MacOsx system through an USB device. I want to lock the volume of that drive. I use FSSpec structure to be passed as a parameter in FSpSetFLock() to lock it .In order to form the FSSpec structure I use FSMakeFSSpec() and passed "VolumeRefNo, ParID as fsRtParID and the Filename as volumename and &FSSpec" Now when I run that program FSMakeFSSpec() return error for following different situation.
ParID = 0, Filename =volumename the error is -37 i.e Bad pathname
PartID=fsRtParID ,Filename =0 the error is -35 i.e drive donot exist.
PartID=fsRtParID ,Filename =volumename the error is -35 i.e drive donot exist.
So untill and unless I am able to form the FSSpec structure I am not able to lock that volume. So please can any body suggest how to lock a volume of a drive. Or my approach is right or wrong. Please help.
thanks with regards,
Pranab Halder
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden