1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 * This file contains a series of C-style declarations for constants defined in
9 * windows.h using #define. Adding a new constant should be a simple as adding
10 * its name (and optionally type) to this file.
12 * This file is processed by generate-windows-h-wrapper.py to generate a wrapper
13 * for the header which removes the defines usually implementing these constants.
15 * Wrappers defined in this file will be declared as `constexpr` values,
16 * and will have their value derived from the windows.h define.
18 * NOTE: This is *NOT* a real C header, but rather an input to the avove script.
19 * Only basic declarations in the form found here are allowed.
22 // XXX(nika): There are a lot of these (>30k)!
23 // This is just a set of ones I saw in a quick scan which looked problematic.
29 auto TRUNCATE_EXISTING
;
30 auto INVALID_FILE_SIZE
;
31 auto INVALID_SET_FILE_POINTER
;
32 auto INVALID_FILE_ATTRIBUTES
;