Example #1
0
 public static bool CreateProcessHandler(string lpApplicationName, string lpCommandLine,
                                         IntPtr lpProcessAttributes, IntPtr lpThreadAttributes,
                                         bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment,
                                         string lpCurrentDirectory, ref StartupInfoW lpStartupInfo, ref ProcessInformation pInfo)
 {
     return(CreateProcessWHookerImplementation <CreateProcessWRemoteHooker> .CreateProcessHandlerStatic(
                lpApplicationName, lpCommandLine,
                lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment,
                lpCurrentDirectory, ref lpStartupInfo, ref pInfo));
 }
        public bool CreateProcessHookStatic(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes,
                                            IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment,
                                            string lpCurrentDirectory, ref StartupInfoW lpStartupInfo, ref ProcessInformation pInfo, T This)
        {
            var createProcessWHookerImplementation = new CreateProcessWHookerImplementation <T>(null);

            return(createProcessWHookerImplementation.CreateProcessHandler(lpApplicationName, lpCommandLine,
                                                                           lpProcessAttributes,
                                                                           lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment,
                                                                           lpCurrentDirectory, ref lpStartupInfo, ref pInfo));
        }
Example #3
0
 public CreateProcessWRemoteHooker(
     RemoteHooking.IContext inContext,
     string inChannelName) : base(inContext, inChannelName)
 {
     _createProcessWHookerImplementation = new CreateProcessWHookerImplementation <CreateProcessWRemoteHooker>(this);
 }
Example #4
0
 public CreateProcessWHooker()
 {
     _createProcessWHookerImplementation = new CreateProcessWHookerImplementation <CreateProcessWHooker>(this);
 }