Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/14/2010

You can use the Windows Embedded CE GlobalMemoryStatusfunction to get information about the amount of available memory on the device, as shown in the following code example.

Copy Code
	MEMORYSTATUS   memInfo;
	STORE_INFORMATION   si;
	TCHAR   szBuf[MAX_PATH];

	// Program memory.
	memInfo.dwLength = sizeof(memInfo);
	GlobalMemoryStatus(&memInfo);

	wsprintf(szBuf, __TEXT("Total RAM: %d bytes\n Free: %d \nUsed:
%d"), 
		memInfo.dwTotalPhys, memInfo.dwAvailPhys,
memInfo.dwTotalPhys — 
		memInfo.dwAvailPhys);
	MessageBox(hwnd, szBuf, __TEXT("Program Memory"), MB_OK);

	// Storage memory.
	GetStoreInformation(&si);
  
	// dwStoreSize isn't exact due to compression. 
	wsprintf(szBuf, __TEXT("Free: %d"), si.dwFreeSize);
	MessageBox(hwnd, szBuf, __TEXT("Storage Memory"), MB_OK);

Remarks

Note:
GetStoreInformationis deprecated. Use GetDiskFreeSpaceExinstead.

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.