host.h
来自「Windows 图形编程 书籍」· C头文件 代码 · 共 66 行
H
66 行
#pragma once
//-----------------------------------------------------------------------------------//
// Windows Graphics Programming: Win32 GDI and DirectDraw //
// ISBN 0-13-086985-6 //
// //
// Written by Yuan, Feng www.fengyuan.com //
// Copyright (c) 2000 by Hewlett-Packard Company www.hp.com //
// Published by Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com //
// //
// FileName : host.h //
// Description: KHost class //
// Version : 1.00.000, May 31, 2000 //
//-----------------------------------------------------------------------------------//
#include "device.h"
#include "..\Periscope\\Periscope.h"
class KPeriscopeClient : public KDevice
{
public:
KPeriscopeClient(const TCHAR * DeviceName) : KDevice(DeviceName)
{
}
ULONG Read(void * dst, const void * src, unsigned len);
};
class KImageModule;
class KHost
{
public:
KImageModule * pWin32k;
KPeriscopeClient * pScope;
HWND hwndOutput;
HWND hwndLog;
HANDLE hProcess;
KHost()
{
pWin32k = NULL;
pScope = NULL;
hwndOutput = NULL;
hwndLog = NULL;
hProcess = NULL;
}
void WndOutput(HWND hWnd, const char * format, va_list argptr);
void Log(const char * format, ...);
void ExtOutput(const char * format, ...);
unsigned ExtGetExpression(const char * expr);
bool ExtReadProcessMemory(const void * address,
unsigned * buffer, unsigned count,
unsigned long * bytesread);
};
extern KHost theHost;
extern WINDBG_EXTENSION_APIS ExtensionAPI;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?