naiveproxy/base/win/patch_util.h

26 lines
686 B
C
Raw Normal View History

2018-01-28 19:30:36 +03:00
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_WIN_PATCH_UTIL_H_
#define BASE_WIN_PATCH_UTIL_H_
#include <windows.h>
#include "base/base_export.h"
namespace base {
namespace win {
namespace internal {
// Copies |length| bytes from |source| to |destination|, temporarily setting
// |destination| to writable. Returns a Windows error code or NO_ERROR if
// successful.
BASE_EXPORT DWORD ModifyCode(void* destination, const void* source, int length);
} // namespace internal
} // namespace win
} // namespace bsae
#endif // BASE_WIN_PATCH_UTIL_H_