Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / base / win / pe_image_test.cc
blobe374598ada750f1d41907807a173f4ba933d18e7
1 // Copyright 2015 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.
5 #include <windows.h>
7 #include <cfgmgr32.h>
8 #include <shellapi.h>
10 extern "C" {
12 __declspec(dllexport) void ExportFunc1() {
13 // Call into user32.dll.
14 HWND dummy = GetDesktopWindow();
15 SetWindowTextA(dummy, "dummy");
18 __declspec(dllexport) void ExportFunc2() {
19 // Call into cfgmgr32.dll.
20 CM_MapCrToWin32Err(CR_SUCCESS, ERROR_SUCCESS);
22 // Call into shell32.dll.
23 SHFILEOPSTRUCT file_operation = {0};
24 SHFileOperation(&file_operation);
26 // Call into kernel32.dll.
27 HANDLE h = CreateEvent(NULL, FALSE, FALSE, NULL);
28 CloseHandle(h);
31 } // extern "C"