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. Virtual Memory Check

Virtual Memory Check

Scheduled Pinned Locked Moved C / C++ / MFC
jsonperformancehelpquestion
4 Posts 2 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.
  • K Offline
    K Offline
    keb
    wrote on last edited by
    #1

    Hi, I need a help once again. What are the proper Window API to check how much of memory space you have allocated and how much virtual memory space you have left:confused::confused:?

    A 1 Reply Last reply
    0
    • K keb

      Hi, I need a help once again. What are the proper Window API to check how much of memory space you have allocated and how much virtual memory space you have left:confused::confused:?

      A Offline
      A Offline
      Alexander Ruscle
      wrote on last edited by
      #2

      Try

      VOID GlobalMemoryStatus(
      LPMEMORYSTATUS lpBuffer // pointer to the memory status structure
      );

      hth -ar

      K 1 Reply Last reply
      0
      • A Alexander Ruscle

        Try

        VOID GlobalMemoryStatus(
        LPMEMORYSTATUS lpBuffer // pointer to the memory status structure
        );

        hth -ar

        K Offline
        K Offline
        keb
        wrote on last edited by
        #3

        Thanks, does this check for Virtual Memory used by per apps? Or as a system?

        A 1 Reply Last reply
        0
        • K keb

          Thanks, does this check for Virtual Memory used by per apps? Or as a system?

          A Offline
          A Offline
          Alexander Ruscle
          wrote on last edited by
          #4

          Take a look at GetProcessWorkingSetSize () and see if that's what you need. There's a whole slough of memory management functions in the API, just check out the documentation in MSDN! :) -ar

          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