Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 24th, 2004, 5:36 PM   #1
DiSA
Newbie
 
Join Date: Sep 2004
Posts: 4
Rep Power: 0 DiSA is on a distinguished road
quite an odd question...
Does anyone know how can i get the start cluster(first cluster of cluster chain) number of a particular file in a fat32 filesystem running under windows? Is this possible at all? or windows won't let me...?
i'd appreciate any comments, suggestions... thanks!
DiSA is offline   Reply With Quote
Old Sep 24th, 2004, 6:10 PM   #2
Ashcroft
Programmer
 
Join Date: Sep 2004
Posts: 38
Rep Power: 0 Ashcroft is on a distinguished road
Been a while since I did low level code like that but you want the 0x21 "OS" interrupts, there are some other BIOS interupts (0x25, 0x26) but they will not be nearly as portable as these.

http://msdn.microsoft.com/library/default..../fat32_70z4.asp
Ashcroft is offline   Reply With Quote
Old Sep 25th, 2004, 4:28 PM   #3
DiSA
Newbie
 
Join Date: Sep 2004
Posts: 4
Rep Power: 0 DiSA is on a distinguished road
thanks a lot, i'll take a look. but i think this is only for win 9x, and i'm wornking under nt, think i forgott to say that...
DiSA is offline   Reply With Quote
Old Sep 27th, 2004, 2:15 PM   #4
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
I do not think that windows exports API functions that will grant you low level access to the Disk... as of Windows 2000 you can not even get low level access to the disk without making Windows Angry. Windows will lock it on you, you actually have to reboot and execute your program in the startup so that you can bypass Windows in those circumstances.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Sep 27th, 2004, 3:09 PM   #5
DiSA
Newbie
 
Join Date: Sep 2004
Posts: 4
Rep Power: 0 DiSA is on a distinguished road
rebooting is not an option... but i've found something in windows sdk, DeviceIoControl with FSCTL_GET_RETRIEVAL_POINTERS, I think that may be the solution, i have to give it a try...
Thanks!
DiSA is offline   Reply With Quote
Old Sep 28th, 2004, 2:11 AM   #6
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
I would of thought you could read from it but i would doubt you can write direct to it without windows's permission.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 28th, 2004, 7:49 AM   #7
DiSA
Newbie
 
Join Date: Sep 2004
Posts: 4
Rep Power: 0 DiSA is on a distinguished road
you may be right, but I just need to read it... so it doesn't matter to me
thanks
DiSA is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC