Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #if !defined(AFX_STDAFX_H__4DE40F48_8B7C_48C1_B976_B4E28340FEC9__INCLUDED_)
  6. #define AFX_STDAFX_H__4DE40F48_8B7C_48C1_B976_B4E28340FEC9__INCLUDED_
  7. // Change these values to use different versions
  8. #ifndef WINVER
  9. #define WINVER 0x0510
  10. #endif
  11. #ifndef _WIN32_IE
  12. #define _WIN32_IE 0x0500
  13. #endif
  14. #define _RICHEDIT_VER 0x0300
  15. #ifndef ARRAYSIZE
  16. #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
  17. #endif ARRAYSIZE
  18. #define WIDTH(r) ((r).right - (r).left)
  19. #define HEIGHT(r) ((r).bottom - (r).top)
  20. #include <atlbase.h>
  21. //#include <atlbase61.h>
  22. #include <atlapp.h>
  23. extern CAppModule _Module;
  24. #include <atlwin.h>
  25. #include <psapi.h>
  26. extern HMODULE g_hPSAPI;
  27. // Process memory counters struct.
  28. extern PROCESS_MEMORY_COUNTERS g_ProcessMem;
  29. // Initial process memory stuff
  30. extern PROCESS_MEMORY_COUNTERS g_ProcessMemInit;
  31. // Function pointer to GetProcessMemoryInfo.
  32. typedef BOOL (_stdcall * PFNGETPROCESSMEMORYINFO)(HANDLE, PPROCESS_MEMORY_COUNTERS, DWORD);
  33. extern PFNGETPROCESSMEMORYINFO g_lpfnGetProcessMemoryInfo;
  34. // Timer
  35. extern __int64 g_liFreq;
  36. extern __int64 g_liLast;
  37. //{{AFX_INSERT_LOCATION}}
  38. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  39. #endif // !defined(AFX_STDAFX_H__4DE40F48_8B7C_48C1_B976_B4E28340FEC9__INCLUDED_)