Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: base/win/scoped_startup_info_ex.h

Issue 10765008: Add scoped StartupInfoEx to base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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,
brettw 2012/07/10 05:41:24 What were they smoking when they made this a DWORD
jschuh 2012/07/10 16:14:50 Yep. Boggles the mind. Almost as funny, it's just
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698