nt_status.h 725 B

1234567891011121314151617181920212223
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_WIN_NT_STATUS_H_
  5. #define BASE_WIN_NT_STATUS_H_
  6. #include "base/base_export.h"
  7. #include "base/win/windows_types.h"
  8. namespace base {
  9. namespace win {
  10. // Returns the value of the most recent thread-local NTSTATUS value, i.e.
  11. // LastStatusValue from the Thread Environment Block (TEB). This may be used,
  12. // for example, to deduce more information about the outcome of an API call
  13. // where the meaning of GetLastError() is ambiguous.
  14. BASE_EXPORT NTSTATUS GetLastNtStatus();
  15. } // namespace win
  16. } // namespace base
  17. #endif // BASE_WIN_NT_STATUS_H_