toolkit/library/dummydll/dummydll.cpp
author Jim Mathies <jmathies@mozilla.com>
Mon, 22 Aug 2016 06:53:38 -0500
changeset 349865 a72bfbdf5c9b36e68ca806a25944180f2652f0c9
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1294650 - Install shim 'qipcap' dlls into the Firefox folder to circumvent dll injection by the 3rd party Websense product. r=aklotz a=sylvestre CLOSED TREE MozReview-Commit-ID: 11qJbfim7Lm

/* 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/. */

#include <windows.h>

BOOL WINAPI DllMain(
  HANDLE hModule,
  DWORD dwReason,
  LPVOID lpvReserved
)
{
  if (dwReason == DLL_PROCESS_ATTACH) {
    ::DisableThreadLibraryCalls((HMODULE)hModule);
  }
  return TRUE;
}