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 kDll2Beacon[] = L"{F70A0100-2889-4629-9B44-610FE5C73231}"; 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)extern "C" { 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Have a dummy export so that the module gets an export table entry. 115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)void DummyExport() {} 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { 155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) if (reason == DLL_PROCESS_ATTACH) { 165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) ::SetEnvironmentVariable(kDll2Beacon, L"1"); 175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) } 185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return TRUE; 195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 20