Renamed some files, added some comments.

master
Pacman Ghost 8 years ago
parent 7d114e9f33
commit b2c000c476
  1. 2
      MainApp/AppConfig.cs
  2. 2
      MainApp/DebugConfig.cs
  3. 2
      MainApp/MouseDll.cs
  4. 2
      MouseDll/api.cpp
  5. 10
      MouseDll/api.hpp
  6. 2
      MouseDll/core.cpp
  7. 6
      MouseDll/mouse.vcproj

@ -7,6 +7,8 @@ namespace MouseInterception
class AppConfig
{
// IMPORTANT! The definitions here must be kept in sync with their C equivalents in api.hpp
[StructLayout( LayoutKind.Sequential , CharSet=CharSet.Unicode , Pack=1 )]
public struct Settings
{

@ -7,6 +7,8 @@ namespace MouseInterception
class DebugConfig
{
// IMPORTANT! The definitions here must be kept in sync with their C equivalents in api.hpp
[StructLayout( LayoutKind.Sequential , CharSet=CharSet.Unicode , Pack=1 )]
public struct Settings
{

@ -5,6 +5,8 @@ namespace MouseInterception
{
class MouseDll
{
// IMPORTANT! The definitions here must be kept in sync with their C equivalents in api.hpp
// NOTE: The first place DLL's are loaded from are the application directory.
private const string DLL_NAME = "mouse.dll" ;

@ -1,6 +1,6 @@
#include <stdexcept>
#include <windows.h>
#include "main.hpp"
#include "api.hpp"
#include "utils.hpp"
using namespace std ;

@ -1,8 +1,10 @@
#ifndef MAIN_HPP
#define MAIN_HPP
#ifndef API_HPP
#define API_HPP
// ---------------------------------------------------------------------
// IMPORTANT! The definitions here must be kept in sync with their C# equivalents in App/DebugConfig.cs.
struct AppConfig
{
} ;
@ -16,6 +18,8 @@ struct DebugConfig
// ---------------------------------------------------------------------
// IMPORTANT! The definitions here must be kept in sync with their C# equivalents in MouseDll.cs.
extern void openApi( const AppConfig* pAppConfig , const DebugConfig* pDebugConfig , bool initConsole ) ;
extern void closeApi() ;
@ -23,4 +27,4 @@ extern void reloadConfig( const AppConfig* pAppConfig , const DebugConfig* pDebu
// ---------------------------------------------------------------------
#endif // MAIN_HPP
#endif // API_HPP

@ -3,7 +3,7 @@
#include <fstream>
#include <stdexcept>
#include <cassert>
#include "main.hpp"
#include "api.hpp"
#include "utils.hpp"
using namespace std ;

@ -181,11 +181,11 @@
>
</File>
<File
RelativePath=".\dllMain.cpp"
RelativePath=".\core.cpp"
>
</File>
<File
RelativePath=".\main.cpp"
RelativePath=".\dllMain.cpp"
>
</File>
<File
@ -199,7 +199,7 @@
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\main.hpp"
RelativePath=".\api.hpp"
>
</File>
<File

Loading…
Cancel
Save