2013-11-12 17:31:32 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_windowsdllblocklist_h
|
|
|
|
#define mozilla_windowsdllblocklist_h
|
|
|
|
|
2017-05-15 23:49:20 +03:00
|
|
|
#if (defined(_MSC_VER) || defined(__MINGW32__)) && (defined(_M_IX86) || defined(_M_X64))
|
2013-11-12 17:31:32 +04:00
|
|
|
|
|
|
|
#include <windows.h>
|
2016-05-25 00:57:57 +03:00
|
|
|
#include "mozilla/Attributes.h"
|
2017-02-01 00:52:13 +03:00
|
|
|
#include "mozilla/Types.h"
|
2013-11-12 17:31:32 +04:00
|
|
|
|
|
|
|
#define HAS_DLL_BLOCKLIST
|
|
|
|
|
2017-05-12 00:50:10 +03:00
|
|
|
enum DllBlocklistInitFlags
|
|
|
|
{
|
|
|
|
eDllBlocklistInitFlagDefault = 0,
|
|
|
|
eDllBlocklistInitFlagIsChildProcess = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
MFBT_API void DllBlocklist_Initialize(uint32_t aInitFlags = eDllBlocklistInitFlagDefault);
|
2016-05-25 00:57:57 +03:00
|
|
|
MFBT_API void DllBlocklist_WriteNotes(HANDLE file);
|
2016-07-27 23:20:58 +03:00
|
|
|
MFBT_API bool DllBlocklist_CheckStatus();
|
2013-11-12 17:31:32 +04:00
|
|
|
|
2017-12-05 04:08:17 +03:00
|
|
|
// Forward declaration
|
|
|
|
namespace mozilla {
|
2018-01-31 00:23:10 +03:00
|
|
|
namespace glue {
|
2017-12-05 04:08:17 +03:00
|
|
|
namespace detail {
|
|
|
|
class DllServicesBase;
|
|
|
|
} // namespace detail
|
2018-01-31 00:23:10 +03:00
|
|
|
} // namespace glue
|
2017-12-05 04:08:17 +03:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2018-01-31 00:23:10 +03:00
|
|
|
MFBT_API void DllBlocklist_SetDllServices(mozilla::glue::detail::DllServicesBase* aSvc);
|
2017-12-05 04:08:17 +03:00
|
|
|
|
2013-11-12 17:31:32 +04:00
|
|
|
#endif // defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
|
|
|
|
#endif // mozilla_windowsdllblocklist_h
|