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