-
Notifications
You must be signed in to change notification settings - Fork 5
/
WindowStation.lua
64 lines (51 loc) · 1.27 KB
/
WindowStation.lua
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
57
58
59
60
61
62
local ffi = require ("ffi");
require ("WTypes");
ffi.cdef[[
BOOL WINAPI CloseWindowStation(
_In_ HWINSTA hWinSta
);
HWINSTA WINAPI CreateWindowStation(
_In_opt_ LPCTSTR lpwinsta,
DWORD dwFlags,
_In_ ACCESS_MASK dwDesiredAccess,
_In_opt_ LPSECURITY_ATTRIBUTES lpsa
);
BOOL WINAPI EnumWindowStations(
_In_ WINSTAENUMPROC lpEnumFunc,
_In_ LPARAM lParam
);
HWINSTA WINAPI GetProcessWindowStation(void);
BOOL WINAPI GetUserObjectInformation(
_In_ HANDLE hObj,
_In_ int nIndex,
_Out_opt_ PVOID pvInfo,
_In_ DWORD nLength,
_Out_opt_ LPDWORD lpnLengthNeeded
);
BOOL WINAPI GetUserObjectSecurity(
_In_ HANDLE hObj,
_In_ PSECURITY_INFORMATION pSIRequested,
_Inout_opt_ PSECURITY_DESCRIPTOR pSD,
_In_ DWORD nLength,
_Out_ LPDWORD lpnLengthNeeded
);
HWINSTA WINAPI OpenWindowStation(
_In_ LPTSTR lpszWinSta,
_In_ BOOL fInherit,
_In_ ACCESS_MASK dwDesiredAccess
);
BOOL WINAPI SetProcessWindowStation(
_In_ HWINSTA hWinSta
);
BOOL WINAPI SetUserObjectInformation(
_In_ HANDLE hObj,
_In_ int nIndex,
_In_ PVOID pvInfo,
_In_ DWORD nLength
);
BOOL WINAPI SetUserObjectSecurity(
_In_ HANDLE hObj,
_In_ PSECURITY_INFORMATION pSIRequested,
_In_ PSECURITY_DESCRIPTOR pSID
);
]]