forked from winsiderss/systeminformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusernotes.h
More file actions
119 lines (104 loc) · 3.08 KB
/
Copy pathusernotes.h
File metadata and controls
119 lines (104 loc) · 3.08 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
* Process Hacker User Notes -
* UserNotes Header
*
* Copyright (C) 2011-2015 wj32
* Copyright (C) 2016 dmex
*
* This file is part of Process Hacker.
*
* Process Hacker is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Process Hacker is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _USERNOTES_H_
#define _USERNOTES_H_
#include <phdk.h>
#include <phappresource.h>
#include <settings.h>
#include <shlobj.h>
#include "db.h"
#include "resource.h"
#define INTENT_PROCESS_COMMENT 0x1
#define INTENT_PROCESS_PRIORITY_CLASS 0x2
#define INTENT_PROCESS_IO_PRIORITY 0x4
#define INTENT_PROCESS_HIGHLIGHT 0x8
#define INTENT_PROCESS_COLLAPSE 0x10
#define INTENT_PROCESS_AFFINITY 0x20
#define INTENT_PROCESS_PAGEPRIORITY 0x40
typedef enum _USERNOTES_COMMAND_ID
{
PROCESS_PRIORITY_SAVE_ID = 1,
PROCESS_PRIORITY_SAVE_FOR_THIS_COMMAND_LINE_ID,
PROCESS_PRIORITY_SAVE_IFEO,
PROCESS_IO_PRIORITY_SAVE_ID,
PROCESS_IO_PRIORITY_SAVE_FOR_THIS_COMMAND_LINE_ID,
PROCESS_IO_PRIORITY_SAVE_IFEO,
PROCESS_HIGHLIGHT_ID,
PROCESS_COLLAPSE_ID,
PROCESS_AFFINITY_SAVE_ID,
PROCESS_AFFINITY_SAVE_FOR_THIS_COMMAND_LINE_ID,
PROCESS_PAGE_PRIORITY_SAVE_ID,
PROCESS_PAGE_PRIORITY_SAVE_FOR_THIS_COMMAND_LINE_ID,
PROCESS_PAGE_PRIORITY_SAVE_IFEO,
} USERNOTES_COMMAND_ID;
#define COMMENT_COLUMN_ID 1
typedef struct _PROCESS_EXTENSION
{
LIST_ENTRY ListEntry;
PPH_PROCESS_ITEM ProcessItem;
BOOLEAN Valid;
PPH_STRING Comment;
} PROCESS_EXTENSION, *PPROCESS_EXTENSION;
typedef struct _PROCESS_COMMENT_PAGE_CONTEXT
{
HWND CommentHandle;
HWND RevertHandle;
HWND MatchCommandlineHandle;
PPH_STRING OriginalComment;
} PROCESS_COMMENT_PAGE_CONTEXT, *PPROCESS_COMMENT_PAGE_CONTEXT;
typedef struct _SERVICE_EXTENSION
{
LIST_ENTRY ListEntry;
BOOLEAN Valid;
PPH_STRING Comment;
} SERVICE_EXTENSION, *PSERVICE_EXTENSION;
typedef struct _SERVICE_COMMENT_PAGE_CONTEXT
{
PPH_SERVICE_ITEM ServiceItem;
PH_LAYOUT_MANAGER LayoutManager;
} SERVICE_COMMENT_PAGE_CONTEXT, *PSERVICE_COMMENT_PAGE_CONTEXT;
INT_PTR CALLBACK OptionsDlgProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
INT_PTR CALLBACK ProcessCommentPageDlgProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
INT_PTR CALLBACK ServiceCommentPageDlgProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
UINT_PTR CALLBACK ColorDlgHookProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
#endif