Beispiel #1
0
        /// <summary>
        /// Creates a new entry point.
        /// </summary>
        /// <param name="inContext">Hooking context information.</param>
        /// <param name="implentationDir">The base directory of the implementation containing this executable.</param>
        /// <param name="registryFilter">A set of filter rules to registry access.</param>
        /// <param name="relaunchControl">Stores information about how commands within an implementation can be relaunched. Used for Windows 7 taskbar pinning.</param>
        public EntryPoint(RemoteHooking.IContext inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(implentationDir)) throw new ArgumentNullException("implentationDir");
            if (registryFilter == null) throw new ArgumentNullException("registryFilter");
            if (relaunchControl == null) throw new ArgumentNullException("relaunchControl");
            #endregion

            _implementationDir = implentationDir;
            _registryFilter = registryFilter;
            _relaunchControl = relaunchControl;
            _relaunchInformation = relaunchControl.GetCurrentEntry();
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new entry point.
        /// </summary>
        /// <param name="inContext">Hooking context information.</param>
        /// <param name="implentationDir">The base directory of the implementation containing this executable.</param>
        /// <param name="registryFilter">A set of filter rules to registry access.</param>
        /// <param name="relaunchControl">Stores information about how commands within an implementation can be relaunched. Used for Windows 7 taskbar pinning.</param>
        public EntryPoint(RemoteHooking.IContext inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(implentationDir))
            {
                throw new ArgumentNullException(nameof(implentationDir));
            }
            if (registryFilter == null)
            {
                throw new ArgumentNullException(nameof(registryFilter));
            }
            if (relaunchControl == null)
            {
                throw new ArgumentNullException(nameof(relaunchControl));
            }
            #endregion

            _implementationDir   = implentationDir;
            _registryFilter      = registryFilter;
            _relaunchControl     = relaunchControl;
            _relaunchInformation = relaunchControl.GetCurrentEntry();
        }