Exemplo n.º 1
0
        public Loader.PROCESS_INFORMATION StartProcess(string path)
        {
            Loader.STARTUPINFO         sTARTUPINFO = default(Loader.STARTUPINFO);
            Loader.PROCESS_INFORMATION result      = default(Loader.PROCESS_INFORMATION);
            uint dwCreateFlags = 4u;

            if (!Loader.CreateProcess((IntPtr)0, path, (IntPtr)0, (IntPtr)0, false, dwCreateFlags, (IntPtr)0, (IntPtr)0, ref sTARTUPINFO, out result))
            {
                throw new SystemException("[x] Failed to create process!");
            }
            return(result);
        }
Exemplo n.º 2
0
 private static extern bool CreateProcess(IntPtr lpApplicationName, string lpCommandLine, IntPtr lpProcAttribs, IntPtr lpThreadAttribs, bool bInheritHandles, uint dwCreateFlags, IntPtr lpEnvironment, IntPtr lpCurrentDir, [In] ref Loader.STARTUPINFO lpStartinfo, out Loader.PROCESS_INFORMATION lpProcInformation);