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 #include "remoting/host/win/launch_process_with_token.h" | 5 #include "remoting/host/win/launch_process_with_token.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <winternl.h> | 8 #include <winternl.h> |
9 | 9 |
10 #include <limits> | 10 #include <limits> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
16 #include "base/scoped_native_library.h" | 16 #include "base/scoped_native_library.h" |
17 #include "base/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 #include "base/win/scoped_process_information.h" | 21 #include "base/win/scoped_process_information.h" |
22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
23 | 23 |
24 using base::win::ScopedHandle; | 24 using base::win::ScopedHandle; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 const char kCreateProcessDefaultPipeNameFormat[] = | 28 const char kCreateProcessDefaultPipeNameFormat[] = |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 return false; | 517 return false; |
518 } | 518 } |
519 | 519 |
520 CHECK(process_info.IsValid()); | 520 CHECK(process_info.IsValid()); |
521 process_out->Set(process_info.TakeProcessHandle()); | 521 process_out->Set(process_info.TakeProcessHandle()); |
522 thread_out->Set(process_info.TakeThreadHandle()); | 522 thread_out->Set(process_info.TakeThreadHandle()); |
523 return true; | 523 return true; |
524 } | 524 } |
525 | 525 |
526 } // namespace remoting | 526 } // namespace remoting |
OLD | NEW |