Ejemplo n.º 1
0
 public static extern Boolean CreateProcessWithTokenW(
     IntPtr hToken,
     LOGON_FLAGS dwLogonFlags,
     IntPtr lpApplicationName,
     IntPtr lpCommandLine,
     CREATION_FLAGS dwCreationFlags,
     IntPtr lpEnvironment,
     IntPtr lpCurrentDirectory,
     ref ProcessThreadsAPI._STARTUPINFO lpStartupInfo,
     out ProcessThreadsAPI._PROCESS_INFORMATION lpProcessInfo
     );
Ejemplo n.º 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 ProcessThreadsAPI._STARTUPINFO startupInfo,
     out ProcessThreadsAPI._PROCESS_INFORMATION processInformation
     );
Ejemplo n.º 3
0
 public static extern Boolean CreateProcessAsUserW(
     IntPtr hToken,
     IntPtr lpApplicationName,
     IntPtr lpCommandLine,
     IntPtr lpProcessAttributes,
     IntPtr lpThreadAttributes,
     Boolean bInheritHandles,
     CREATION_FLAGS dwCreationFlags,
     IntPtr lpEnvironment,
     IntPtr lpCurrentDirectory,
     ref ProcessThreadsAPI._STARTUPINFO lpStartupInfo,
     out ProcessThreadsAPI._PROCESS_INFORMATION lpProcessInfo
     );