| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 5 #ifndef REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
| 6 #define REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 6 #define REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // The other parameters are passed directly to CreateProcessAsUser(). | 31 // The other parameters are passed directly to CreateProcessAsUser(). |
| 32 // If |inherit_handles| is true |g_inherit_handles_lock| should be taken while | 32 // If |inherit_handles| is true |g_inherit_handles_lock| should be taken while |
| 33 // any inheritable handles are open. | 33 // any inheritable handles are open. |
| 34 bool LaunchProcessWithToken(const base::FilePath& binary, | 34 bool LaunchProcessWithToken(const base::FilePath& binary, |
| 35 const CommandLine::StringType& command_line, | 35 const CommandLine::StringType& command_line, |
| 36 HANDLE user_token, | 36 HANDLE user_token, |
| 37 SECURITY_ATTRIBUTES* process_attributes, | 37 SECURITY_ATTRIBUTES* process_attributes, |
| 38 SECURITY_ATTRIBUTES* thread_attributes, | 38 SECURITY_ATTRIBUTES* thread_attributes, |
| 39 bool inherit_handles, | 39 bool inherit_handles, |
| 40 DWORD creation_flags, | 40 DWORD creation_flags, |
| 41 const char16* desktop_name, | 41 const base::char16* desktop_name, |
| 42 base::win::ScopedHandle* process_out, | 42 base::win::ScopedHandle* process_out, |
| 43 base::win::ScopedHandle* thread_out); | 43 base::win::ScopedHandle* thread_out); |
| 44 | 44 |
| 45 } // namespace remoting | 45 } // namespace remoting |
| 46 | 46 |
| 47 #endif // REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 47 #endif // REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
| OLD | NEW |