| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "base/win/shortcut.h" | 5 #include "base/win/shortcut.h" |
| 6 | 6 |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <propkey.h> | 9 #include <propkey.h> |
| 10 | 10 |
| 11 #include "base/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 13 #include "base/win/scoped_comptr.h" | 13 #include "base/win/scoped_comptr.h" |
| 14 #include "base/win/scoped_propvariant.h" | 14 #include "base/win/scoped_propvariant.h" |
| 15 #include "base/win/win_util.h" | 15 #include "base/win/win_util.h" |
| 16 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 namespace win { | 19 namespace win { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 if (GetVersion() < VERSION_WIN7) | 327 if (GetVersion() < VERSION_WIN7) |
| 328 return false; | 328 return false; |
| 329 | 329 |
| 330 int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarunpin", | 330 int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarunpin", |
| 331 shortcut, NULL, NULL, 0)); | 331 shortcut, NULL, NULL, 0)); |
| 332 return result > 32; | 332 return result > 32; |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace win | 335 } // namespace win |
| 336 } // namespace base | 336 } // namespace base |
| OLD | NEW |