summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.user32.delay.imports
diff options
context:
space:
mode:
authorsiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 19:17:58 +0000
committersiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 19:17:58 +0000
commitb26ac3b182b8c63192ad1f8e221ceac3fe5927be (patch)
treefaed9cd708aa240b55bd3d8d56b8f30f519d39e9 /chrome/chrome.user32.delay.imports
parent3209161d2f32bf14d594e455402be6d5ca09580b (diff)
downloadchromium_src-b26ac3b182b8c63192ad1f8e221ceac3fe5927be.zip
chromium_src-b26ac3b182b8c63192ad1f8e221ceac3fe5927be.tar.gz
chromium_src-b26ac3b182b8c63192ad1f8e221ceac3fe5927be.tar.bz2
Check in a custom-built import library for user32 exports up to Windows XP SP2/SP3, which is used by chrome.dll in preference to the Platform SDK's user32.lib import library.
Custom build an import library for Chrome's post-WinXP imports, that binds to a fictional "user32-delay.dll". Implement and test a delay load hook that diverts dynamic loading of any dll "foo-delay.dll" to "foo.dll". R=cpu@chromium.org BUG=176040 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191173 Review URL: https://chromiumcodereview.appspot.com/12295040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.user32.delay.imports')
-rw-r--r--chrome/chrome.user32.delay.imports29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/chrome.user32.delay.imports b/chrome/chrome.user32.delay.imports
new file mode 100644
index 0000000..baa1231
--- /dev/null
+++ b/chrome/chrome.user32.delay.imports
@@ -0,0 +1,29 @@
+# Copyright (c) 2012 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.
+#
+# This file is used to create a custom import library for Chrome.dll's use of
+# user32.dll APIs added post-Windows XP to obviate the need for delay loading
+# all of user32.dll.
+{
+ 'architecture': 'x86',
+
+ # The DLL to bind to - we delay load these imports.
+ 'dll_name': 'user32-delay.dll',
+
+ # Name of the generated import library.
+ 'importlib_name': 'chrome.user32.delay.lib',
+
+ # Chrome.dll uses these post-Windows XP (SP2) exports, and so they must be
+ # delay loaded for Chrome.dll to load on Windows XP computers.
+ 'imports': [
+ 'CloseGestureInfoHandle@4',
+ 'CloseTouchInputHandle@4',
+ 'GetGestureInfo@8',
+ 'GetTouchInputInfo@16',
+ 'IsTouchWindow@8',
+ 'RegisterTouchWindow@8',
+ 'SetGestureConfig@20',
+ 'UnregisterTouchWindow@4',
+ ],
+}