forked from hillu/go-ntdll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsa.go
56 lines (49 loc) · 1.13 KB
/
lsa.go
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package ntdll
//go:generate -command mkcode go run mkcode.go --
//go:generate mkcode $GOFILE
/*
func:
NTSTATUS LsaOpenPolicy(
_In_ PLSA_UNICODE_STRING SystemName,
_In_ PLSA_OBJECT_ATTRIBUTES ObjectAttributes,
_In_ ACCESS_MASK DesiredAccess,
_Inout_ PLSA_HANDLE PolicyHandle
);
*/
/*
func:
NTSTATUS LsaAddAccountRights(
_In_ LSA_HANDLE PolicyHandle,
_In_ PSID AccountSid,
_In_ PLSA_UNICODE_STRING UserRights,
_In_ ULONG CountOfRights
);
*/
/*
func:
NTSTATUS LsaEnumerateAccountRights(
_In_ LSA_HANDLE PolicyHandle,
_In_ PSID AccountSid,
_Out_ PLSA_UNICODE_STRING *UserRights,
_Out_ PULONG CountOfRights
);
*/
/*
func:
NTSTATUS LsaRemoveAccountRights(
_In_ LSA_HANDLE PolicyHandle,
_In_ PSID AccountSid,
_In_ BOOLEAN AllRights,
_In_ PLSA_UNICODE_STRING UserRights,
_In_ ULONG CountOfRights
);
*/
/*
func:
NTSTATUS LsaClose(
_In_ LSA_HANDLE ObjectHandle
);
*/
type LsaUnicodeString UnicodeString
type LsaHandle Handle
type LsaObjectAttributes ObjectAttributes