blob: 2b050d9816066d707a7d2c8c0aec2f9a375f1008 [file] [log] [blame]
// Copyright 2017 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.
#include <dbgeng.h>
#include <wrl/client.h>
#include "tools/win/chromeexts/chrome_exts_command.h"
#include "tools/win/chromeexts/commands/hwnd_command.h"
namespace {
using Microsoft::WRL::ComPtr;
} // namespace
HRESULT CALLBACK DebugExtensionInitialize(ULONG* version, ULONG* flags) {
*flags = 0;
return S_OK;
void CALLBACK DebugExtensionUninitialize() {}
HRESULT CALLBACK help(IDebugClient* client, PCSTR args) {
ComPtr<IDebugControl> debug_control;
HRESULT hr = client->QueryInterface(IID_PPV_ARGS(&debug_control));
if (FAILED(hr)) {
return hr;
"Chrome Windows Debugger Extension\n");
"hwnd - Displays basic hwnd info.\n");
return S_OK;
HRESULT CALLBACK RunHwndCommand(IDebugClient* client, PCSTR args) {
return tools::win::chromeexts::ChromeExtsCommand::Run<
tools::win::chromeexts::HwndCommand>(client, args);