|
-
March 4th, 2007, 11:45 PM
#1
Space in Pendrive
I am developing application related to pen drive in VC++.
I want to know the available space in the pendrive before sending data to it..
I should not deal with the drivers.
Can any one give suggestions regarding the APIs to find it.
Thanks in advance
Vijay
Last edited by Vjy; March 4th, 2007 at 11:46 PM.
Reason: modification
-
March 5th, 2007, 03:56 AM
#2
Re: Space in Pendrive
GetDiskFreeSpace or GetDiskFreeSpaceEx.
-
March 6th, 2007, 05:32 AM
#3
Free space in Pendrive
Hai.
I am developing VC++ application for a pendrive.
In this i want to know the available free space.
I discussed with some frens, they said to use GetDriveFreeSpaceEx() , but in this the 1st parameter consists of pointer to the file path, but iam having the handle of the device, nothing else....
How far will it work..
Waiting for suggestions
Thanks in advance
Vijay
-
March 6th, 2007, 05:52 AM
#4
Re: Free space in Pendrive
Do you know the drive? If so, you can use: GetDiskFreeSpaceEx
Albert.
Please, correct me. I'm just learning.... and sorry for my english :-)
-
March 6th, 2007, 07:03 AM
#5
Re: Space in Pendrive
[ Merged threads ]
Dear Vijay,
Please do not cross-post your questions in multiple forums.
Thank you!
-
March 6th, 2007, 07:05 AM
#6
Re: Space in Pendrive
Just a little additional question.
How did you get the handle without knowing the path (or drive letter)?
-
March 7th, 2007, 12:35 AM
#7
Re: Space in Pendrive
Thanks for your suggestions..
I got the handle to the device using createfile() function.
I didnot get the drive letter, i think the drive letter is with driver.
But iam having only the handle and also i am able to get the device information like the device descriptors.....
Now i want to transfer data to it..
Could you give suggestions in this aspect.
Thanks
Vijay
-
March 7th, 2007, 01:26 AM
#8
Re: Space in Pendrive
Pendrive is not different from other drives for accessing it, you should use standrd Windows File/Folder API's for pendrive to, treating it as normal drive. The only thing you need to know about pendrive is the drive letter, that you can do by looking at drive type given by GetDriveType.
Regards,
Ramkrishna Pawar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|