1// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <windows.h>
6
7// PsDllMain is the entry point of the proxy/stub code generated by MIDL.
8extern "C" BOOL WINAPI PsDllMain(HINSTANCE instance,
9                                 DWORD reason,
10                                 void* reserved);
11
12BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void* reserved) {
13  if (reason == DLL_PROCESS_ATTACH)
14    DisableThreadLibraryCalls(instance);
15
16  // Initialize the proxy/stub code as well.
17  return PsDllMain(instance, reason, reserved);
18}
19