ObjectHandleAttributes Enumeration

Specifies flags for the Attributes field.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum ObjectHandleAttributes

Remarks

Members

Inherit 2 This handle can be inherited by child processes of the current process.
Permanent 16 This flag only applies to objects that are named within the object manager. By default, such objects are deleted when all open handles to them are closed.

If this flag is specified, the object is not deleted when all open handles are closed.

Exclusive 32 If this flag is set and the ObjectAttributes structure is passed to a routine that creates an object, the object can be accessed exclusively. That is, once a process opens such a handle to the object, no other processes can open handles to this object.

If this flag is set and the ObjectAttributes structure is passed to a routine that creates an object handle, the caller is requesting exclusive access to the object for the process context that the handle was created in. This request can be granted only if the Exclusive flag was set when the object was created.

CaseInsensitive 64 If this flag is specified, a case-insensitive comparison is used when matching the name pointed to by the ObjectName member against the names of existing objects.

Otherwise, object names are compared using the default system settings.

OpenIf 128 If this flag is specified, by using the object handle, to a routine that creates objects and if that object already exists, the routine should open that object.

Otherwise, the routine creating the object returns an OBJECT_NAME_COLLISION error code.

OpenLink 256 If an object handle, with this flag set, is passed to a routine that opens objects and if the object is a symbolic link object, the routine should open the symbolic link object itself, rather than the object that the symbolic link refers to (which is the default behavior).
KernelHandle 512 The handle is created in system process context and can only be accessed from kernel mode.
ForceAccessCheck 1,024 The routine that opens the handle should enforce all access checks for the object, even if the handle is being opened in kernel mode.
ValidAttributes 2,034 The mask of all valid attributes.

See Also