Пример #1
0
 public static extern bool CreateProcess(
     [MarshalAs(UnmanagedType.LPTStr)]string applicationName,
     StringBuilder commandLine, 
     SecurityAttributes processAttributes,
     SecurityAttributes threadAttributes, 
     bool inheritHandles, 
     int creationFlags,
     IntPtr environment, 
     [MarshalAs(UnmanagedType.LPTStr)]string currentDirectory,
     StartupInfo startupInfo, 
     ProcessInformation processInformation
 );
Пример #2
0
 public static extern bool CreateProcess(
     [MarshalAs(UnmanagedType.LPTStr)] string applicationName,
     StringBuilder commandLine,
     SecurityAttributes processAttributes,
     SecurityAttributes threadAttributes,
     bool inheritHandles,
     int creationFlags,
     IntPtr environment,
     [MarshalAs(UnmanagedType.LPTStr)] string currentDirectory,
     StartupInfo startupInfo,
     ProcessInformation processInformation
     );