Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VirtualAlloc failed in Windows PE

Featured Replies

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

.


  • Author

I think 1.2, its not mentioned specifically anywhere in the documentation i have

This is mainly due to PE not having a pagefile, you can add a ram drive though and try to diect it there.

  • Author

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)

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.

  • Author

hey, its wrking now..

anyways thanks for help

hey, its wrking now..

anyways thanks for help

So what did you do to make it work since there is no pagefile in PE?

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.