How to get a process address space size information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sendil kumar
    New Member
    • Sep 2007
    • 26

    #1

    How to get a process address space size information

    I just want to find the address space size that a process is allowed to access information in C++. For ex, in Win32 the allowed address space is 2 GB and this will be extended to 3GB if the process header contains Large_Address_A ware header.

    In my C++ project, I want to get the allowed address space size that a process can access. This should be executed both in windows and unix systems.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You will need to write a wrapper function for Unix and another one of the same name for Windows. Each of these wrappers will make the correct operating system call. Then you build for Windows using the Windows wrapper and anjother build for Unix using the Unix wrapper.

    The each wrapper should be in its own file.

    Comment

    Working...