Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm developing an application for interacting with pen drive in Windows XP. I used createfile() to get handle. Further I need to read/write data from the specified sector.

I used ReadFile()/WriteFile() for read and write, but
here i'm unable to specify a sector number to read/write from a
specified sector.

I also used IOCTL_DISK_READ for reading data from a specified sector, but it is not supported in windows XP(it works only in Windows CE)

Can anyone help me.

Regards
S.Mohanraj
Posted

1 solution

Here is one answer:
http://www.codeguru.com/cpp/w-p/system/misc/article.php/c5765[^]

Regards
Espen Harlinn
 
Share this answer
 
Comments
Mohanraj Sam 10-Jan-11 5:39am    
Thanks. I'ad used what is said in the above link, but i get the error code 50(i.e "The request is not supported.
")when using VWIN32_DIOC_DOS_INT25 for read. Can you guess this error.

Regards
Mohan
Espen Harlinn 10-Jan-11 5:50am    
This may explain: http://www.codeproject.com/Questions/144562/VWIN32_DIOC_DOS_INT25-is-not-working.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900