OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |