1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18

base / win / wincred_shim.h [blame]

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_WIN_WINCRED_SHIM_H_
#define BASE_WIN_WINCRED_SHIM_H_

// Any Chromium headers which want to `#include <wincred.h>` should instead
// #include this header.

#include <wincred.h>

// <wincred.h> defines macros mapping various common function names to have a
// `W` suffix. Undefine as necessary. If you need to call one of the relevant
// system APIs, use the full name (with trailing `W`) directly.
#undef CredProtect

#endif  // BASE_WIN_WINCRED_SHIM_H_