blob: b0a829f6918ea9d932ac18ef0fd31d53feed9556 [file] [log] [blame]
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_BROWSER_WATCHER_WATCHER_MAIN_API_WIN_H_
#define COMPONENTS_BROWSER_WATCHER_WATCHER_MAIN_API_WIN_H_
#include <Windows.h>
#include "base/files/file_path.h"
#include "base/strings/string16.h"
namespace browser_watcher {
// The name of the watcher DLL.
extern const base::FilePath::CharType kWatcherDll[];
// The name of the watcher DLLs entrypoint function.
extern const char kWatcherDLLEntrypoint[];
// The type of the watcher DLL's main entry point.
// Watches |parent_process| and records its exit code under |registry_path| in
// HKCU. Takes ownership of |parent_process|.
typedef int (*WatcherMainFunction)(const base::char16* registry_path,
HANDLE parent_process);
} // namespace browser_watcher
#endif // COMPONENTS_BROWSER_WATCHER_WATCHER_MAIN_API_WIN_H_