Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible?????
Message
From
10/10/2002 12:55:21
 
 
To
10/10/2002 12:45:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00709684
Message ID:
00709944
Views:
26
>>Hi,
>>Is it possible that bad programming with VFP will cause bad sector on harddisk, and certain files will be lost/dissapear??
>>
>>If not, any possiblity?
>
>The only case where I heard that software could harm hardware was Commodore 128, more than a dozen years ago, where a certain machine code sequence was able to burn one chip. Never heard of any of those later or before.
>
>The code to create a bad sector should have access to disk's internal logic, which is probably feasible in theory, but is practically impossible to do with p-code.

Actually, the mechanism to mark a bad sector doesn't involve much beyond the ability to manipulate the FAT on FAT12, FAT16 and FAT32 volumes; DeviceIoControl() is certainly capable of talking to the disk-level driver and doing this. And since FAT isn't terribly secure, a devious and nasty programmer could simple jumble both copies of the FAT in an interesting fashion by determinging the location of each FAT on the volume, a simple enough mechanism!

And I'm not even being creative...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform