absolute disk read write

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adelino

    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...
  • cody

    #2
    Re: absolute disk read write

    you have to use interop/pinvoke to call the api function.
    see www.pinvoke.net for the appropriate method signature in c#.


    "Adelino" <Adelino@discus sions.microsoft .com> schrieb im Newsbeitrag
    news:E3EDB916-1FFA-40DD-BE2E-56EFDB820566@mi crosoft.com...[color=blue]
    > Is it possible to read/write sectores in any hard drive? I have some[/color]
    examples[color=blue]
    > 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[/color]
    disc[color=blue]
    > drive. Very usefull if a virus like some that are in the wild make my[/color]
    files[color=blue]
    > 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...[/color]


    Comment

    • Adelino

      #3
      Re: absolute disk read write

      Thanks Cody. I guess it has to be... virus... you gotta love'm! You gotta
      hate'm!

      "cody" wrote:
      [color=blue]
      > you have to use interop/pinvoke to call the api function.
      > see www.pinvoke.net for the appropriate method signature in c#.
      >
      >
      > "Adelino" <Adelino@discus sions.microsoft .com> schrieb im Newsbeitrag
      > news:E3EDB916-1FFA-40DD-BE2E-56EFDB820566@mi crosoft.com...[color=green]
      > > Is it possible to read/write sectores in any hard drive? I have some[/color]
      > examples[color=green]
      > > 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[/color]
      > disc[color=green]
      > > drive. Very usefull if a virus like some that are in the wild make my[/color]
      > files[color=green]
      > > 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...[/color]
      >
      >
      >[/color]

      Comment

      Working...