1// Copyright 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#ifndef CHROME_BROWSER_INSTALL_VERIFICATION_WIN_LOADED_MODULES_SNAPSHOT_H_ 6#define CHROME_BROWSER_INSTALL_VERIFICATION_WIN_LOADED_MODULES_SNAPSHOT_H_ 7 8#include <Windows.h> 9 10#include <vector> 11 12// Takes a snapshot of the modules loaded in the current process. The returned 13// HMODULEs are not add-ref'd, so they should not be closed and may be 14// invalidated at any time (should a module be unloaded). 15bool GetLoadedModulesSnapshot(std::vector<HMODULE>* snapshot); 16 17#endif // CHROME_BROWSER_INSTALL_VERIFICATION_WIN_LOADED_MODULES_SNAPSHOT_H_ 18