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.

64 lines
986 B

4 years ago
  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <ntdddisk.h>
  5. #include <windows.h>
  6. #include "id.h"
  7. typedef struct _DISK {
  8. HANDLE handle;
  9. PDISK_PERFORMANCE start;
  10. PDISK_PERFORMANCE current;
  11. PDISK_PERFORMANCE previous;
  12. ULONG AveBPS;
  13. ULONG MaxBPS;
  14. ULONG BytesRead;
  15. ULONG BytesWritten;
  16. UINT QDepth;
  17. UINT MaxQDepth;
  18. INT MenuId;
  19. CHAR DrvString[16];
  20. CHAR Identifier[24];
  21. struct _DISK *next;
  22. } DISK, *PDISK;
  23. BOOL
  24. InitApplication(
  25. HANDLE
  26. );
  27. BOOL
  28. InitInstance(
  29. HANDLE,
  30. int
  31. );
  32. LRESULT CALLBACK
  33. WndProc(
  34. HWND,
  35. UINT,
  36. WPARAM,
  37. LPARAM
  38. );
  39. LRESULT CALLBACK
  40. DiskmonWndProc(
  41. HWND hWnd,
  42. UINT message,
  43. WPARAM uParam,
  44. LPARAM lParam
  45. );
  46. BOOL CALLBACK
  47. ConfigMonitor(
  48. HWND hDlg,
  49. UINT Msg,
  50. WPARAM wParam,
  51. LPARAM lParam
  52. );