-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathResetPermission.rc
167 lines (137 loc) · 9.97 KB
/
ResetPermission.rc
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_SMALL ICON "ResetPermission.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 213, 65
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About ResetPermission"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SMALL,IDC_STATIC,11,17,21,20
LTEXT "Reset Files Permission v1.2.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
CONTROL "(c) Elias Bachaalany <[email protected]>",IDC_STATIC,
"Static",SS_SIMPLE | WS_GROUP,42,26,164,8
DEFPUSHBUTTON "OK",IDOK,156,44,50,14,WS_GROUP
END
IDD_RESETPERMS DIALOGEX 0, 0, 305, 191
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Reset files permission - v1.2.0 (c) Elias Bachaalany"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
PUSHBUTTON "Choose &folder:",IDBTN_CHOOSE_FOLDER,7,15,61,14
EDITTEXT IDTXT_FOLDER,71,15,227,14,ES_AUTOHSCROLL | ES_READONLY
CONTROL "Reset files &permissions",IDCHK_RESETPERM,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,34,88,10
CONTROL "Reset &hidden and system files",IDCHK_RM_HS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,147,34,111,10
CONTROL "Take files &ownership ",IDCHK_TAKEOWN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,46,83,10
CONTROL "Don't follow &links",IDCHK_DONTFOLLOWLINKS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,147,46,69,10
CONTROL "Apply for all &sub directories",IDCHK_RECURSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,59,103,10
DEFPUSHBUTTON "Ad&vanced",IDBTN_ADVANCED,147,58,50,14
LTEXT "Command that will be executed:",IDC_STATIC,7,73,104,8
EDITTEXT IDTXT_COMMAND,7,87,291,79,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | WS_VSCROLL
DEFPUSHBUTTON "&GO",IDOK,7,170,50,14
PUSHBUTTON "&HELP",IDBTN_HELP,188,170,50,14
PUSHBUTTON "&ABOUT",IDBTN_ABOUT,248,170,50,14
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 206
TOPMARGIN, 7
BOTTOMMARGIN, 58
END
IDD_RESETPERMS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 298
VERTGUIDE, 147
TOPMARGIN, 7
BOTTOMMARGIN, 184
HORZGUIDE, 29
HORZGUIDE, 44
HORZGUIDE, 56
END
END
#endif // APSTUDIO_INVOKED
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDR_ADVANCED_MENU MENU
BEGIN
POPUP "TOP"
BEGIN
MENUITEM "Add to Explorer folder context menu", IDM_ADDTOEXPLORERFOLDERCONTEXTMENU
MENUITEM "Remove from Explorer folder context menu", IDM_REMOVEFROMEXPLORERFOLDERCONTEXTMENU
MENUITEM SEPARATOR
MENUITEM "&Backup permissions", IDM_BACKUPPERMSCONTEXTMENU
MENUITEM "&Restore permissions", IDM_RESTOREPERMSCONTEXTMENU
END
END
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED