#ifndef GLOBALS_HPP #define GLOBALS_HPP #include #include #include #include #include "interception.h" #include "device.hpp" #include "deviceConfig.hpp" #include "api.hpp" #include "utils.hpp" #include "debug.hpp" // --------------------------------------------------------------------- typedef std::vector CharVector ; typedef std::vector WideCharVector ; typedef std::set IntSet ; typedef std::set StringSet ; // --------------------------------------------------------------------- extern HMODULE ghInterceptionDll ; // handle to interception.dll typedef IntPtrMap DeviceTable ; extern DeviceTable gDeviceTable ; // configured devices typedef IntPtrMap DeviceConfigTable ; extern DeviceConfigTable gDeviceConfigTable ; // device configuration typedef std::set 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