OBJECT_ATTRIBUTES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_

typedef struct _OBJECT_ATTRIBUTES
{
    ULONG Length;
    HANDLE RootDirectory;
    PUNICODE_STRING ObjectName;
    ULONG Attributes;
    PVOID SecurityDescriptor; // PSECURITY_DESCRIPTOR;
    PVOID SecurityQualityOfService; // PSECURITY_QUALITY_OF_SERVICE
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;

#endif
#endif

View code on GitHub

Describes the name and other attributes of an object for open or creation operations. This structure is documented in Windows Driver Kit. Use InitializeObjectAttributes to initialize this structure.

Members

Known attribute values

See the corresponding pages for details.

Remarks

Native API uses a different format of paths from the Win32 API. The root of the NT object namespace is the \ directory. For more details about the relationship between Native and Win32 filenames, see this blog post.

See also