Index: base/win/pe_image_test.cc |
diff --git a/base/win/pe_image_test.cc b/base/win/pe_image_test.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a22f8024165042bb532e8743dc8a2de531471ffa |
--- /dev/null |
+++ b/base/win/pe_image_test.cc |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include <windows.h> |
+ |
+#include <cfgmgr32.h> |
+#include <shellapi.h> |
+ |
+extern "C" { |
+ |
+__declspec(dllexport) void ExportFunc1() { |
+ // Call into user32.dll. |
+ HWND dummy = GetDesktopWindow(); |
+ SetWindowTextA(dummy, "dummy"); |
+} |
+ |
+__declspec(dllexport) void ExportFunc2() { |
+ // Call into cfgmgr32.dll. |
+ CM_MapCrToWin32Err(CR_SUCCESS, ERROR_SUCCESS); |
+ SHFILEOPSTRUCT file_operation = {0}; |
+ // Call into shell32.dll. |
rvargas (doing something else)
2015/02/24 20:03:22
nit: add empty line before this one (and @24)
Will Harris
2015/02/24 20:46:54
Done.
|
+ SHFileOperation(&file_operation); |
+ // Call into kernel32.dll. |
+ HANDLE h = CreateEvent(NULL, FALSE, FALSE, NULL); |
+ CloseHandle(h); |
+} |
+ |
+} // extern "C" |