All Forums
 Microsoft Windows CE
 eVC Application Development
 Get/Set system memory allocation
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 18 Jul 2002 :  14:22:54  Show Profile  Email Poster
Q: How do I programmatically get or set the system memory allocation for my ADS development system?

You can programmatically check or alter the current memory allocation with the following API calls (which are not in the eVT Help):


extern "C" BOOL GetSystemMemoryDivision(LPDWORD lpdwStoragePages,
LPDWORD lpdwRAMPages,
LPDWORD lpdwPageSize);

extern "C" DWORD SetSystemMemoryDivision(DWORD dwStoragePages);


1 page = 4096 bytes, so to allocate 6M of storage space you would do the following:


SetSystemMemoryDivision(0x600);


-----------------
Chris Tacke, eMVP
Applied Data Support

akidder

1519 Posts

Posted - 22 Jul 2002 :  18:32:14  Show Profile  Email Poster
Chris Tacke's post and sample application demonstrates how to use this API.
Go to Top of Page
  Topic  
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000