#ifndef _SYSTEMEMORY_H_
#define _SYSTEMEMORY_H_

#include "windows.h"

typedef unsigned long       DWORD;

class SystemMemory
{
private:
	MEMORYSTATUSEX memoryStat;
private:
	int memoryCall();
public:
	int getLoadPercent(int &val);
	int getUsage(double &val);
	int getTotalByte(DWORD &val);
	int getFreeByte(DWORD &val);
};

#endif
#ifndef _SYSTEMEMORY_H_
#define _SYSTEMEMORY_H_

#include "windows.h"

class SystemMemory
{
private:
	MEMORYSTATUSEX memoryStat;
private:
	int memoryCall();
public:
	int getLoadPercent(int &val);
	int getUsage(double &val);
	int getTotalByte(DWORD &val);
	int getFreeByte(DWORD &val);
};

#endif
--- 
+++ 
@@ -2,6 +2,8 @@
 #define _SYSTEMEMORY_H_
 
 #include "windows.h"
+
+typedef unsigned long       DWORD;
 
 class SystemMemory
 {
Define 'unsigned long' as 'DWORD' for cross-platform
