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