michael@0: // Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef SANDBOX_SRC_SANDBOX_UTILS_H__ michael@0: #define SANDBOX_SRC_SANDBOX_UTILS_H__ michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #include "base/basictypes.h" michael@0: #include "sandbox/win/src/nt_internals.h" michael@0: michael@0: namespace sandbox { michael@0: michael@0: // Returns true if the current OS is Windows XP SP2 or later. michael@0: bool IsXPSP2OrLater(); michael@0: michael@0: void InitObjectAttribs(const std::wstring& name, michael@0: ULONG attributes, michael@0: HANDLE root, michael@0: OBJECT_ATTRIBUTES* obj_attr, michael@0: UNICODE_STRING* uni_name); michael@0: michael@0: }; // namespace sandbox michael@0: michael@0: #endif // SANDBOX_SRC_SANDBOX_UTILS_H__