testdll.h

来自「一个可以拦截DeviceIoControl的程序」· C头文件 代码 · 共 23 行

H
23
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?