⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.h

📁 com写的网络ip地址挂起的程序
💻 H
字号:
///////////////////////////////////////////////////
//
//  common.h - Copyright 1997, Don Box
//  
//  Common call/thread context structures used by hook
//
//

#ifndef _COMMON_H
#define _COMMON_H

#include <windows.h>

// information about a particular call site
struct NODE_INFO
{
    DWORD pid;
    DWORD tid;
    DWORD ip;
};

// wire represenation of ORPCTHIS extention
struct HOOK_THIS
{
    GUID  cid;              // fake causality ID
    NODE_INFO niDirect;     // node of immediate caller
    NODE_INFO niIndirect;   // node of original caller
};

// wire represenation of ORPCTHIS extention
struct HOOK_THAT
{
    NODE_INFO niTarget;     // node where call executed
};

// call contexts are a linked list of ORPCTHIS structs
struct CALL_CONTEXT : public HOOK_THIS
{
    CALL_CONTEXT *pNext;
};

// thread context is a linked list of calls + an ORPCTHAT
struct THREAD_CONTEXT : public HOOK_THAT
{
    NODE_INFO niThis;
    CALL_CONTEXT *pCurrentCall;
};


// EXTENTID_HostHook is the ORPCTHIS/THAT extension ID
// {F23ADD53-4992-11d1-991C-006097585A3C}
DEFINE_GUID(EXTENTID_HostHook, 
0xf23add53, 0x4992, 0x11d1, 0x99, 0x1c, 0x0, 0x60, 0x97, 0x58, 0x5a, 0x3c);

extern HINSTANCE g_hInstance;

// helper function to grab thread context from TLS
THREAD_CONTEXT *GetCurrentThreadContext(void);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -