Exemple #1
0
        public static void Launch(
            Process process,
            IntPtr targetHwnd,
            MethodInfo methodInfo,
            TransientSettingsData transientSettingsData = null)
        {
            if (process is null)
            {
                throw new ArgumentNullException(nameof(process));
            }

            if (methodInfo is null)
            {
                throw new ArgumentNullException(nameof(methodInfo));
            }

            Architecture architecture      = process.GetArchitecture();
            bool         isProcessElevated = process.IsElevated();

            Launch(process.Id,
                   isProcessElevated,
                   architecture,
                   targetHwnd,
                   methodInfo.DeclaringType.Assembly.Location,
                   methodInfo.DeclaringType.FullName,
                   methodInfo.Name,
                   transientSettingsData?.WriteToFile());
        }
 public static void Launch(ProcessInfo processInfo, IntPtr targetHwnd, MethodInfo methodInfo, TransientSettingsData transientSettingsData)
 {
     Launch(processInfo, targetHwnd, methodInfo.DeclaringType.Assembly.GetName().Name, methodInfo.DeclaringType.FullName, methodInfo.Name, transientSettingsData.WriteToFile());
 }
Exemple #3
0
 public static void Launch(
     int processId,
     bool isProcessElevated,
     Architecture architecture,
     IntPtr targetHwnd,
     MethodInfo methodInfo,
     TransientSettingsData transientSettingsData = null)
 {
     Launch(processId, isProcessElevated, architecture, targetHwnd, methodInfo.DeclaringType.Assembly.GetName().Name, methodInfo.DeclaringType.FullName, methodInfo.Name, transientSettingsData.WriteToFile());
 }