-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNativeStructs.cs
More file actions
35 lines (28 loc) · 786 Bytes
/
NativeStructs.cs
File metadata and controls
35 lines (28 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// <copyright file="NativeStructs.cs" company="Nick Lowe">
// Copyright © Nick Lowe 2009
// </copyright>
// <author>Nick Lowe</author>
// <email>nick@int-r.net</email>
// <url>http://processprivileges.codeplex.com/</url>
namespace ProcessPrivileges
{
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal struct Luid
{
internal int LowPart;
internal int HighPart;
}
[StructLayout(LayoutKind.Sequential)]
internal struct LuidAndAttributes
{
internal Luid Luid;
internal PrivilegeAttributes Attributes;
}
[StructLayout(LayoutKind.Sequential)]
internal struct TokenPrivilege
{
internal int PrivilegeCount;
internal LuidAndAttributes Privilege;
}
}