Windows NT 4.0 source code leak
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.

52 lines
1.7 KiB

4 years ago
  1. /***************************************************************************\
  2. * winmeter.h
  3. *
  4. * Copyright (c) 1991 Microsoft Corporation
  5. *
  6. * Overall include file for WINMETER application. Does porting #ifdefs, etc.
  7. * loads up necessary include files. Defines some WINDOWS constants
  8. *
  9. * History:
  10. * Written by Hadi Partovi (t-hadip) summer 1991
  11. *
  12. * Re-written and adapted for NT by Fran Borda (v-franb) Nov.1991
  13. * for Newman Consulting
  14. * Took out all WIN-specific and bargraph code. Added 3 new
  15. * linegraphs (Mem/Paging, Process/Threads/Handles, IO), and
  16. * tailored info to that available under NT.
  17. \***************************************************************************/
  18. #define WPTYPE DWORD
  19. #define dprintf(p) {wsprintf p;_dprintf(g.szBuf);}
  20. void _dprintf();
  21. void WriteOutProfiles();
  22. #include <nt.h>
  23. #include <ntrtl.h>
  24. #include <nturtl.h>
  25. #include <limits.h>
  26. #include <windows.h>
  27. // Debugging stuff
  28. //#define DEBUG // set to do assertion checking
  29. #if 0
  30. #define DEBUGDUMP
  31. #endif // set to dump data to file
  32. #include "debug.h"
  33. // Other header files
  34. #include "resource.h"
  35. #include "dialogs.h"
  36. #include "data.h"
  37. #include "graphics.h"
  38. #include "lgraph.h"
  39. #include "global.h"
  40. #include "profile.h"
  41. #include "extern.h"
  42. // Definitions for WINDOWS
  43. #define TIMER_ID 1 // ID of timer for query ticks
  44. #define WINMETER_MB_FLAGS MB_ICONHAND | MB_OK | MB_SYSTEMMODAL
  45. // used in ErrorExit()
  46. #define NON_NUMERIC (UINT_MAX)// rval of StringToNumber()
  47. #define MAX_TIMER_INTERVAL 50 // interval smaller than this
  48. // is simply too dangerous