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

Side by Side Diff: sandbox/win/tools/launcher/launcher.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree 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
« no previous file with comments | « sandbox/win/tools/finder/ntundoc.h ('k') | sandbox/win/tools/launcher/launcher.vcproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "sandbox/src/restricted_token_utils.h" 5 #include "sandbox/win/src/restricted_token_utils.h"
6 6
7 // launcher.exe is an application used to launch another application with a 7 // launcher.exe is an application used to launch another application with a
8 // restricted token. This is to be used for testing only. 8 // restricted token. This is to be used for testing only.
9 // The parameters are the level of security of the primary token, the 9 // The parameters are the level of security of the primary token, the
10 // impersonation token and the job object along with the command line to 10 // impersonation token and the job object along with the command line to
11 // execute. 11 // execute.
12 // See the usage (launcher.exe without parameters) for the correct format. 12 // See the usage (launcher.exe without parameters) for the correct format.
13 13
14 #define PARAM_IS(y) (argc > i) && (_wcsicmp(argv[i], y) == 0) 14 #define PARAM_IS(y) (argc > i) && (_wcsicmp(argv[i], y) == 0)
15 15
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 wprintf(L"\nPress any key to continue."); 148 wprintf(L"\nPress any key to continue.");
149 while(!_kbhit()) { 149 while(!_kbhit()) {
150 Sleep(100); 150 Sleep(100);
151 } 151 }
152 152
153 ::CloseHandle(job_handle); 153 ::CloseHandle(job_handle);
154 154
155 return 0; 155 return 0;
156 } 156 }
OLDNEW
« no previous file with comments | « sandbox/win/tools/finder/ntundoc.h ('k') | sandbox/win/tools/launcher/launcher.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698