473,508 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

absolute disk read write

Is it possible to read/write sectores in any hard drive? I have some examples
from the net in vc++ but is there a simple way in c#? Thanks

The ideia is to do a disk search of a pattern that identifies pictures for
examples and by it's size, save all those sectores/clusters to another disc
drive. Very usefull if a virus like some that are in the wild make my files
to size 0!!!
I have done some sector editing with some programas like winhex that is a
disk editor but it is a lot of work by hand...
Nov 17 '05 #1
2 3518
you have to use interop/pinvoke to call the api function.
see www.pinvoke.net for the appropriate method signature in c#.
"Adelino" <Ad*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:E3**********************************@microsof t.com...
Is it possible to read/write sectores in any hard drive? I have some examples from the net in vc++ but is there a simple way in c#? Thanks

The ideia is to do a disk search of a pattern that identifies pictures for
examples and by it's size, save all those sectores/clusters to another disc drive. Very usefull if a virus like some that are in the wild make my files to size 0!!!
I have done some sector editing with some programas like winhex that is a
disk editor but it is a lot of work by hand...

Nov 17 '05 #2
Thanks Cody. I guess it has to be... virus... you gotta love'm! You gotta
hate'm!

"cody" wrote:
you have to use interop/pinvoke to call the api function.
see www.pinvoke.net for the appropriate method signature in c#.
"Adelino" <Ad*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:E3**********************************@microsof t.com...
Is it possible to read/write sectores in any hard drive? I have some

examples
from the net in vc++ but is there a simple way in c#? Thanks

The ideia is to do a disk search of a pattern that identifies pictures for
examples and by it's size, save all those sectores/clusters to another

disc
drive. Very usefull if a virus like some that are in the wild make my

files
to size 0!!!
I have done some sector editing with some programas like winhex that is a
disk editor but it is a lot of work by hand...


Nov 17 '05 #3

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

Similar topics

4
5273
by: Shannon Jacobs | last post by:
I'm doing some trivial surveys, and I want to know if the same user answers twice. Can't really know that, but at least I thought I could check for the same browser/computer combination by using a...
8
4206
by: Foodbank | last post by:
Hi, Has anyone ever hashed a text file to disk before? I'm trying to convert an in-memory hash to disk hash and I can't find any relevant information to help me. Also, I'd like to use lseek,...
12
3737
by: Chris Springer | last post by:
I'd like to get some feedback on the issue of storing data out to disk and where to store it. I've never been in a production environment in programming so you'll have to bear with me... My...
5
6570
by: Paul | last post by:
I am trying to create a log of certain events on the website by writing them to a text file. The logging code is in an "included" file that is inserted into the pages that need to be monitored....
13
4826
by: ragtag99 | last post by:
I posted this on comp.lang.asm.x86, alt.os.development, comp.arch, comp.lang.c++ Im working with windows xp professional, NTFS and programming with MASM, c++ (free compiler) or visual basic 6.0...
6
2562
by: JT | last post by:
Hi, Here's my problem. I am using an obscure font in my Windows Form application, so I want to ensure that people using the application will have the text displayed as intended. I've included...
2
2282
by: Stef Mientki | last post by:
hello, I'm trying to convert the links in html pages to absolute links, these pages can either be webpages or files on local harddisk (winXP). Now I've struggling for a while, and this code...
10
6135
by: gary0gilbert | last post by:
An unusual spin to this recurring disk or network error in a Terminal Server environment. Access 2000, Terminal Server 2000, file server is windows 2000. All users have a separate copy of the...
2
2254
by: Author | last post by:
I am exploring the DeflateStream class as a practice. I thought it is fun to compress a text file and write it to a disk file. So I created the following method. If you don't bother reading the...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7331
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
7391
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...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5633
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,...
1
5056
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...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.