?
Solved

HOW TO DO DIRECT DISK IO FROM MSDOS UNDER WINDOWS?

Posted on 2003-03-19
5
Medium Priority
?
176 Views
Last Modified: 2010-04-16
I wannted to write a program that can sort the FAT-TABLE of a FAT32-Drive
and it has to run from MSDOS under Windows!
Something that Windows isn't blocking away!
0
Comment
Question by:Okey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 15

Expert Comment

by:VGR
ID: 8170532
please note that if you "run it from "DOS" under windows", you're not on true DOS and will be "blocked" whatever you try. You need to run it from TRUE DOS, ie having booted on a floppy.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8171178
Can MS-DOS work with FAT32?

mlmcc
0
 
LVL 15

Expert Comment

by:VGR
ID: 8172159
yes I think. Starting with Win98SE "DOS"

see "boot floppy disk image Win 98" in google
0
 
LVL 1

Author Comment

by:Okey
ID: 8173048
You seemed to be right VGR,
but isn't there a possibility
for example in protected mode
with which you can bypass or using Windows?
I thought about direct port access,
something working like Int 25&26
or DOS-Win95 API on INT21 AX=??4? CX=FFFFH.

I thought about to do simply,
what has been done under True DOS
to do under windows.

I don't know what Windows is doing to prevent this,
but it seems that,
the ports are simulated.

But how can this be?
I thought if i do direect access to the hardware
(communication with Drive-Processor)
that it would run,
because I thought that direct Hardware access under
DOS-Shell-Mode is possible.

Am I so wrong?

Please,
can someone explain,
how the hardware access is handled for DOS by Windows?

I think here are possibilities hidden.

Maybe someone knows a code solution,
that implements easily a protected mode routine,
that is accessing the nescesary WIN-API's for?

But at least,
I'm searching for something
like a direct Hardware access to a Harddrive
preferably from Realmode,
but protected mode would be OK, too.

I mean DOS Shell can't be emulating all the Hardware,
and I know that the DOS-Shell is working over the protected mode with windows,
especially for IRQ's like INT9 Keyboard Interrupt and so on.
So shouldn't there be a possibility
at least from protected mode?
Maybe implementing WIN-API's over protected mode?

The desired destination language is Turbo Pascal 7.0 and assembly.

Please,
I need a real experts comment for!
0
 
LVL 49

Accepted Solution

by:
dbrunton earned 100 total points
ID: 8176225
>>> because I thought that direct Hardware access under DOS-Shell-Mode is possible.

The lock command is stopping you.  You have to enable or disable it to permit direct access.

Try lock at the command prompt under the dos window.

You may have to

swapvectors
exec(lock)
swapvectors

to get this to work for you.  Be very careful.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
The Summer 2017 Scholarship Winners have been announced!
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question