> For the complete documentation index, see [llms.txt](https://www.pinvoke.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pinvoke.dev/foundation/object_attributes.md).

# OBJECT\_ATTRIBUTES

```csharp
public unsafe struct OBJECT_ATTRIBUTES
{
    public uint Length;
    public HANDLE RootDirectory;
    public UNICODE_STRING* ObjectName;
    public uint Attributes;
    public void* SecurityDescriptor;
    public void* SecurityQualityOfService;
}
```

[UNICODE\_STRING](/foundation/unicode_string.md)

```csharp
//
// Valid values for the Attributes field
//
public const int OBJ_HANDLE_TAGBITS = 3;
public const int OBJ_INHERIT = 2;
public const int OBJ_PERMANENT = 16;
public const int OBJ_EXCLUSIVE = 32;
public const int OBJ_CASE_INSENSITIVE = 64;
public const int OBJ_OPENIF = 128;
public const int OBJ_OPENLINK = 256;
public const int OBJ_KERNEL_HANDLE = 512;
public const int OBJ_FORCE_ACCESS_CHECK = 1024;
public const int OBJ_IGNORE_IMPERSONATED_DEVICEMAP = 2048;
public const int OBJ_DONT_REPARSE = 4096;
public const int OBJ_VALID_ATTRIBUTES = 8178;
```
