public static extern bool CreateProcessAsUser(SafeTokenHandle hToken, StringBuilder appExeName, StringBuilder commandLine, IntPtr processAttributes, IntPtr threadAttributes, bool inheritHandles, uint dwCreationFlags, EnvironmentBlockSafeHandle environment, string currentDirectory, ref STARTUPINFO startupInfo, out PROCESS_INFORMATION startupInformation);
public static extern bool CreateEnvironmentBlock(out EnvironmentBlockSafeHandle lpEnvironment, SafeTokenHandle hToken, bool bInherit);