- public class Win32
- {
- [DllImport("kernel32.dll", SetLastError = true)]
- public static extern bool TerminateProcess(IntPtr hHandle, uint uExitCode);
- [DllImport("kernel32.dll", SetLastError = true)]
- public static extern bool CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation);
- }
* This source code was highlighted with
Source Code Highlighter.
Надо было всего-то дописать 5-ую строку. Чёрт, одну строку. Чтож я так две недели тупил то(<=> FFFFFFFFFFUUUUUUUUUUU).