1 // Copyright 2021 The Chromium 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 BASE_WIN_NT_STATUS_H_ 6 #define BASE_WIN_NT_STATUS_H_ 7 8 #include "base/base_export.h" 9 #include "base/win/windows_types.h" 10 11 namespace base { 12 namespace win { 13 14 // Returns the value of the most recent thread-local NTSTATUS value, i.e. 15 // LastStatusValue from the Thread Environment Block (TEB). This may be used, 16 // for example, to deduce more information about the outcome of an API call 17 // where the meaning of GetLastError() is ambiguous. 18 BASE_EXPORT NTSTATUS GetLastNtStatus(); 19 20 } // namespace win 21 } // namespace base 22 23 #endif // BASE_WIN_NT_STATUS_H_ 24