Example #1
0
 public static extern bool CreateProcessWithTokenW(
     IntPtr hToken,
     Execute.Win32.Advapi32.LOGON_FLAGS dwLogonFlags,
     string lpApplicationName,
     string lpCommandLine,
     Execute.Win32.Advapi32.CREATION_FLAGS dwCreationFlags,
     IntPtr lpEnvironment,
     string lpCurrentDirectory,
     ref Execute.Win32.ProcessThreadsAPI._STARTUPINFO lpStartupInfo,
     out Execute.Win32.ProcessThreadsAPI._PROCESS_INFORMATION lpProcessInfo
     );
Example #2
0
 public static extern bool CreateProcessWithLogonW(
     String userName,
     String domain,
     String password,
     int logonFlags,
     String applicationName,
     String commandLine,
     int creationFlags,
     IntPtr environment,
     String currentDirectory,
     ref Execute.Win32.ProcessThreadsAPI._STARTUPINFO startupInfo,
     out Execute.Win32.ProcessThreadsAPI._PROCESS_INFORMATION processInformation
     );
Example #3
0
 public static extern Boolean CreateProcessAsUserW(
     IntPtr hToken,
     IntPtr lpApplicationName,
     IntPtr lpCommandLine,
     IntPtr lpProcessAttributes,
     IntPtr lpThreadAttributes,
     Boolean bInheritHandles,
     Execute.Win32.Advapi32.CREATION_FLAGS dwCreationFlags,
     IntPtr lpEnvironment,
     IntPtr lpCurrentDirectory,
     ref Execute.Win32.ProcessThreadsAPI._STARTUPINFO lpStartupInfo,
     out Execute.Win32.ProcessThreadsAPI._PROCESS_INFORMATION lpProcessInfo
     );