OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_WIN_SCOPED_STARTUP_INFO_EX_H_ |
| 6 #define BASE_WIN_SCOPED_STARTUP_INFO_EX_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <windows.h> |
| 10 |
| 11 #include "base/base_export.h" |
| 12 #include "base/basictypes.h" |
| 13 |
| 14 namespace base { |
| 15 namespace win { |
| 16 |
| 17 // Manages the lifetime of additional attributes in STARTUPINFOEX. |
| 18 class BASE_EXPORT ScopedStartupInfoEx { |
| 19 public: |
| 20 ScopedStartupInfoEx(); |
| 21 |
| 22 ~ScopedStartupInfoEx(); |
| 23 |
| 24 // Initialize the attribute list for the specified number of entries. |
| 25 bool InitializeProcThreadAttributeList(DWORD attribute_count); |
| 26 |
| 27 // Sets one entry in the initialized attribute list. |
| 28 bool UpdateProcThreadAttribute(DWORD_PTR attribute, |
| 29 void* value, |
| 30 size_t size); |
| 31 |
| 32 STARTUPINFO* startup_info() { return &startup_info_.StartupInfo; } |
| 33 |
| 34 private: |
| 35 STARTUPINFOEX startup_info_; |
| 36 DISALLOW_COPY_AND_ASSIGN(ScopedStartupInfoEx); |
| 37 }; |
| 38 |
| 39 } // namespace win |
| 40 } // namespace base |
| 41 |
| 42 #endif // BASE_WIN_SCOPED_STARTUP_INFO_EX_H_ |
| 43 |
OLD | NEW |