summaryrefslogtreecommitdiffhomepage
path: root/freetrackclient
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 18:43:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 18:43:05 +0200
commit9a7a41c2c81cc14fd984f43cd04e1b2d5592aa58 (patch)
treebd2789c40296f00d0b463081f34ddfe683a2b6e1 /freetrackclient
parent8303597a865400a363ae574ccde819302495f498 (diff)
Remove old files
Diffstat (limited to 'freetrackclient')
-rw-r--r--freetrackclient/FreeTrackClient/resource.h15
-rw-r--r--freetrackclient/freetrackclient.cpp (renamed from freetrackclient/freetrackclient/freetrackclient.cpp)0
-rw-r--r--freetrackclient/freetrackclient.rc (renamed from freetrackclient/freetrackclient/freetrackclient.rc)0
-rw-r--r--freetrackclient/ftclient.cpp119
-rw-r--r--freetrackclient/resource.h (renamed from freetrackclient/freetrackclient/resource.h)0
5 files changed, 0 insertions, 134 deletions
diff --git a/freetrackclient/FreeTrackClient/resource.h b/freetrackclient/FreeTrackClient/resource.h
deleted file mode 100644
index e517577e..00000000
--- a/freetrackclient/FreeTrackClient/resource.h
+++ /dev/null
@@ -1,15 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by FreeTrackClient.rc
-//
-
-// Next default values for new objects
-//
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 101
-#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1001
-#define _APS_NEXT_SYMED_VALUE 101
-#endif
-#endif
diff --git a/freetrackclient/freetrackclient/freetrackclient.cpp b/freetrackclient/freetrackclient.cpp
index ac6148e8..ac6148e8 100644
--- a/freetrackclient/freetrackclient/freetrackclient.cpp
+++ b/freetrackclient/freetrackclient.cpp
diff --git a/freetrackclient/freetrackclient/freetrackclient.rc b/freetrackclient/freetrackclient.rc
index 046eef1b..046eef1b 100644
--- a/freetrackclient/freetrackclient/freetrackclient.rc
+++ b/freetrackclient/freetrackclient.rc
diff --git a/freetrackclient/ftclient.cpp b/freetrackclient/ftclient.cpp
deleted file mode 100644
index d48a2c28..00000000
--- a/freetrackclient/ftclient.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-/** @file
- @brief
-*/
-#include "FTClient.h"
-
-
-
-
- static double/*?*/ const FT_PROGRAMID = "FT_ProgramID";
-
-
- HANDLE hFTMemMap;
- PFreetrackData FTData;
- unsigned long lastDataID;
- PHandle FTHandle;
- PAnsiChar FTProgramName;
- HANDLE FTMutex;
-
-
-bool FTGetData(PFreetrackData data)
-{ bool result;
- result = false;
- if( !! FTData ) {
- if( FTData->DataID != lastDataID ) {
- Move( FTData/*?*/^ , data/*?*/^ , SizeOf( TFreetrackData ) );
- lastDataID = FTData->DataID;
- result = true;
- }
- } else
- OpenMapping;
-return result;
-}
-
-
-void FTReportName(PAnsiChar name)
-{
- unsigned long MsgResult;
-
- if( OpenMapping && ( WaitForSingleObject( FTMutex , 100 ) == WAIT_OBJECT_0 ) ) {
- Move( name/*?*/^ , FTProgramName/*?*/^ , 100 );
- SendMessageTimeout( FTHandle/*?*/^ , RegisterWindowMessage( FT_PROGRAMID ) , 0 , 0 , 0 , 2000 , MsgResult );
- ReleaseMutex( FTMutex );
- }
-}
-
-
-char* FTGetDllVersion()
-{ char* result;
- unsigned long VerInfoSize;
- Pointer VerInfo;
- unsigned long VerValueSize;
- PVSFixedFileInfo VerValue;
- unsigned long Dummy;
- std::string verString;
- char* dllName[100];
-
- result = "";
- GetModuleFilename( HInstance , &dllName , 100 );
- VerInfoSize = GetFileVersionInfoSize( &dllName , Dummy );
- if( !( VerInfoSize == 0 ) ) {
- GetMem( VerInfo , VerInfoSize );
- GetFileVersionInfo( &dllName , 0 , VerInfoSize , VerInfo );
- VerQueryValue( VerInfo , "\\" , Pointer( VerValue ) , VerValueSize );
- /*?*//* WITH VerValue/*?*/^ */
- {
- verString = IntToStr( dwFileVersionMS >> 16 );
- verString = verString + "." + IntToStr( dwFileVersionMS && 0xFFFF );
- verString = verString + "." + IntToStr( dwFileVersionLS >> 16 );
- verString = verString + "." + IntToStr( dwFileVersionLS && 0xFFFF );
- result = char*( verString );
- }
- FreeMem( VerInfo , VerInfoSize );
- }
-return result;
-}
-
-
-char* FTProvider()
-{ char* result;
- result = FREETRACK;return result;
-}
-
-
-
-
-
-bool OpenMapping()
-{ bool result;
- if( hFTMemMap != 0 )
- result = true;else {
- hFTMemMap = OpenFileMapping( FILE_MAP_ALL_ACCESS , false , FT_MM_DATA );
- if( ( hFTMemMap != 0 ) ) {
- FTData = MapViewOfFile( hFTMemMap , FILE_MAP_ALL_ACCESS , 0 , 0 , SizeOf( TFreetrackData ) + SizeOf( HANDLE ) + 100 );
- FTHandle = Pointer( unsigned long( FTData ) + SizeOf( TFreetrackData ) );
- FTProgramName = Pointer( unsigned long( FTHandle ) + SizeOf( HANDLE ) );
- FTMutex = OpenMutex( MUTEX_ALL_ACCESS , false , FREETRACK_MUTEX );
- }
- result = !! FTData;
- }
-return result;
-}
-
-
-void DestroyMapping()
-{
- if( FTData != 00 ) {
- UnMapViewofFile( FTData );
- FTData = 00;
- }
-
- CloseHandle( FTMutex );
- CloseHandle( hFTMemMap );
- hFTMemMap = 0;
-}
-
-
-
-
-//END
diff --git a/freetrackclient/freetrackclient/resource.h b/freetrackclient/resource.h
index 3a7fab32..3a7fab32 100644
--- a/freetrackclient/freetrackclient/resource.h
+++ b/freetrackclient/resource.h