-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathTokenUniverse.dpr
129 lines (122 loc) · 7.02 KB
/
TokenUniverse.dpr
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
program TokenUniverse;
uses
Vcl.Forms,
Ntapi.ntpebteb,
NtUtils,
NtUtils.Svc.SingleTaskSvc,
NtUiLib.Errors,
NtUtils.Com,
UI.TokenListFrame in 'UI\UI.TokenListFrame.pas' {FrameTokenList: TFrame},
UI.MainForm in 'UI\UI.MainForm.pas' {FormMain},
UI.Modal.AccessAndType in 'UI\UI.Modal.AccessAndType.pas' {DialogAccessAndType},
UI.HandleSearch in 'UI\UI.HandleSearch.pas' {FormHandleSearch},
UI.Information in 'UI\UI.Information.pas' {InfoDialog},
UI.ProcessList in 'UI\UI.ProcessList.pas' {ProcessListDialog},
TU.RestartSvc in 'Core\TU.RestartSvc.pas',
TU.Suggestions in 'Core\TU.Suggestions.pas',
UI.Restrict in 'UI\UI.Restrict.pas' {DialogRestrictToken},
UI.Prototypes in 'UI\UI.Prototypes.pas',
UI.Modal.Logon in 'UI\UI.Modal.Logon.pas' {LogonDialog},
UI.Modal.PickUser in 'UI\UI.Modal.PickUser.pas' {DialogPickUser},
UI.CreateToken in 'UI\UI.CreateToken.pas' {DialogCreateToken},
TU.Tokens.Old.Types in 'Core\TU.Tokens.Old.Types.pas',
UI.Modal.Columns in 'UI\UI.Modal.Columns.pas' {DialogColumns},
UI.Settings in 'UI\UI.Settings.pas',
UI.Modal.Access in 'UI\UI.Modal.Access.pas' {DialogAccess},
UI.Modal.ComboDlg in 'UI\UI.Modal.ComboDlg.pas' {ComboDialog},
TU.Winapi in 'Core\TU.Winapi.pas',
UI.Modal.ThreadList in 'UI\UI.Modal.ThreadList.pas' {ThreadListDialog},
UI.Modal.PickToken in 'UI\UI.Modal.PickToken.pas' {DialogPickToken},
UI.New.Safer in 'UI\UI.New.Safer.pas' {DialogSafer},
UI.Prototypes.AuditFrame in 'UI\UI.Prototypes.AuditFrame.pas' {FrameAudit: TFrame},
UI.Prototypes.Logon in 'UI\UI.Prototypes.Logon.pas' {FrameLogon: TFrame},
UI.Sid.View in 'UI\UI.Sid.View.pas' {DialogSidView},
UI.Prototypes.Lsa.Privileges in 'UI\UI.Prototypes.Lsa.Privileges.pas' {FrameLsaPrivileges: TFrame},
UI.Audit.System in 'UI\UI.Audit.System.pas' {DialogSystemAudit},
UI.Process.Run in 'UI\UI.Process.Run.pas' {DialogRun},
VclEx.ListView in 'NtUtilsUI\VclEx\VclEx.ListView.pas',
UI.Prototypes.Forms in 'NtUtilsUI\Common\UI.Prototypes.Forms.pas',
VclEx.Form in 'NtUtilsUI\VclEx\VclEx.Form.pas',
UI.Colors in 'NtUtilsUI\Common\UI.Colors.pas',
UI.ProcessIcons in 'NtUtilsUI\Common\UI.ProcessIcons.pas',
TU.Processes.Create in 'Core\TU.Processes.Create.pas',
UI.Prototypes.Groups in 'NtUtilsUI\Prototypes\UI.Prototypes.Groups.pas' {FrameGroups: TFrame},
UI.Helper in 'NtUtilsUI\Common\UI.Helper.pas',
VirtualTreesEx in 'NtUtilsUI\Components\VirtualTreesEx.pas',
UI.Prototypes.Privileges in 'NtUtilsUI\Prototypes\UI.Prototypes.Privileges.pas' {FramePrivileges: TFrame},
UI.Prototypes.Sid.Edit in 'NtUtilsUI\Prototypes\UI.Prototypes.Sid.Edit.pas' {SidEditor: TFrame},
TU.Observers in 'Core\TU.Observers.pas',
TU.Tokens.Events in 'Core\TU.Tokens.Events.pas',
TU.Tokens in 'Core\TU.Tokens.pas',
UI.Exceptions in 'NtUtilsUI\Common\UI.Exceptions.pas',
TU.Events in 'Core\TU.Events.pas',
VirtualTreesEx.DefaultMenu in 'NtUtilsUI\Components\VirtualTreesEx.DefaultMenu.pas',
DevirtualizedTree.Provider in 'NtUtilsUI\Components\DevirtualizedTree.Provider.pas',
DevirtualizedTree in 'NtUtilsUI\Components\DevirtualizedTree.pas',
TU.Tokens.Open in 'Core\TU.Tokens.Open.pas',
UI.New.TokenFrame in 'UI\UI.New.TokenFrame.pas' {FrameTokens: TFrame},
TU.AccountRights in 'Core\TU.AccountRights.pas',
UI.Access in 'UI\UI.Access.pas' {AccessCheckForm},
TU.Access in 'Core\TU.Access.pas',
TU.DesktopAccess in 'Core\TU.DesktopAccess.pas',
TU.Startup in 'Core\TU.Startup.pas',
NtUiBackend.AppContainers in 'NtUtilsUI\Common\NtUiBackend.AppContainers.pas',
NtUiBackend.UserProfiles in 'NtUtilsUI\Common\NtUiBackend.UserProfiles.pas',
NtUiCommon.Interfaces in 'NtUtilsUI\Common\NtUiCommon.Interfaces.pas',
NtUiFrame.Search in 'NtUtilsUI\Prototypes\NtUiFrame.Search.pas' {SearchFrame: TFrame},
NtUiFrame.UserProfiles in 'NtUtilsUI\Prototypes\NtUiFrame.UserProfiles.pas' {UserProfilesFrame: TFrame},
NtUiFrame.AppContainer.List in 'NtUtilsUI\Prototypes\NtUiFrame.AppContainer.List.pas' {AppContainerListFrame: TFrame},
NtUiFrame.AppContainer.ListAllUsers in 'NtUtilsUI\Prototypes\NtUiFrame.AppContainer.ListAllUsers.pas' {AppContainerListAllUsersFrame: TFrame},
NtUiFrame.AppContainer.Edit in 'NtUtilsUI\Prototypes\NtUiFrame.AppContainer.Edit.pas' {AppContainerFieldFrame: TFrame},
NtUiCommon.Prototypes in 'NtUtilsUI\Common\NtUiCommon.Prototypes.pas',
NtUiDialog.FrameHost in 'NtUtilsUI\Prototypes\NtUiDialog.FrameHost.pas' {FrameHostDialog},
NtUiFrame.AppContainer.View in 'NtUtilsUI\Prototypes\NtUiFrame.AppContainer.View.pas' {AppContainerViewFrame: TFrame},
NtUiBackend.Bits in 'NtUtilsUI\Common\NtUiBackend.Bits.pas',
NtUiFrame.Bits in 'NtUtilsUI\Prototypes\NtUiFrame.Bits.pas' {BitsFrame: TFrame},
NtUiFrame in 'NtUtilsUI\Prototypes\NtUiFrame.pas' {BaseFrame: TFrame},
NtUiBackend.Acl in 'NtUtilsUI\Common\NtUiBackend.Acl.pas',
NtUiCommon.PageHost in 'NtUtilsUI\Prototypes\NtUiCommon.PageHost.pas' {FramePages: TFrame},
NtUiFrame.Ace in 'NtUtilsUI\Prototypes\NtUiFrame.Ace.pas',
NtUiFrame.Acl in 'NtUtilsUI\Prototypes\NtUiFrame.Acl.pas' {AclFrame: TFrame},
NtUiFrame.Security.Acl in 'NtUtilsUI\Prototypes\NtUiFrame.Security.Acl.pas' {AclSecurityFrame: TFrame},
NtUiFrame.Security.OwnerGroup in 'NtUtilsUI\Prototypes\NtUiFrame.Security.OwnerGroup.pas' {OwnerGroupSecurityFrame: TFrame},
NtUiFrame.Security in 'NtUtilsUI\Prototypes\NtUiFrame.Security.pas',
NtUiFrame.Ace.Condition in 'NtUtilsUI\Prototypes\NtUiFrame.Ace.Condition.pas' {AceConditionFrame: TFrame},
NtUiFrame.Hex.Edit in 'NtUtilsUI\Prototypes\NtUiFrame.Hex.Edit.pas' {HexEditFrame: TFrame},
NtUiBackend.HexView in 'NtUtilsUI\Common\NtUiBackend.HexView.pas',
NtUiFrame.Guid in 'NtUtilsUI\Prototypes\NtUiFrame.Guid.pas' {GuidFrame: TFrame},
NtUiFrame.Sid.Integrity in 'NtUtilsUI\Prototypes\NtUiFrame.Sid.Integrity.pas' {FrameIntegrity: TFrame},
NtUiBuiltin.DsObjectPicker in 'NtUtilsUI\Prototypes\NtUiBuiltin.DsObjectPicker.pas',
NtUiFrame.Sid.Trust in 'NtUtilsUI\Prototypes\NtUiFrame.Sid.Trust.pas' {FrameTrustSid: TFrame},
UI.New.UserManager in 'UI\UI.New.UserManager.pas' {UserManagerTokens},
TU.UserManager in 'Core\TU.UserManager.pas',
NtUiBackend.Sids.Abbreviations in 'NtUtilsUI\Common\NtUiBackend.Sids.Abbreviations.pas',
NtUiFrame.Sids.Abbreviations in 'NtUtilsUI\Prototypes\NtUiFrame.Sids.Abbreviations.pas' {SidAbbreviationFrame: TFrame};
{$R *.res}
begin
// Running as a service
if ParamStr(1) = RESVC_PARAM then
begin
SvcxMain(RESVC_NAME, ReSvcRunInSession);
Exit;
end;
// The user delegated us to create a service
if ParamStr(1) = DELEGATE_PARAM then
begin
ReSvcCreateService(ParamStr(2) = RESVC_SYSPLUS_PARAM).RaiseOnError;
Exit;
end;
// Enable our excption reporting
EnableNtUiLibExceptionHandling;
ReportMemoryLeaksOnShutdown := True;
// Help COM initialization under LPAC + use at least implicit MTA
ComxSuppressCapabilityCheck;
ComxInitializeImplicit;
// Proceed to VCL initialization
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.Title := 'Token Universe';
Application.HintHidePause := 20000;
Application.CreateForm(TFormMain, FormMain);
Application.Run;
end.