Generate mouse/keyboard events from your mouse.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
interception/MouseDll/globals.hpp

46 lines
1.4 KiB

#ifndef GLOBALS_HPP
#define GLOBALS_HPP
#include <windows.h>
#include <iosfwd>
#include <vector>
#include <set>
#include "interception.h"
#include "device.hpp"
#include "deviceConfig.hpp"
#include "api.hpp"
#include "utils.hpp"
#include "debug.hpp"
// ---------------------------------------------------------------------
typedef std::vector<char> CharVector ;
typedef std::vector<wchar_t> WideCharVector ;
typedef std::set<int> IntSet ;
typedef std::set<std::string> StringSet ;
// ---------------------------------------------------------------------
extern HMODULE ghInterceptionDll ; // handle to interception.dll
typedef IntPtrMap<Device> DeviceTable ;
extern DeviceTable gDeviceTable ; // configured devices
typedef IntPtrMap<DeviceConfig> DeviceConfigTable ;
extern DeviceConfigTable gDeviceConfigTable ; // device configuration
typedef std::set<InterceptionDevice> InterceptionDeviceSet ;
extern InterceptionDeviceSet gUnknownDevices ; // devices we've received events for, but have no configuration for
extern PCALLBACKFN gpCallbackFn ; // for calling back into the main C# app
// ---------------------------------------------------------------------
#define isSlash( ch ) ( (ch) == '/' || (ch) == '\\' )
extern std::ostream& operator<<( std::ostream& os , const std::exception& xcptn ) ;
// ---------------------------------------------------------------------
#endif // GLOBALS_HPP