Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_ | |
| 6 #define REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_ | |
| 7 | |
| 8 #include <cstdint> | |
| 9 | |
| 10 #include "base/win/scoped_handle.h" | |
| 11 | |
| 12 namespace base { | |
| 13 class FilePath; | |
| 14 } // namespace base | |
| 15 | |
| 16 namespace remoting { | |
| 17 | |
| 18 // Launches the executable at |binary_path| using the parameters passed in. | |
| 19 // If the process is launched successfully, |read_handle| and |write_handle| are | |
| 20 // valid for I/O and the function returns 0. Otherwise a non-zero Windows error | |
| 21 // code is returned. | |
| 22 uint32_t LaunchNativeMessagingHostProcess( | |
|
Sergey Ulanov
2016/07/28 23:57:15
Return bool instead of uint32_t?
The actual error
joedow
2016/07/29 03:32:56
I need at least three states (success, failure, ca
| |
| 23 const base::FilePath& binary_path, | |
| 24 intptr_t parent_window_handle, | |
| 25 bool elevate_process, | |
| 26 base::win::ScopedHandle* read_handle, | |
| 27 base::win::ScopedHandle* write_handle); | |
| 28 | |
| 29 } // namespace remoting | |
| 30 | |
| 31 #endif // REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_ | |
| OLD | NEW |