473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HDD RAW sector reading in Visual C++

Hello,

I'm trying to create an application that can write/read in RAW
sectors in a HDD.
I know that in Win CE, with DeviceIoControl and IOCTL_DISK_READ or
IOCTL_DISK_WRITE, you can do this... But I'm actually working on Win
XPe, which mean I cannot use this (even if DeviceIoControl exists for
Win32 systems)...
If someone can tell me if some equivalent exist for those 2 IOCTL
codes for Win32 systems, or some alternative way which allows to do so,
I would really be grateful....

Thanks.

Dec 5 '05 #1
3 7008
Gnurto wrote:
Hello,

I'm trying to create an application that can write/read in RAW
sectors in a HDD.
I know that in Win CE, with DeviceIoControl and IOCTL_DISK_READ or
IOCTL_DISK_WRITE, you can do this... But I'm actually working on Win
XPe, which mean I cannot use this (even if DeviceIoControl exists for
Win32 systems)...
If someone can tell me if some equivalent exist for those 2 IOCTL
codes for Win32 systems, or some alternative way which allows to do so,
I would really be grateful....

Thanks.


This is an OS-specific question and should be posted in a different
newsgroup. See the FAQ for what is on-topic and for some suggested
alternatives:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Dec 5 '05 #2
On 5 Dec 2005 09:43:26 -0800, "Gnurto" <br***@caramail.com> wrote:
Hello,

I'm trying to create an application that can write/read in RAW
sectors in a HDD.
I know that in Win CE, with DeviceIoControl and IOCTL_DISK_READ or
IOCTL_DISK_WRITE, you can do this... But I'm actually working on Win
XPe, which mean I cannot use this (even if DeviceIoControl exists for
Win32 systems)...
If someone can tell me if some equivalent exist for those 2 IOCTL
codes for Win32 systems, or some alternative way which allows to do so,
I would really be grateful....

Thanks.


Wrong group. This is about the C++ language, not platform specific
programming tasks.
Dec 5 '05 #3
Gnurto wrote:
Hello,

I'm trying to create an application that can write/read in RAW
sectors in a HDD.
I know that in Win CE, [...]


This has nothing to do with Standard C++. You're in a wrong newsgroup.
Try 'comp.os.ms-windows.programmer.win32' or any other relevant forum.

V
Dec 5 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dfg | last post by:
Can I write a boot sector using VB? Is there some built in library, or is it possible to make my own? Can I embed Assembly language? Getting ready to work with Visual Basic for the first...
18
by: shakeel-ur-rehman | last post by:
I am wrtiting programm in C++ to read/take complete image of the partiton. can any one let me know the internet resources and web sites having tutorials relating to this and tell any sequence ...
7
by: Claudio Grondi | last post by:
Googling for keywords like "direct access sector harddrive Python module Windows" seems to give no useful results. Any hints(best if cross-platform)? Claudio
5
by: Sumana | last post by:
Hi All, We developed our project on VC++.Net console application to create image of disk and to write the image We are having problem with reading and writing the sector beyond 6GB Disk or...
12
by: Krunoslav Ostrouska | last post by:
How can i write on specifyed sector on a multimedia card? I must go round file system and write/read direct. C# VS2003 Thanks Kruno
3
by: Scott Bell | last post by:
Hello all, What is the equivalent in the .NET Framework for accessing a device at the block/sector level such as one would when using CreateFile on a device like "\\.\D:"? Attempting to create...
1
by: temir_gal | last post by:
Good evening! I can't read the sector's from floppy in Win98 OS. My application is 32-capacity and that's why I can't use interrupts. At the same time HANDLE hFile1 = CreateFile( "\\\\.\\A:",...
5
by: Jordi Maycas | last post by:
Could I do something like this with .net 2005? PROGRAM WriteBootSector; VAR DiskSectorsPerTrack, DiskTracksPerHead, DiskHeads : WORD; FUNCTION WriteSector(Sector : WORD; Buffer : POINTER) :...
1
jlm699
by: jlm699 | last post by:
Greetings friends, It's been a while since I've visited this C/C++ forum, and as expected my C++ is unacceptably rusty. Recently I've been reading about Master Boot Records (MBR) and the boot...
1
by: CurtisW | last post by:
I have a bad sector on my NTFS HD. I know the sector number range from Spinrite. How do I find out the filename or directory it is storing? This is a cd storage drive with no OS. I can copy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.