-
Notifications
You must be signed in to change notification settings - Fork 5
/
taskman.h
90 lines (77 loc) · 2.14 KB
/
taskman.h
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
// Need this so progman.c can include it in
// a meaningful way.
#ifndef RC_INVOKED
// #include <nt.h>
// #include <ntrtl.h>
// #include <nturtl.h>
#endif
#include "progman.h"
// #include <winuserp.h>
// WINUSERP.H
BOOL
WINAPI
RegisterTasklist(
IN HWND hWndTasklist);
// ntddk
typedef enum _PROCESSINFOCLASS {
ProcessBasicInformation,
ProcessQuotaLimits,
ProcessIoCounters,
ProcessVmCounters, // VM_COUNTERS_EX
ProcessTimes,
ProcessBasePriority,
ProcessRaisePriority,
ProcessDebugPort,
ProcessExceptionPort,
ProcessAccessToken,
ProcessLdtInformation,
ProcessLdtSize,
ProcessDefaultHardErrorMode,
ProcessIoPortHandlers, // Note: this is kernel mode only
ProcessPooledUsageAndLimits,
ProcessWorkingSetWatch,
ProcessUserModeIOPL,
ProcessEnableAlignmentFaultFixup,
ProcessPriorityClass,
ProcessWx86Information,
ProcessHandleCount,
ProcessAffinityMask,
ProcessPriorityBoost,
ProcessDeviceMap,
ProcessSessionInformation,
ProcessForegroundInformation,
ProcessWow64Information,
ProcessImageFileName,
ProcessLUIDDeviceMapsEnabled,
ProcessBreakOnTermination,
ProcessDebugObjectHandle,
ProcessDebugFlags,
ProcessHandleTracing,
MaxProcessInfoClass // MaxProcessInfoClass should always be the last enum
} PROCESSINFOCLASS;
// Taskman prototyes
INT_PTR APIENTRY TaskmanDlgProc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam);
void APIENTRY GetPathInfo(LPTSTR szPath, LPTSTR*pszFileName, LPTSTR*pszExt, WORD *pich, BOOL *pfUnc);
BOOL TestTokenForAdmin(HANDLE Token);
INT TMMessageBox(HWND hWnd,WORD idTitle,WORD idMessage,PTSTR psz,WORD wStyle);
// Taskman global variables
HWND ghwndTMDialog;
BOOL fTMActive;
INT dxTaskman;
INT dyTaskman;
INT dxScreen;
INT dyScreen;
#define MAXTASKNAMELEN 512
#define MAXMSGBOXLEN 513
#define PWRTASKMANDLG 10
#define WMPTASKMANDLG 11
#define IDD_TMTEXT 499
#define IDD_TASKLISTBOX 500
#define IDD_TERMINATE 501
#define IDD_CASCADE 502
#define IDD_TILE 503
#define IDD_ARRANGEICONS 504
#define IDD_RUN 505
#define IDD_TMPATH 506
#define IDD_CLTEXT 507
#define IDD_SWITCH 508