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

Last change on this file since 2013 was 1551, checked in by phaller, 26 years ago

Add: update to wine/shell32 1999/11/02 #2

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