-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added definitions for OBJECT_ATTRIBUTES structs.
- Loading branch information
1 parent
4295e3a
commit 70993e4
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
using Windows.Win32.Foundation; | ||
using Windows.Win32.Foundation.Metadata; | ||
using Windows.Win32.System.IO; | ||
|
||
namespace Windows.Wdk.Foundation; | ||
|
||
public unsafe partial struct OBJECT_ATTRIBUTES | ||
{ | ||
[NativeTypeName("ULONG")] | ||
public uint Length; | ||
|
||
[NativeTypeName("HANDLE")] | ||
public IntPtr RootDirectory; | ||
|
||
[NativeTypeName("PUNICODE_STRING")] | ||
[Const] | ||
public UNICODE_STRING* ObjectName; | ||
|
||
[NativeTypeName("ULONG")] | ||
public uint Attributes; | ||
|
||
[NativeTypeName("PVOID")] | ||
[Const] | ||
public void* SecurityDescriptor; | ||
|
||
[NativeTypeName("PVOID")] | ||
[Const] | ||
public void* SecurityQualityOfService; | ||
} | ||
|
||
public partial struct OBJECT_ATTRIBUTES32 | ||
{ | ||
[NativeTypeName("ULONG")] | ||
public uint Length; | ||
|
||
[NativeTypeName("ULONG")] | ||
public uint RootDirectory; | ||
|
||
[NativeTypeName("ULONG")] | ||
public uint ObjectName; | ||
|
||
[NativeTypeName("ULONG")] | ||
public uint Attributes; | ||
|
||
[NativeTypeName("ULONG")] | ||
[Const] | ||
public uint SecurityDescriptor; | ||
|
||
[NativeTypeName("ULONG")] | ||
[Const] | ||
public uint SecurityQualityOfService; | ||
} | ||
|
||
public partial struct OBJECT_ATTRIBUTES64 | ||
{ | ||
[NativeTypeName("ULONG")] | ||
public uint Length; | ||
|
||
[NativeTypeName("ULONG64")] | ||
public ulong RootDirectory; | ||
|
||
[NativeTypeName("ULONG64")] | ||
public ulong ObjectName; | ||
|
||
[NativeTypeName("ULONG")] | ||
public uint Attributes; | ||
|
||
[NativeTypeName("ULONG64")] | ||
[Const] | ||
public ulong SecurityDescriptor; | ||
|
||
[NativeTypeName("ULONG64")] | ||
[Const] | ||
public ulong SecurityQualityOfService; | ||
} |