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_Aware 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.
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.