OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/win/sandbox_poc/main_ui_window.h" |
| 6 |
5 #include <windows.h> | 7 #include <windows.h> |
6 #include <CommCtrl.h> | 8 #include <CommCtrl.h> |
7 #include <commdlg.h> | 9 #include <commdlg.h> |
8 #include <stdarg.h> | 10 #include <stdarg.h> |
| 11 #include <stddef.h> |
9 #include <time.h> | 12 #include <time.h> |
10 #include <windowsx.h> | 13 #include <windowsx.h> |
11 #include <atlbase.h> | 14 #include <atlbase.h> |
12 #include <atlsecurity.h> | 15 #include <atlsecurity.h> |
13 #include <algorithm> | 16 #include <algorithm> |
14 #include <sstream> | 17 #include <sstream> |
15 | 18 |
16 #include "sandbox/win/sandbox_poc/main_ui_window.h" | |
17 #include "base/logging.h" | 19 #include "base/logging.h" |
18 #include "sandbox/win/sandbox_poc/resource.h" | 20 #include "sandbox/win/sandbox_poc/resource.h" |
19 #include "sandbox/win/src/acl.h" | 21 #include "sandbox/win/src/acl.h" |
20 #include "sandbox/win/src/sandbox.h" | 22 #include "sandbox/win/src/sandbox.h" |
21 #include "sandbox/win/src/win_utils.h" | 23 #include "sandbox/win/src/win_utils.h" |
22 | 24 |
23 HWND MainUIWindow::list_view_ = NULL; | 25 HWND MainUIWindow::list_view_ = NULL; |
24 | 26 |
25 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll"; | 27 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll"; |
26 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run"; | 28 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run"; |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 item.iItem = ListView_GetItemCount(list_view_); | 654 item.iItem = ListView_GetItemCount(list_view_); |
653 item.iSubItem = 0; | 655 item.iSubItem = 0; |
654 item.mask = LVIF_TEXT | LVIF_PARAM; | 656 item.mask = LVIF_TEXT | LVIF_PARAM; |
655 item.pszText = message_time; | 657 item.pszText = message_time; |
656 item.lParam = 0; | 658 item.lParam = 0; |
657 | 659 |
658 ListView_InsertItem(list_view_, &item); | 660 ListView_InsertItem(list_view_, &item); |
659 | 661 |
660 delete[] message_time; | 662 delete[] message_time; |
661 } | 663 } |
OLD | NEW |