| /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
| file Copyright.txt or https://cmake.org/licensing for details. */ |
| #include "cmConfigure.h" // IWYU pragma: keep |
| # include <windows.h> // DWORD |
| * @brief Result of the locking/unlocking file. |
| * @note See @c cmFileLock |
| * @brief Successful lock/unlock. |
| static cmFileLockResult MakeOk(); |
| * @brief Lock/Unlock failed. Read error/GetLastError. |
| static cmFileLockResult MakeSystem(); |
| * @brief Lock/Unlock failed. Timeout reached. |
| static cmFileLockResult MakeTimeout(); |
| * @brief File already locked. |
| static cmFileLockResult MakeAlreadyLocked(); |
| static cmFileLockResult MakeInternal(); |
| * @brief Try to lock with function guard outside of the function |
| static cmFileLockResult MakeNoFunction(); |
| std::string GetOutputMessage() const; |
| cmFileLockResult(ErrorType type, Error errorValue); |