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. GetDiskFreeSpaceEX API Problem

GetDiskFreeSpaceEX API Problem

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelpquestion
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.
  • S Offline
    S Offline
    skuu
    wrote on last edited by
    #1

    hi, I need to get the actual amount of free space available on the hard disc. I am using GetDiskFreeSpaceEX API to get the amount of free space. The problem is that the amount of free space returned is different at different times. Can any one tell me the reason why the value is different? Also, Is there any other API which is much more reliable than GetdiskFreeSpaceEx? Thank u in advance , regards, nisha

    C M 2 Replies Last reply
    0
    • S skuu

      hi, I need to get the actual amount of free space available on the hard disc. I am using GetDiskFreeSpaceEX API to get the amount of free space. The problem is that the amount of free space returned is different at different times. Can any one tell me the reason why the value is different? Also, Is there any other API which is much more reliable than GetdiskFreeSpaceEx? Thank u in advance , regards, nisha

      C Offline
      C Offline
      chetan210183
      wrote on last edited by
      #2

      I think, it is due to OverFlow. Check once. Using FindFirstFile and FindNextFile methods. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp The above link may help u. Chetan. Helping others satisfies you...

      1 Reply Last reply
      0
      • S skuu

        hi, I need to get the actual amount of free space available on the hard disc. I am using GetDiskFreeSpaceEX API to get the amount of free space. The problem is that the amount of free space returned is different at different times. Can any one tell me the reason why the value is different? Also, Is there any other API which is much more reliable than GetdiskFreeSpaceEx? Thank u in advance , regards, nisha

        M Offline
        M Offline
        Monty2
        wrote on last edited by
        #3

        Must be something wrong with your code, i never had any problem with it can you paste the exact code


        C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

        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