1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/win/src/sandbox_utils.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +// Copyright (c) 2011 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef SANDBOX_SRC_SANDBOX_UTILS_H__ 1.9 +#define SANDBOX_SRC_SANDBOX_UTILS_H__ 1.10 + 1.11 +#include <windows.h> 1.12 +#include <string> 1.13 + 1.14 +#include "base/basictypes.h" 1.15 +#include "sandbox/win/src/nt_internals.h" 1.16 + 1.17 +namespace sandbox { 1.18 + 1.19 +// Returns true if the current OS is Windows XP SP2 or later. 1.20 +bool IsXPSP2OrLater(); 1.21 + 1.22 +void InitObjectAttribs(const std::wstring& name, 1.23 + ULONG attributes, 1.24 + HANDLE root, 1.25 + OBJECT_ATTRIBUTES* obj_attr, 1.26 + UNICODE_STRING* uni_name); 1.27 + 1.28 +}; // namespace sandbox 1.29 + 1.30 +#endif // SANDBOX_SRC_SANDBOX_UTILS_H__