// MemViewSDK.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "MemViewSDK.h"
#include "resource.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
HWND mainForm; // Main Window Handle
TCHAR szInfor[] =TEXT("Phicical Memory %lu bytes/nFree Physical Memory %lu bytes/nVirtual Memory %lu bytes/nFree Vitual Memory %lu bytes/nMemeory Usage%lu /nUser Mode Space %lu bytes/nUser Mode Space FREE %lu bytes/n");
BOOL CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
void GetMemInfor()
{
MEMORYSTATUS stMemInfor;
TCHAR szBuffer[1024];
::GlobalMemoryStatus(&stMemInfor);
wsprintf(szBuffer, szInfor, stMemInfor.dwTotalPhys, stMemInfor.dwAvailPhys,/
stMemInfor.dwTotalPageFile, stMemInfor.dwAvailPageFile,/
stMemInfor.dwMemoryLoad, stMemInfor.dwTotalVirtual,
stMemIn