Hello there,
i want to know whether it is possible to write the assembly code to issue
the 13h interrupt to perform absolute disk read/write through a custom
device driver under NT, 2000.If not then please , let us know the
procedure to achieve the same.
( we are trying to issue the 13h interrupt through our custom device
driver in 2000 but our system is getting restarted with out executing the
interrupt, we are trying to find the solution for it)
it is VERY VERY URGENT
any help in this regard is mostly appreciated.
thanks in advance.
It’s not. talk to devices in charge through IOCTLs. Check help in DDK.
----- Original Message -----
From: “TheDonx”
To: “NT Developers Interest List”
Sent: Wednesday, August 07, 2002 3:16 PM
Subject: [ntdev] Reading/Writing floppy sectors through 13h interrupt under
NT,2000
> Hello there,
> i want to know whether it is possible to write the assembly code to issue
> the 13h interrupt to perform absolute disk read/write through a custom
> device driver under NT, 2000.If not then please , let us know the
> procedure to achieve the same.
> ( we are trying to issue the 13h interrupt through our custom device
> driver in 2000 but our system is getting restarted with out executing the
> interrupt, we are trying to find the solution for it)
> it is VERY VERY URGENT
> any help in this regard is mostly appreciated.
> thanks in advance.
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
“TheDonx” wrote in message news:xxxxx@ntdev…
>
> Hello there,
> i want to know whether it is possible to write the assembly code to issue
> the 13h interrupt to perform absolute disk read/write through a custom
> device driver under NT, 2000.If not then please , let us know the
> procedure to achieve the same.
>
In a word: No. It is not possible to use int 13 to do disk reads/writes on
NT from a device driver. NT does not use the BIOS (once the system has been
loaded into memory).
You can do absolute disk I/O by issuing direct reads/writes to the disk…
The precise sequence for doing this varies according to what you’re trying
to do, and when.
If this issue is VERY VERY URGENT I recommend you contact a consultant that
could help you with this problem, or Microsoft’s DDK support team. Peer
support forums are nice, and can be responsive, but I sure wouldn’t count on
the kindness of strangers for something VERY VERY URGENT.
Peter
OSR
Why dont u try CreateFile/ReadFile/WriteFile/CloseHandle method ?
Regards,
int3
----- Original Message -----
From: “TheDonx”
To: “NT Developers Interest List”
Sent: Wednesday, August 07, 2002 5:46 PM
Subject: [ntdev] Reading/Writing floppy sectors through 13h interrupt under
NT,2000
> Hello there,
> i want to know whether it is possible to write the assembly code to issue
> the 13h interrupt to perform absolute disk read/write through a custom
> device driver under NT, 2000.If not then please , let us know the
> procedure to achieve the same.
> ( we are trying to issue the 13h interrupt through our custom device
> driver in 2000 but our system is getting restarted with out executing the
> interrupt, we are trying to find the solution for it)
> it is VERY VERY URGENT
> any help in this regard is mostly appreciated.
> thanks in advance.
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com
> To unsubscribe send a blank email to %%email.unsub%%
>
Can I know how to specify a Sector ,Track ,And Head in ReadFile…
Can you please give me some simple code steps to Read a perticular sector.
Do you can get Disk Geometry and calculate the linear position of sector
using Head, Track and sector. Then do you can use SetFilePointer to go to
position and use readfile to read the sector.
Heldai
----- Original Message -----
From: “TheDonx”
To: “NT Developers Interest List”
Sent: Wednesday, August 07, 2002 10:33 AM
Subject: [ntdev] Re: Reading/Writing floppy sectors through 13h interrupt
under NT,2000
> Can I know how to specify a Sector ,Track ,And Head in ReadFile…
>
> Can you please give me some simple code steps to Read a perticular sector.
>
> —
> You are currently subscribed to ntdev as: xxxxx@scuasecurity.com.br
> To unsubscribe send a blank email to %%email.unsub%%
This link might give u more information :
http://www.codeguru.com/system/ReadSector.html
regards,
int3
----- Original Message -----
From: “TheDonx”
To: “NT Developers Interest List”
Sent: Wednesday, August 07, 2002 7:03 PM
Subject: [ntdev] Re: Reading/Writing floppy sectors through 13h interrupt
under NT,2000
> Can I know how to specify a Sector ,Track ,And Head in ReadFile…
>
> Can you please give me some simple code steps to Read a perticular sector.
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.net
> To unsubscribe send a blank email to %%email.unsub%%
“int3” wrote in message news:xxxxx@ntdev…
>
> This link might give u more information :
> http://www.codeguru.com/system/ReadSector.html
>
Do these IOCTLs actually work on NT? I don’t know, but I’d be surprised…
You’re CERTAIN that what you need to do is read a “particular” cyl, track,
head? A relative sector-offset onto the disk won’t do?
I can’t say I really understand that concept of “disk geometry” in these
days of devices that do their own translation no matter what you ask for.
Like I often say: Perhaps it would be better for you to give us a broader
picture of what it is that you’re trying to accomplish, and then maybe we
can suggest a way for you to best accomplish that. Sometimes asking “how
can I do specific thing X” is the wrong question, right? If you ask “How do
I accomplish this general task” we might give you an answer that doesn’t
involve having to do specific task X.
Peter
OSR
Sorry, I forgot to mention the section in the link
http://www.codeguru.com/system/ReadSector.html and section “Win NT/2000”
Regards,
int3
----- Original Message -----
From: “Peter Viscarola”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Wednesday, August 07, 2002 8:18 PM
Subject: [ntdev] Re: Reading/Writing floppy sectors through 13h interrupt
under NT,2000
> “int3” wrote in message news:xxxxx@ntdev…
> >
> > This link might give u more information :
> > http://www.codeguru.com/system/ReadSector.html
> >
>
> Do these IOCTLs actually work on NT? I don’t know, but I’d be
surprised…
>
> You’re CERTAIN that what you need to do is read a “particular” cyl, track,
> head? A relative sector-offset onto the disk won’t do?
>
> I can’t say I really understand that concept of “disk geometry” in these
> days of devices that do their own translation no matter what you ask for.
>
> Like I often say: Perhaps it would be better for you to give us a broader
> picture of what it is that you’re trying to accomplish, and then maybe we
> can suggest a way for you to best accomplish that. Sometimes asking “how
> can I do specific thing X” is the wrong question, right? If you ask “How
do
> I accomplish this general task” we might give you an answer that doesn’t
> involve having to do specific task X.
>
> Peter
> OSR
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.net
> To unsubscribe send a blank email to %%email.unsub%%