Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

Keyboard Hooking In Kernel

, 11 May 2011
A post of how to do keyboard hooking in kernel
demo.zip
Application.exe
HK_KBD.sys
source.zip
Application
Application.dsp
Application.dsw
Application.plg
HK_KBD.sys
Debug
Application.exe
HK_KBD.sys
Application.opt
Driver
MAKEFILE
Sources
Sources.bak
objchk_wxp_x86
i386
HK_KBD.sys
Drv
Drv.vcproj.CAPTAIN_HOOK.Administrator.user
//********************************************************* 
// DevGuru 
// Copyright(C) DevGuru corporation, 2000 - 2002. 
//  
// File: SysThredIoCtl.h 
// Contents:  
//********************************************************* 
#ifndef _PORTACSIOCTL_ 
#define _PORTACSIOCTL_ 
 
// Define the various device type values.  Note that values used by Microsoft 
// Corporation are in the range 0-32767, and 32768-65535 are reserved for use 
// by customers. 
// 
// FILE_DEVICE_UNKNOWN   
 
// Macro definition for defining IOCTL and FSCTL function control codes.  Note 
// that function codes 0-2047 are reserved for Microsoft Corporation, and 
// 2048-4095 are reserved for customers. 
// 
#define PORTACS_IOCTL_INDEX  0x800 // for memory 
 
// Define our own private IOCTL 
 
#define IOCTL_SPECKER_ON  CTL_CODE(  FILE_DEVICE_UNKNOWN, PORTACS_IOCTL_INDEX, METHOD_BUFFERED, FILE_ANY_ACCESS) 
#define IOCTL_SPECKER_OFF  CTL_CODE(FILE_DEVICE_UNKNOWN, PORTACS_IOCTL_INDEX+1, METHOD_BUFFERED, FILE_ANY_ACCESS) 
#define IOCTL_GET_CMOSTIME  CTL_CODE(FILE_DEVICE_UNKNOWN, PORTACS_IOCTL_INDEX+2, METHOD_BUFFERED, FILE_ANY_ACCESS) 
#endif 
  

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 11 May 2011
Article Copyright 2011 by Günter Bergmann
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid