Click here to Skip to main content
14,390,091 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

Regards
Espen Harlinn
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100