Ejemplo n.º 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
     );
Ejemplo n.º 2
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
     );