Ejemplo n.º 1
0
 internal static extern bool CreateProcessWithTokenW(
     SafeAccessTokenHandle hToken,
     LogonFlags logonFlags,
     string lpApplicationName,
     StringBuilder lpCommandLine,
     int dwCreationFlags,
     IntPtr environmentBlock,
     string lpCurrentDirectory,
     ref Interop.Kernel32.STARTUPINFOEX lpStartupInfo,
     ref Interop.Kernel32.PROCESS_INFORMATION lpProcessInformation);
Ejemplo n.º 2
0
 internal static extern bool CreateProcessWithLogonW(
     string userName,
     string domain,
     IntPtr password,
     LogonFlags logonFlags,
     string appName,
     StringBuilder cmdLine,
     int creationFlags,
     IntPtr environmentBlock,
     string lpCurrentDirectory,
     ref Interop.Kernel32.STARTUPINFOEX lpStartupInfo,
     ref Interop.Kernel32.PROCESS_INFORMATION lpProcessInformation);