Jump to content

VirtualAlloc failed in Windows PE


Recommended Posts

Posted

Hi,

I am writing one application for Windows PE using vc++6.0 as

development platform. I am allocating memory using

virtualalloc as:

VirtualAlloc (pPtrToMem, //NULL

dwSize,

MEM_COMMIT,

PAGE_READWRITE);

This is running fine on Win2k, but if I try to run this on

Windows PE, i am getting an error as "paging file is too

small to complete this operation(ERROR_COMMITMENT_LIMIT)"

can anybody tell me how to increase pagefile limit in Windows PE? or is there any other reason?

Any help is welcome.

Thanks

.


Posted

I want to test the total available memory in the system & thats why using VirtualAlloc, so how can a ram drive will help me in this? is there any other way to get the total available system meory & pointer yo starting location(smthing like INT15 h in DOS)

Posted
I want to test the total available memory in the system & thats why using VirtualAlloc, so how can a ram drive will help me in this? is there any other way to get the total available system meory & pointer yo starting location(smthing like INT15 h in DOS)

Now that I understand where you are going with this, I honestly don't know I would try to hit up the MS news groups on that one.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...