toolkit/crashreporter/InjectCrashReporter.h
author Benjamin Smedberg <benjamin@smedbergs.us>
Mon, 02 Jul 2012 14:55:23 -0400
changeset 98136 52b93da290236f84bf62bac550eb07a4e359be01
child 164682 94c2cc05679453898d8104e9052dd3b83e050875
permissions -rw-r--r--
Bug 769048 part E - Core crashreporter support for injecting a crashreporter DLL into an arbitrary process and callbacks for notifications when that process has crashed, r=ehsan

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsThreadUtils.h"
#include <windows.h>

namespace mozilla {

class InjectCrashRunnable : public nsRunnable
{
public:
  InjectCrashRunnable(DWORD pid);

  NS_IMETHOD Run();

private:
  DWORD mPID;
  nsString mInjectorPath;
};
  
} // Namespace mozilla