• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CORE_FXCRT_WIN_WIN_UTIL_H_
6 #define CORE_FXCRT_WIN_WIN_UTIL_H_
7 
8 namespace pdfium {
9 
10 // Returns true if the current process can make USER32 or GDI32 calls such as
11 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component
12 // of these calls to be disabled which can cause undefined behaviour such as
13 // crashes. This function can be used to guard areas of code using these calls
14 // and provide a fallback path if necessary.
15 bool IsUser32AndGdi32Available();
16 
17 }  // namespace pdfium
18 
19 #endif  // CORE_FXCRT_WIN_WIN_UTIL_H_
20