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.

57 lines
1.4 KiB

  1. #define BENCH_DLG 104
  2. #define TIMER_ID 105
  3. #define TIMER_ID2 106
  4. #define DRV_BOX 300
  5. #define START_BUTTON 303
  6. #define STOP_BUTTON 304
  7. #define QUIT_BUTTON 305
  8. #define SPIN_CTL 306
  9. #define SPIN_CTL2 307
  10. #define BUFFER_TEXT 308
  11. #define STATUS_BUFFER 310
  12. #define STATUS_IOCOUNT 311
  13. #define STATUS_CASE 312
  14. #define STATUS_CASE1 313
  15. #define STATUS_TEST 314
  16. #define TIME_TEXT 315
  17. #define TEST_RAD_READ 316
  18. #define TEST_RAD_WRITE 317
  19. #define VAR_RAD_SEQ 318
  20. #define VAR_RAD_RAND 319
  21. #define GAUGE 320
  22. #define FILE_SIZE 40 * 1024 * 1024
  23. typedef struct _PARAMS{
  24. ULONG BufferSize;
  25. PCHAR TargetFile;
  26. ULONG Tcount;
  27. } PARAMS, *PPARAMS;
  28. typedef struct _FILE_PARAMS {
  29. PCHAR TestDrive;
  30. PCHAR TestFile;
  31. HWND Window;
  32. } FILE_PARAMS, *PFILE_PARAMS;
  33. INT APIENTRY WinMain(
  34. HINSTANCE hInstance,
  35. HINSTANCE hPrevInst,
  36. LPSTR CmdLine,
  37. INT CmdShow
  38. );
  39. INT_PTR CALLBACK
  40. BenchDlgProc(
  41. HWND hDlg,
  42. UINT Message,
  43. WPARAM wParam,
  44. LPARAM lParam
  45. );
  46. VOID DrawMeterBar( HWND, DWORD, DWORD, DWORD, BOOL);