init.cpp
1 // Copyright (c) Microsoft Corporation 2 // Licensed under the MIT license. 3 4 #include "pch.h" 5 6 #pragma warning(suppress : 26440) // Not interested in changing the specification of DllMain to make it noexcept given it's an interface to the OS. 7 BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD reason, LPVOID /*reserved*/) 8 { 9 switch (reason) 10 { 11 case DLL_PROCESS_ATTACH: 12 DisableThreadLibraryCalls(hInstDll); 13 break; 14 case DLL_PROCESS_DETACH: 15 break; 16 default: 17 break; 18 } 19 20 return TRUE; 21 }