15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include <windows.h> 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const wchar_t kDll3Beacon[] = L"{9E056AEC-169E-400c-B2D0-5A07E3ACE2EB}"; 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) if (reason == DLL_PROCESS_ATTACH) { 115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) ::SetEnvironmentVariable(kDll3Beacon, L"1"); 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) } 135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return TRUE; 145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 15