Added common check for USER32 and GDI32 API availability.
This CL adds a check function to base to allow code to check if the USER32
and GDI32 API calls are available. Windows 8 and above allow an application
to disable these API calls for security reasons and fallback when calling
the API isn't consistent (such as returning error codes instead of handles).
This can lead to undefined behaviour if code calls into these APIs while they
are disabled. This check can be used to guard calls to these APIs and fallback
if appropriate.

BUG=523278

Review URL: https://codereview.chromium.org/1351513002

Cr-Commit-Position: refs/heads/master@{#349237}
2 files changed