source: trunk/src/shell32/shpolicy.cpp@ 3243

Last change on this file since 3243 was 3243, checked in by cbratschi, 25 years ago

merged with Corel WINE 20000324

File size: 9.0 KB
Line 
1/* $Id: shpolicy.cpp,v 1.2 2000-03-26 16:34:55 cbratschi Exp $ */
2
3/*
4 * Win32 SHELL32 for OS/2
5 *
6 * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 * shpolicy.c - Data for shell/system policies.
10 *
11 * Created 1999 by Ian Schmidt <ischmidt@cfl.rr.com>
12 *
13 * Some of these policies can be tweaked via the System Policy
14 * Editor which came with the Win95 Migration Guide, although
15 * there doesn't appear to be an updated Win98 version that
16 * would handle the many new policies introduced since then.
17 * You could easily write one with the information in
18 * this file...
19 *
20 * Up to date as of SHELL32 v4.72 (Win98, Win95 with MSIE 5)
21 *
22 * Corel WINE 20000324 level
23 */
24
25
26/*****************************************************************************
27 * Includes *
28 *****************************************************************************/
29
30#include <odin.h>
31#include <odinwrap.h>
32#include <os2sel.h>
33
34#include <stdlib.h>
35#include <string.h>
36
37#include "wine/winuser16.h"
38#include "shpolicy.h"
39
40/* application strings */
41
42static char strExplorer[] = {"Explorer"};
43static char strActiveDesk[] = {"ActiveDesktop"};
44static char strWinOldApp[] = {"WinOldApp"};
45
46/* key strings */
47
48static char strNoFileURL[] = {"NoFileUrl"};
49static char strNoFolderOptions[] = {"NoFolderOptions"};
50static char strNoChangeStartMenu[] = {"NoChangeStartMenu"};
51static char strNoWindowsUpdate[] = {"NoWindowsUpdate"};
52static char strNoSetActiveDesktop[] = {"NoSetActiveDesktop"};
53static char strNoForgetSoftwareUpdate[] = {"NoForgetSoftwareUpdate"};
54static char strNoMSAppLogo[] = {"NoMSAppLogo5ChannelNotify"};
55static char strForceCopyACLW[] = {"ForceCopyACLWithFile"};
56static char strNoResolveTrk[] = {"NoResolveTrack"};
57static char strNoResolveSearch[] = {"NoResolveSearch"};
58static char strNoEditComponent[] = {"NoEditingComponents"};
59static char strNoMovingBand[] = {"NoMovingBands"};
60static char strNoCloseDragDrop[] = {"NoCloseDragDropBands"};
61static char strNoCloseComponent[] = {"NoClosingComponents"};
62static char strNoDelComponent[] = {"NoDeletingComponents"};
63static char strNoAddComponent[] = {"NoAddingComponents"};
64static char strNoComponent[] = {"NoComponents"};
65static char strNoChangeWallpaper[] = {"NoChangingWallpaper"};
66static char strNoHTMLWallpaper[] = {"NoHTMLWallpaper"};
67static char strNoCustomWebView[] = {"NoCustomizeWebView"};
68static char strClassicShell[] = {"ClassicShell"};
69static char strClearRecentDocs[] = {"ClearRecentDocsOnExit"};
70static char strNoFavoritesMenu[] = {"NoFavoritesMenu"};
71static char strNoActiveDesktopChanges[] = {"NoActiveDesktopChanges"};
72static char strNoActiveDesktop[] = {"NoActiveDesktop"};
73static char strNoRecentDocMenu[] = {"NoRecentDocsMenu"};
74static char strNoRecentDocHistory[] = {"NoRecentDocsHistory"};
75static char strNoInetIcon[] = {"NoInternetIcon"};
76static char strNoStngsWizard[] = {"NoSettingsWizards"};
77static char strNoLogoff[] = {"NoLogoff"};
78static char strNoNetConDis[] = {"NoNetConnectDisconnect"};
79static char strNoContextMenu[] = {"NoViewContextMenu"};
80static char strNoTryContextMenu[] = {"NoTrayContextMenu"};
81static char strNoWebMenu[] = {"NoWebMenu"};
82static char strLnkResolveIgnoreLnkInfo[] = {"LinkResolveIgnoreLinkInfo"};
83static char strNoCommonGroups[] = {"NoCommonGroups"};
84static char strEnforceShlExtSecurity[] = {"EnforceShellExtensionSecurity"};
85static char strNoRealMode[] = {"NoRealMode"};
86static char strMyDocsOnNet[] = {"MyDocsOnNet"};
87static char strNoStartMenuSubfolder[] = {"NoStartMenuSubFolders"};
88static char strNoAddPrinters[] = {"NoAddPrinter"};
89static char strNoDeletePrinters[] = {"NoDeletePrinter"};
90static char strNoPrintTab[] = {"NoPrinterTabs"};
91static char strRestrictRun[] = {"RestrictRun"};
92static char strNoStartBanner[] = {"NoStartBanner"};
93static char strNoNetworkNeighborhood[] = {"NoNetHood"};
94static char strNoDriveTypeAtRun[] = {"NoDriveTypeAutoRun"};
95static char strNoDrivesAutoRun[] = {"NoDriveAutoRun"};
96static char strNoDrives[] = {"NoDrives"};
97static char strNoFind[] = {"NoFind"};
98static char strNoDesktop[] = {"NoDesktop"};
99static char strNoSetTaskBar[] = {"NoSetTaskbar"};
100static char strNoSetFld[] = {"NoSetFolders"};
101static char strNoFileMenu[] = {"NoFileMenu"};
102static char strNoSavSetng[] = {"NoSaveSettings"};
103static char strNoClose[] = {"NoClose"};
104static char strNoRun[] = {"NoRun"};
105
106/* policy data array */
107
108POLICYDATA sh32_policy_table[] =
109{
110 {
111 0x1,
112 strExplorer,
113 strNoRun,
114 SHELL_NO_POLICY
115 },
116 {
117 0x2,
118 strExplorer,
119 strNoClose,
120 SHELL_NO_POLICY
121 },
122 {
123 0x4,
124 strExplorer,
125 strNoSavSetng,
126 SHELL_NO_POLICY
127 },
128 {
129 0x8,
130 strExplorer,
131 strNoFileMenu,
132 SHELL_NO_POLICY
133 },
134 {
135 0x10,
136 strExplorer,
137 strNoSetFld,
138 SHELL_NO_POLICY
139 },
140 {
141 0x20,
142 strExplorer,
143 strNoSetTaskBar,
144 SHELL_NO_POLICY
145 },
146 {
147 0x40,
148 strExplorer,
149 strNoDesktop,
150 SHELL_NO_POLICY
151 },
152 {
153 0x80,
154 strExplorer,
155 strNoFind,
156 SHELL_NO_POLICY
157 },
158 {
159 0x100,
160 strExplorer,
161 strNoDrives,
162 SHELL_NO_POLICY
163 },
164 {
165 0x200,
166 strExplorer,
167 strNoDrivesAutoRun,
168 SHELL_NO_POLICY
169 },
170 {
171 0x400,
172 strExplorer,
173 strNoDriveTypeAtRun,
174 SHELL_NO_POLICY
175 },
176 {
177 0x800,
178 strExplorer,
179 strNoNetworkNeighborhood,
180 SHELL_NO_POLICY
181 },
182 {
183 0x1000,
184 strExplorer,
185 strNoStartBanner,
186 SHELL_NO_POLICY
187 },
188 {
189 0x2000,
190 strExplorer,
191 strRestrictRun,
192 SHELL_NO_POLICY
193 },
194 {
195 0x4000,
196 strExplorer,
197 strNoPrintTab,
198 SHELL_NO_POLICY
199 },
200 {
201 0x8000,
202 strExplorer,
203 strNoDeletePrinters,
204 SHELL_NO_POLICY
205 },
206 {
207 0x10000,
208 strExplorer,
209 strNoAddPrinters,
210 SHELL_NO_POLICY
211 },
212 {
213 0x20000,
214 strExplorer,
215 strNoStartMenuSubfolder,
216 SHELL_NO_POLICY
217 },
218 {
219 0x40000,
220 strExplorer,
221 strMyDocsOnNet,
222 SHELL_NO_POLICY
223 },
224 {
225 0x80000,
226 strWinOldApp,
227 strNoRealMode,
228 SHELL_NO_POLICY
229 },
230 {
231 0x100000,
232 strExplorer,
233 strEnforceShlExtSecurity,
234 SHELL_NO_POLICY
235 },
236 {
237 0x200000,
238 strExplorer,
239 strLnkResolveIgnoreLnkInfo,
240 SHELL_NO_POLICY
241 },
242 {
243 0x400000,
244 strExplorer,
245 strNoCommonGroups,
246 SHELL_NO_POLICY
247 },
248 {
249 0x1000000,
250 strExplorer,
251 strNoWebMenu,
252 SHELL_NO_POLICY
253 },
254 {
255 0x2000000,
256 strExplorer,
257 strNoTryContextMenu,
258 SHELL_NO_POLICY
259 },
260 {
261 0x4000000,
262 strExplorer,
263 strNoContextMenu,
264 SHELL_NO_POLICY
265 },
266 {
267 0x8000000,
268 strExplorer,
269 strNoNetConDis,
270 SHELL_NO_POLICY
271 },
272 {
273 0x10000000,
274 strExplorer,
275 strNoLogoff,
276 SHELL_NO_POLICY
277 },
278 {
279 0x20000000,
280 strExplorer,
281 strNoStngsWizard,
282 SHELL_NO_POLICY
283 },
284 {
285 0x40000001,
286 strExplorer,
287 strNoInetIcon,
288 SHELL_NO_POLICY
289 },
290 {
291 0x40000002,
292 strExplorer,
293 strNoRecentDocHistory,
294 SHELL_NO_POLICY
295 },
296 {
297 0x40000003,
298 strExplorer,
299 strNoRecentDocMenu,
300 SHELL_NO_POLICY
301 },
302 {
303 0x40000004,
304 strExplorer,
305 strNoActiveDesktop,
306 SHELL_NO_POLICY
307 },
308 {
309 0x40000005,
310 strExplorer,
311 strNoActiveDesktopChanges,
312 SHELL_NO_POLICY
313 },
314 {
315 0x40000006,
316 strExplorer,
317 strNoFavoritesMenu,
318 SHELL_NO_POLICY
319 },
320 {
321 0x40000007,
322 strExplorer,
323 strClearRecentDocs,
324 SHELL_NO_POLICY
325 },
326 {
327 0x40000008,
328 strExplorer,
329 strClassicShell,
330 SHELL_NO_POLICY
331 },
332 {
333 0x40000009,
334 strExplorer,
335 strNoCustomWebView,
336 SHELL_NO_POLICY
337 },
338 {
339 0x40000010,
340 strActiveDesk,
341 strNoHTMLWallpaper,
342 SHELL_NO_POLICY
343 },
344 {
345 0x40000011,
346 strActiveDesk,
347 strNoChangeWallpaper,
348 SHELL_NO_POLICY
349 },
350 {
351 0x40000012,
352 strActiveDesk,
353 strNoComponent,
354 SHELL_NO_POLICY
355 },
356 {
357 0x40000013,
358 strActiveDesk,
359 strNoAddComponent,
360 SHELL_NO_POLICY
361 },
362 {
363 0x40000014,
364 strActiveDesk,
365 strNoDelComponent,
366 SHELL_NO_POLICY
367 },
368 {
369 0x40000015,
370 strActiveDesk,
371 strNoCloseComponent,
372 SHELL_NO_POLICY
373 },
374 {
375 0x40000016,
376 strActiveDesk,
377 strNoCloseDragDrop,
378 SHELL_NO_POLICY
379 },
380 {
381 0x40000017,
382 strActiveDesk,
383 strNoMovingBand,
384 SHELL_NO_POLICY
385 },
386 {
387 0x40000018,
388 strActiveDesk,
389 strNoEditComponent,
390 SHELL_NO_POLICY
391 },
392 {
393 0x40000019,
394 strExplorer,
395 strNoResolveSearch,
396 SHELL_NO_POLICY
397 },
398 {
399 0x4000001a,
400 strExplorer,
401 strNoResolveTrk,
402 SHELL_NO_POLICY
403 },
404 {
405 0x4000001b,
406 strExplorer,
407 strForceCopyACLW,
408 SHELL_NO_POLICY
409 },
410 {
411 0x4000001c,
412 strExplorer,
413 strNoMSAppLogo,
414 SHELL_NO_POLICY
415 },
416 {
417 0x4000001d,
418 strExplorer,
419 strNoForgetSoftwareUpdate,
420 SHELL_NO_POLICY
421 },
422 {
423 0x4000001e,
424 strExplorer,
425 strNoSetActiveDesktop,
426 SHELL_NO_POLICY
427 },
428 {
429 0x4000001f,
430 strExplorer,
431 strNoWindowsUpdate,
432 SHELL_NO_POLICY
433 },
434 {
435 0x40000020,
436 strExplorer,
437 strNoChangeStartMenu,
438 SHELL_NO_POLICY
439 },
440 {
441 0x40000021,
442 strExplorer,
443 strNoFolderOptions,
444 SHELL_NO_POLICY
445 },
446 {
447 0x50000024,
448 strExplorer,
449 strNoFileURL,
450 SHELL_NO_POLICY
451 }
452};
Note: See TracBrowser for help on using the repository browser.