Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
 JOBOBJECT_BASIC_UI_RESTRICTIONS Str...
JOBOBJECT_BASIC_UI_RESTRICTIONS Structure

Contains basic user-interface restrictions for a job object.

Syntax

C++
typedef struct _JOBOBJECT_BASIC_UI_RESTRICTIONS {
  DWORD UIRestrictionsClass;
}JOBOBJECT_BASIC_UI_RESTRICTIONS, *PJOBOBJECT_BASIC_UI_RESTRICTIONS;

Members

UIRestrictionsClass

The restriction class for the user interface. This member can be one or more of the following values.

ValueMeaning
JOB_OBJECT_UILIMIT_DESKTOP
0x00000040

Prevents processes associated with the job from creating desktops and switching desktops using the CreateDesktop and SwitchDesktop functions.

JOB_OBJECT_UILIMIT_DISPLAYSETTINGS
0x00000010

Prevents processes associated with the job from calling the ChangeDisplaySettings function.

JOB_OBJECT_UILIMIT_EXITWINDOWS
0x00000080

Prevents processes associated with the job from calling the ExitWindows or ExitWindowsEx function.

JOB_OBJECT_UILIMIT_GLOBALATOMS
0x00000020

Prevents processes associated with the job from accessing global atoms. When this flag is used, each job has its own atom table.

JOB_OBJECT_UILIMIT_HANDLES
0x00000001

Prevents processes associated with the job from using USER handles owned by processes not associated with the same job.

JOB_OBJECT_UILIMIT_READCLIPBOARD
0x00000002

Prevents processes associated with the job from reading data from the clipboard.

JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS
0x00000008

Prevents processes associated with the job from changing system parameters by using the SystemParametersInfo function.

JOB_OBJECT_UILIMIT_WRITECLIPBOARD
0x00000004

Prevents processes associated with the job from writing data to the clipboard.

 

Remarks

If you specify the JOB_OBJECT_UILIMIT_HANDLES flag, when a process associated with the job broadcasts messages, they are only sent to top-level windows owned by processes associated with the same job. In addition, hooks can be installed only on threads belonging to processes associated with the job.

To grant access to a User handle to a job that has a user-interface restriction, use the UserHandleGrantAccess function.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnt.h (include Windows.h)

See Also

ExitWindows
ExitWindowsEx
QueryInformationJobObject
SetInformationJobObject
SystemParametersInfo
UserHandleGrantAccess

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker