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

📄 testdll.h

📁 一个可以拦截DeviceIoControl的程序
💻 H
字号:
// TestDLL header file.
#ifdef TESTDLL_EXPORTS
#define TESTDLL_API __declspec(dllexport)
#else
#define TESTDLL_API __declspec(dllimport)
#endif

TESTDLL_API LRESULT CALLBACK HookProc(int nCode, WPARAM wParam, LPARAM lParam);

TESTDLL_API void InstallHook(LPCTSTR lpszFile);
TESTDLL_API void RemoveHook();

// Function prototypes.
TESTDLL_API BOOL WINAPI MyDeviceIoControl(
							  HANDLE hDevice,	// handle to device of interest
							  DWORD dwIoControlCode,	// control code of operation to perform
							  LPVOID lpInBuffer,	// pointer to buffer to supply input data
							  DWORD nInBufferSize,	// size of input buffer
							  LPVOID lpOutBuffer,	// pointer to buffer to receive output data
							  DWORD nOutBufferSize,	// size of output buffer
							  LPDWORD lpBytesReturned,	// pointer to variable to receive output byte count
							  LPOVERLAPPED lpOverlapped 	// pointer to overlapped structure for asynchronous operation
							  );

⌨️ 快捷键说明

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