You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
802 B
24 lines
802 B
// Copyright 2019 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.
|
|
|
|
#ifndef THIRD_PARTY_BASE_WIN_WIN_UTIL_H_
|
|
#define THIRD_PARTY_BASE_WIN_WIN_UTIL_H_
|
|
|
|
namespace pdfium {
|
|
namespace base {
|
|
namespace win {
|
|
|
|
// Returns true if the current process can make USER32 or GDI32 calls such as
|
|
// CreateWindow and CreateDC. Windows 8 and above allow the kernel component
|
|
// of these calls to be disabled which can cause undefined behaviour such as
|
|
// crashes. This function can be used to guard areas of code using these calls
|
|
// and provide a fallback path if necessary.
|
|
bool IsUser32AndGdi32Available();
|
|
|
|
} // namespace win
|
|
} // namespace base
|
|
} // namespace pdfium
|
|
|
|
#endif // THIRD_PARTY_BASE_WIN_WIN_UTIL_H_
|