Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. 'Fake' the freespace of a hdd

'Fake' the freespace of a hdd

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminwindows-adminquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ALLERSLIT
    wrote on last edited by
    #1

    Hey, basically what I am trying is to modify the data of a harddrive. I want it to show more free space than it has, i know it would be only visually but that's exactly what I am trying to do. OS would be windows server 2008, if that matters. How would I go about doing this? I tried to google but couldn't really find anything neccessary. Thanks

    L D 2 Replies Last reply
    0
    • A ALLERSLIT

      Hey, basically what I am trying is to modify the data of a harddrive. I want it to show more free space than it has, i know it would be only visually but that's exactly what I am trying to do. OS would be windows server 2008, if that matters. How would I go about doing this? I tried to google but couldn't really find anything neccessary. Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The only way that comes to mind is to add a filter to the driver and fake up the size when the driver responds to an IOCTL for the freespace. You need to read up on Windows Driver Development Kit.

      Just say 'NO' to evaluated arguments for diadic functions! Ash

      1 Reply Last reply
      0
      • A ALLERSLIT

        Hey, basically what I am trying is to modify the data of a harddrive. I want it to show more free space than it has, i know it would be only visually but that's exactly what I am trying to do. OS would be windows server 2008, if that matters. How would I go about doing this? I tried to google but couldn't really find anything neccessary. Thanks

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        ALLERSLIT wrote:

        I want it to show more free space than it has...

        In just your application, or do you want Windows to "lie" too?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups