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