Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 3rd, 2004, 08:39 PM
JSM JSM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 JSM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Reading/Writing disk sectors on non-standard file systems

I need to be able to write data directly to floppy disks that don't have standard boot sectors (that is, that have sector 0 filled with random data).

I already managed to create a read/write system under Windows 95/98/ME using VXDs and under Windows NT/2000/XP using the DeviceIOControl API, however, both methods fail when sector 0 contains non-standard data.

Is there any way to either [preferably] modify the existing methods (stated above) to support non-standard boot sectors or, alternatively, use a different approach to the raw disk access?

ANY help would be greatly appreciated.

Reply With Quote
  #2  
Old June 10th, 2005, 10:49 PM
no1 no1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 no1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m
Reputation Power: 0
Quote:
Originally Posted by JSM
I need to be able to write data directly to floppy disks that don't have standard boot sectors (that is, that have sector 0 filled with random data).

I already managed to create a read/write system under Windows 95/98/ME using VXDs and under Windows NT/2000/XP using the DeviceIOControl API, however, both methods fail when sector 0 contains non-standard data.

Is there any way to either [preferably] modify the existing methods (stated above) to support non-standard boot sectors or, alternatively, use a different approach to the raw disk access?

ANY help would be greatly appreciated.


You should be able to use CreateFile() to open a handle to the disk which gives you direct access the individual sectors (including the boot sector). This method only works under NT/2000/XP though. Have a look at:

http://support.microsoft.com/default.aspx?scid=kb;en-us;100027

-no1

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Reading/Writing disk sectors on non-standard file systems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT