home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { MiTeC System Information Component }
- { Startup Runs Detection Part }
- { version 8.3 for Delphi 5,6,7 }
- { }
- { Copyright ⌐ 1997,2003 Michal Mutl }
- { }
- {*******************************************************}
-
- {$INCLUDE MITEC_DEF.INC}
-
- unit MSI_Startup;
-
- interface
-
- uses
- SysUtils, Windows, Classes;
-
- type
- TRunType = (rtHKCU, rtHKLM, rtHKLMOnce, rtHKCUOnce, rtHKLMOnceEx, rtHKCUOnceEx,
- rtHKLMServices, rtHKLMServicesOnce, rtHKCUServices, rtHKCUServicesOnce,
- rtHKLMSessionManager, rtHKLMWinLogon, rtHKCULoad,
- rtUser, rtCommon, rtWinINI, rtSystemINI);
-
- TStartup = class(TPersistent)
- private
- FHKCU_Runs: TStringList;
- FHKLM_Runs: TStringList;
- FHKCUOnce_Runs: TStringList;
- FHKLMOnce_Runs: TStringList;
- FHKCUOnceEx_Runs: TStringList;
- FHKLMOnceEx_Runs: TStringList;
- FHKLMServices_Runs: TStringList;
- FHKLMServicesOnce_Runs: TStringList;
- FHKCUServices_Runs: TStringList;
- FHKCUServicesOnce_Runs: TStringList;
- FHKLMSessionManager_Runs: TStringList;
- FHKLMWinLogon_Runs: TStringList;
- FHKCULoad_Runs: TStringList;
- FUser_Runs: TStringList;
- FCommon_Runs: TStringList;
- FWININI_Runs: TStringList;
- FSYSTEMINI_Runs: TStringList;
-
- procedure ClearList(var L: TStringList);
-
- function GetCommonRun(Index: integer): string;
- function GetHKCU(Index: integer): string;
- function GetHKLM(Index: integer): string;
- function GetRunHKCUOnce(Index: integer): string;
- function GetUserRun(Index: integer): string;
- function GetCount: integer;
- {$IFNDEF D6PLUS}
- procedure SetCount(const Value: integer);
- {$ENDIF}
- function GetCommonCount: integer;
- function GetHKCUCount: integer;
- function GetHKLMCount: integer;
- function GetHKCUOnceCount: integer;
- function GetUserCount: integer;
- function GetWININICount: integer;
- function GetWININIRun(Index: integer): string;
- function GetSYSTEMINICount: integer;
- function GetSYSTEMINIRun(Index: integer): string;
- function GetHKCUOnceExCount: integer;
- function GetHKLMOnceCount: integer;
- function GetHKLMOnceExCount: integer;
- function GetHKLMServicesCount: integer;
- function GetRunHKCUOnceEx(Index: integer): string;
- function GetRunHKLMOnce(Index: integer): string;
- function GetRunHKLMOnceEx(Index: integer): string;
- function GetRunHKLMServices(Index: integer): string;
- function GetHKLMServicesOnceCount: integer;
- function GetRunHKLMServicesOnce(Index: integer): string;
- function GetHKCUServicesCount: integer;
- function GetHKCUServicesOnceCount: integer;
- function GetRunHKCUServices(Index: integer): string;
- function GetRunHKCUServicesOnce(Index: integer): string;
- function GetHKLMSessionManagerCount: integer;
- function GetHKCULoadCount: integer;
- function GetHKLMWinLogonCount: integer;
- function GetRunHKLMSessionManager(Index: integer): string;
- function GetRunHKCULoad(Index: integer): string;
- function GetRunHKLMWinLogon(Index: integer): string;
- public
- constructor Create;
- destructor Destroy; override;
- procedure GetInfo;
- procedure Report(var sl :TStringList; Standalone: Boolean = True); virtual;
-
- property HKCU_Runs[Index: integer]: string read GetHKCU;
- property HKCU_Count: integer read GetHKCUCount;
- property HKLM_Runs[Index: integer]: string read GetHKLM;
- property HKLM_Count: integer read GetHKLMCount;
- property HKLMOnce_Runs[Index: integer]: string read GetRunHKLMOnce;
- property HKLMOnce_Count: integer read GetHKLMOnceCount;
- property HKCUOnce_Runs[Index: integer]: string read GetRunHKCUOnce;
- property HKCUOnce_Count: integer read GetHKCUOnceCount;
- property HKLMOnceEx_Runs[Index: integer]: string read GetRunHKLMOnceEx;
- property HKLMOnceEx_Count: integer read GetHKLMOnceExCount;
- property HKCUOnceEx_Runs[Index: integer]: string read GetRunHKCUOnceEx;
- property HKCUOnceEx_Count: integer read GetHKCUOnceExCount;
- property HKLMServices_Runs[Index: integer]: string read GetRunHKLMServices;
- property HKLMServices_Count: integer read GetHKLMServicesCount;
- property HKLMServicesOnce_Runs[Index: integer]: string read GetRunHKLMServicesOnce;
- property HKLMServicesOnce_Count: integer read GetHKLMServicesOnceCount;
- property HKCUServices_Runs[Index: integer]: string read GetRunHKCUServices;
- property HKCUServices_Count: integer read GetHKCUServicesCount;
- property HKCUServicesOnce_Runs[Index: integer]: string read GetRunHKCUServicesOnce;
- property HKCUServicesOnce_Count: integer read GetHKCUServicesOnceCount;
- property HKLMSessionManager_Runs[Index: integer]: string read GetRunHKLMSessionManager;
- property HKLMSessionManager_Count: integer read GetHKLMSessionManagerCount;
- property HKLMWinLogon_Runs[Index: integer]: string read GetRunHKLMWinLogon;
- property HKLMWinLogon_Count: integer read GetHKLMWinLogonCount;
- property HKCULoad_Runs[Index: integer]: string read GetRunHKCULoad;
- property HKCULoad_Count: integer read GetHKCULoadCount;
- property User_Runs[Index: integer]: string read GetUserRun;
- property User_Count: integer read GetUserCount;
- property Common_Runs[Index: integer]: string read GetCommonRun;
- property Common_Count: integer read GetCommonCount;
- property WinINI_Runs[Index: integer]: string read GetWININIRun;
- property WinINI_Count: integer read GetWININICount;
- property SystemINI_Runs[Index: integer]: string read GetSYSTEMINIRun;
- property SystemINI_Count: integer read GetSYSTEMINICount;
-
- function GetRunCommand(AType: TRunType; Index: integer): string;
- published
- property RunsCount: integer read GetCount {$IFNDEF D6PLUS} write SetCount {$ENDIF} stored False;
- end;
-
-
- implementation
-
-