text: //===-- sanitizer_win.cpp -------------------------------------------------===//
  //
  // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  // See https://llvm.org/LICENSE.txt for license information.
  // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  //
  //===----------------------------------------------------------------------===//
  //
  // This file is shared between AddressSanitizer and ThreadSanitizer
  // run-time libraries and implements windows-specific functions from
  // sanitizer_libc.h.
  //===----------------------------------------------------------------------===//
  
  // !!! This file contains only the relevant parts of the original sanitizer_win.cpp
  
  #include "sanitizer_platform.h"
  #if SANITIZER_WINDOWS
  
  #define WIN32_LEAN_AND_MEAN
  #define NOGDI
  #include <windows.h>
  
  #include "sanitizer_common.h"
  
  #pragma comment(lib, "user32.lib")
  
  namespace __sanitizer {
  
  // --------------------- sanitizer_common.h
  uptr GetPageSize() {
    SYSTEM_INFO si;
    GetSystemInfo(&si);
    return si.dwPageSize;
  }
  
  }  // namespace __sanitizer
  
  #endif  // _WIN32
  