By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

How to get a process address space size information

P: 26
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.
May 5 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
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.
May 5 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.