blob: 22dbf9b18ce21a825607d4118d94c1e28d9fe3fd [file] [log] [blame]
// Copyright 2015 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 CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_
#define CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_
#include <Windows.h>
#include "base/files/file_path.h"
#include "base/strings/string16.h"
// The name of the watcher DLL.
extern const base::FilePath::CharType kChromeWatcherDll[];
// The name of the watcher DLLs entrypoint function.
extern const char kChromeWatcherDLLEntrypoint[];
// The type of the watcher DLL's main entry point.
// Watches |parent_process| and records its exit code under |registry_path| in
// HKCU. |on_initialized_event| will be signaled once the process is fully
// initialized. Takes ownership of |parent_process| and |on_initialized_event|.
typedef int (*ChromeWatcherMainFunction)(
const base::char16* registry_path,
HANDLE parent_process,
HANDLE on_initialized_event);
#endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_