├── PT3Ctrl ├── inc │ ├── EX_Buffer.cpp │ ├── OS_Memory.cpp │ ├── EX_Utility.cpp │ ├── OS_Library.cpp │ ├── Prefix.h │ ├── EARTH_PT3.h │ ├── EX_Buffer.h │ ├── EX_Utility.h │ ├── Prefix_Integer.h │ ├── OS_Memory.h │ └── OS_Library.h ├── stdafx.h ├── DataIO.cpp ├── PT3Ctrl.rc ├── resource.h ├── small.ico ├── stdafx.cpp ├── PT3Ctrl.cpp ├── PT3Ctrl.ico ├── PT3CtrlMain.h ├── PT3CtrlMain.cpp ├── PT3Manager.cpp ├── PT3Ctrl.h ├── PT3Manager.h ├── DataIO.h ├── PT3Ctrl.vcxproj.filters └── PT3Ctrl.vcxproj ├── BonDriver_PT3 ├── inc │ ├── OS_Library.cpp │ ├── EARTH_PT3.h │ ├── Prefix_Integer.h │ ├── Prefix.h │ └── OS_Library.h ├── stdafx.h ├── BonTuner.cpp ├── BonTuner.h ├── IBonDriver.h ├── ParseChSet.h ├── dllmain.cpp ├── resource.h ├── stdafx.cpp ├── IBonDriver2.h ├── ParseChSet.cpp ├── BonDriver_PT3.cpp ├── BonDriver_PT3.rc ├── BonDriver_PT3.vcxproj.filters └── BonDriver_PT3.vcxproj ├── Readme.txt ├── Common ├── Util.h ├── PipeServer.cpp ├── StringUtil.cpp ├── PT1OutsideCtrlCmdDef.h ├── PT1SendCtrlCmdUtil.cpp ├── ServiceUtil.h ├── PT1CreateCtrlCmdUtil.h ├── compatibility.manifest ├── PT1SendCtrlCmdUtil.h ├── PipeServer.h ├── StringUtil.h ├── PT1CreateCtrlCmdUtil.cpp ├── Util.cpp └── ServiceUtil.cpp ├── BonDriver_PT3-ST.ini ├── BonDriver_PT3-S.ChSet.txt ├── BonDriver_PT3-T.ChSet.txt ├── BonDriver_PT3.sln └── .gitignore /PT3Ctrl/inc/EX_Buffer.cpp: -------------------------------------------------------------------------------- 1 | #include "EX_Buffer.h" 2 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/OS_Memory.cpp: -------------------------------------------------------------------------------- 1 | #include "OS_Memory.h" 2 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/EX_Utility.cpp: -------------------------------------------------------------------------------- 1 | #include "EX_Utility.h" 2 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/OS_Library.cpp: -------------------------------------------------------------------------------- 1 | #include "OS_Library.h" 2 | -------------------------------------------------------------------------------- /BonDriver_PT3/inc/OS_Library.cpp: -------------------------------------------------------------------------------- 1 | #include "OS_Library.h" 2 | -------------------------------------------------------------------------------- /Readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Readme.txt -------------------------------------------------------------------------------- /Common/Util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Common/Util.h -------------------------------------------------------------------------------- /PT3Ctrl/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/stdafx.h -------------------------------------------------------------------------------- /PT3Ctrl/DataIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/DataIO.cpp -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3Ctrl.rc -------------------------------------------------------------------------------- /PT3Ctrl/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/resource.h -------------------------------------------------------------------------------- /PT3Ctrl/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/small.ico -------------------------------------------------------------------------------- /PT3Ctrl/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/stdafx.cpp -------------------------------------------------------------------------------- /BonDriver_PT3-ST.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3-ST.ini -------------------------------------------------------------------------------- /Common/PipeServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Common/PipeServer.cpp -------------------------------------------------------------------------------- /Common/StringUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Common/StringUtil.cpp -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3Ctrl.cpp -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3Ctrl.ico -------------------------------------------------------------------------------- /PT3Ctrl/PT3CtrlMain.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3CtrlMain.h -------------------------------------------------------------------------------- /PT3Ctrl/inc/Prefix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/inc/Prefix.h -------------------------------------------------------------------------------- /BonDriver_PT3/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/stdafx.h -------------------------------------------------------------------------------- /PT3Ctrl/PT3CtrlMain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3CtrlMain.cpp -------------------------------------------------------------------------------- /PT3Ctrl/PT3Manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/PT3Manager.cpp -------------------------------------------------------------------------------- /PT3Ctrl/inc/EARTH_PT3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/inc/EARTH_PT3.h -------------------------------------------------------------------------------- /PT3Ctrl/inc/EX_Buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/inc/EX_Buffer.h -------------------------------------------------------------------------------- /BonDriver_PT3-S.ChSet.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3-S.ChSet.txt -------------------------------------------------------------------------------- /BonDriver_PT3-T.ChSet.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3-T.ChSet.txt -------------------------------------------------------------------------------- /BonDriver_PT3/BonTuner.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/BonTuner.cpp -------------------------------------------------------------------------------- /BonDriver_PT3/BonTuner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/BonTuner.h -------------------------------------------------------------------------------- /BonDriver_PT3/IBonDriver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/IBonDriver.h -------------------------------------------------------------------------------- /BonDriver_PT3/ParseChSet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/ParseChSet.h -------------------------------------------------------------------------------- /BonDriver_PT3/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/dllmain.cpp -------------------------------------------------------------------------------- /BonDriver_PT3/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/resource.h -------------------------------------------------------------------------------- /BonDriver_PT3/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/stdafx.cpp -------------------------------------------------------------------------------- /PT3Ctrl/inc/EX_Utility.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/PT3Ctrl/inc/EX_Utility.h -------------------------------------------------------------------------------- /BonDriver_PT3/IBonDriver2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/IBonDriver2.h -------------------------------------------------------------------------------- /BonDriver_PT3/ParseChSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/ParseChSet.cpp -------------------------------------------------------------------------------- /BonDriver_PT3/BonDriver_PT3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/BonDriver_PT3.cpp -------------------------------------------------------------------------------- /BonDriver_PT3/BonDriver_PT3.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/BonDriver_PT3.rc -------------------------------------------------------------------------------- /BonDriver_PT3/inc/EARTH_PT3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/BonDriver_PT3/inc/EARTH_PT3.h -------------------------------------------------------------------------------- /Common/PT1OutsideCtrlCmdDef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Common/PT1OutsideCtrlCmdDef.h -------------------------------------------------------------------------------- /Common/PT1SendCtrlCmdUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsukumijima/BonDriver_PT3-ST/master/Common/PT1SendCtrlCmdUtil.cpp -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | 5 | 6 | void WINAPI service_main(DWORD dwArgc, LPTSTR *lpszArgv); 7 | DWORD WINAPI service_ctrl(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext); 8 | BOOL SendStatusScm(int iState, int iExitcode, int iProgress); 9 | 10 | void StartMain(BOOL bService); 11 | void StopMain(); 12 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/Prefix_Integer.h: -------------------------------------------------------------------------------- 1 | #ifndef _Prefix_Integer_H 2 | #define _Prefix_Integer_H 3 | 4 | namespace EARTH { 5 | typedef signed char sint8; 6 | typedef unsigned char uint8; 7 | 8 | typedef signed short sint16; 9 | typedef unsigned short uint16; 10 | 11 | typedef signed long sint32; 12 | typedef unsigned long uint32; 13 | 14 | typedef signed long long sint64; 15 | typedef unsigned long long uint64; 16 | 17 | typedef signed long status; 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Common/ServiceUtil.h: -------------------------------------------------------------------------------- 1 | #ifndef __SERVICE_UTIL_H__ 2 | #define __SERVICE_UTIL_H__ 3 | 4 | #include 5 | #include 6 | 7 | void InstallService(LPCWSTR lpcwszFilePath, LPCWSTR lpcwszName, LPCWSTR lpcwszViewName); 8 | void RemoveService(LPCWSTR lpcwszName); 9 | BOOL IsInstallService(LPCWSTR lpcwszName); 10 | BOOL IsStopService(LPCWSTR lpcwszName); 11 | BOOL StartServiceCtrl(LPCWSTR lpcwszName); 12 | BOOL StopServiceCtrl(LPCWSTR lpcwszName); 13 | DWORD GetServiceStatus(LPCWSTR lpcwszName); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /Common/PT1CreateCtrlCmdUtil.h: -------------------------------------------------------------------------------- 1 | #ifndef __PT1_CREATE_CTRL_CMD_UTIL_H__ 2 | #define __PT1_CREATE_CTRL_CMD_UTIL_H__ 3 | 4 | #include "PT1OutsideCtrlCmdDef.h" 5 | 6 | BOOL CreateDefStream(DWORD dwValue, CMD_STREAM* pCmd); 7 | BOOL CopyDefData(DWORD* pdwValue, BYTE* pBuff); 8 | 9 | BOOL CreateDefStream2(DWORD dwValue, DWORD dwValue2, CMD_STREAM* pCmd); 10 | BOOL CopyDefData2(DWORD* pdwValue, DWORD* pdwValue2, BYTE* pBuff); 11 | 12 | BOOL CreateDefStream3(DWORD dwValue, DWORD dwValue2, DWORD dwValue3, CMD_STREAM* pCmd); 13 | BOOL CopyDefData3(DWORD* pdwValue, DWORD* pdwValue2, DWORD* pdwValue3, BYTE* pBuff); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /BonDriver_PT3/inc/Prefix_Integer.h: -------------------------------------------------------------------------------- 1 | // ======================================================================================== 2 | // Prefix_Integer.h 3 | // ======================================================================================== 4 | 5 | #ifndef _Prefix_Integer_H 6 | #define _Prefix_Integer_H 7 | 8 | namespace EARTH { 9 | typedef signed char sint8; 10 | typedef unsigned char uint8; 11 | 12 | typedef signed short sint16; 13 | typedef unsigned short uint16; 14 | 15 | typedef signed long sint32; 16 | typedef unsigned long uint32; 17 | 18 | typedef signed long long sint64; 19 | typedef unsigned long long uint64; 20 | 21 | typedef signed long status; 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/OS_Memory.h: -------------------------------------------------------------------------------- 1 | #ifndef _OS_Memory_H 2 | #define _OS_Memory_H 3 | 4 | #include "Prefix.h" 5 | #include 6 | 7 | namespace EARTH { 8 | namespace OS { 9 | class Memory { 10 | public: 11 | enum { 12 | PAGE_SIZE = (4)*1024 13 | }; 14 | 15 | Memory(size_t size) 16 | { 17 | _ASSERT((size % PAGE_SIZE) == 0); 18 | mPtr = ::VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_READWRITE); 19 | } 20 | 21 | ~Memory() 22 | { 23 | if (mPtr) { 24 | BOOL b = ::VirtualFree(mPtr, 0, MEM_RELEASE); 25 | if (b) { 26 | mPtr = NULL; 27 | } 28 | _ASSERT(b); 29 | } 30 | } 31 | 32 | void *Ptr() const 33 | { 34 | return mPtr; 35 | } 36 | 37 | protected: 38 | void *mPtr; 39 | }; 40 | } 41 | } 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /BonDriver_PT3/inc/Prefix.h: -------------------------------------------------------------------------------- 1 | // ======================================================================================== 2 | // Prefix.h 3 | // ======================================================================================== 4 | 5 | #ifndef _Prefix_H 6 | #define _Prefix_H 7 | 8 | #pragma warning(disable : 4127) 9 | #pragma warning(disable : 4512) 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | #include "Prefix_Integer.h" 19 | 20 | #define delete_(p) { delete p; p = NULL; } 21 | 22 | #define BIT_SHIFT_MASK(value, shift, mask) (((value) >> (shift)) & ((1<<(mask))-1)) 23 | 24 | //#define ENV_FACTORY 25 | //#define PRIVATE_DLL_PATH 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /Common/compatibility.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Common/PT1SendCtrlCmdUtil.h: -------------------------------------------------------------------------------- 1 | #ifndef __PT1_SEND_CTRL_CMD_UTIL_H__ 2 | #define __PT1_SEND_CTRL_CMD_UTIL_H__ 3 | 4 | #include "PT1OutsideCtrlCmdDef.h" 5 | #include "PT1CreateCtrlCmdUtil.h" 6 | #include "StringUtil.h" 7 | 8 | #define CONNECT_TIMEOUT 30*1000 9 | 10 | DWORD SendCloseExe(DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 11 | DWORD SendOpenTuner(BOOL bSate, int* piID, DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 12 | DWORD SendOpenTuner2(BOOL bSate, int iTunerID, int* piID, DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 13 | DWORD SendCloseTuner(int iID, DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 14 | DWORD SendSetCh(int iID, DWORD dwCh, DWORD dwTSID, DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 15 | DWORD SendGetSignal(int iID, DWORD* pdwCn100, DWORD dwConnectTimeOut = CONNECT_TIMEOUT); 16 | DWORD SendSendData(int iID, BYTE** pbData, DWORD* pdwSize, wstring strEvent, wstring strPipe, DWORD dwConnectTimeOut = CONNECT_TIMEOUT ); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Common/PipeServer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "StringUtil.h" 4 | #include "PT1OutsideCtrlCmdDef.h" 5 | 6 | typedef int (CALLBACK *CMD_CALLBACK_PROC)(void* pParam, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 7 | 8 | class CPipeServer 9 | { 10 | public: 11 | CPipeServer(void); 12 | ~CPipeServer(void); 13 | 14 | BOOL StartServer(LPCWSTR lpwszEventName, LPCWSTR lpwszPipeName, CMD_CALLBACK_PROC pfnCmdProc, void* pParam, int iThreadPriority = THREAD_PRIORITY_NORMAL); 15 | void StopServer(); 16 | 17 | protected: 18 | CMD_CALLBACK_PROC m_pCmdProc; 19 | void* m_pParam; 20 | wstring m_strEventName; 21 | wstring m_strPipeName; 22 | 23 | int m_iThreadPriority; 24 | 25 | HANDLE m_hThread; 26 | HANDLE m_hPipe; 27 | HANDLE m_hEventConnect; 28 | OVERLAPPED m_stOver; 29 | HANDLE m_hEventArray[2]; 30 | #define m_hStopEvent_PS m_hEventArray[0] 31 | #define m_hCmdRcvEvent_PS m_hEventArray[1] 32 | 33 | protected: 34 | static UINT WINAPI ServerThread(LPVOID pParam); 35 | 36 | }; 37 | -------------------------------------------------------------------------------- /Common/StringUtil.h: -------------------------------------------------------------------------------- 1 | #ifndef __STRING_UTIL_H__ 2 | #define __STRING_UTIL_H__ 3 | 4 | #include "Util.h" 5 | 6 | void Format(string& strBuff, const char *format, ...); 7 | 8 | void Format(wstring& strBuff, const WCHAR *format, ...); 9 | 10 | void Replace(string& strBuff, const string strOld, const string strNew); 11 | 12 | void Replace(wstring& strBuff, const wstring strOld, const wstring strNew); 13 | 14 | void WtoA(wstring strIn, string& strOut); 15 | 16 | void WtoUTF8(wstring strIn, string& strOut); 17 | 18 | void AtoW(string strIn, wstring& strOut); 19 | 20 | void UTF8toW(string strIn, wstring& strOut); 21 | 22 | BOOL Separate(string strIn, string strSep, string& strLeft, string& strRight); 23 | 24 | BOOL Separate(wstring strIn, wstring strSep, wstring& strLeft, wstring& strRight); 25 | 26 | void ChkFolderPath(string& strPath); 27 | 28 | void ChkFolderPath(wstring& strPath); 29 | 30 | void ChkFileName(string& strPath); 31 | 32 | void ChkFileName(wstring& strPath); 33 | 34 | int CompareNoCase(string str1, string str2); 35 | 36 | int CompareNoCase(wstring str1, wstring str2); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /PT3Ctrl/PT3Manager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "inc/EARTH_PT3.h" 4 | #include "inc/OS_Library.h" 5 | #include "../Common/Util.h" 6 | #include "DataIO.h" 7 | 8 | using namespace EARTH; 9 | 10 | class CPT3Manager 11 | { 12 | public: 13 | CPT3Manager(void); 14 | ~CPT3Manager(void); 15 | 16 | BOOL LoadSDK(); 17 | BOOL Init(); 18 | void UnInit(); 19 | 20 | int OpenTuner(BOOL bSate); 21 | int OpenTuner2(BOOL bSate, int iTunerID); 22 | BOOL CloseTuner(int iID); 23 | 24 | BOOL SetCh(int iID, unsigned long ulCh, DWORD dwTSID); 25 | DWORD GetSignal(int iID); 26 | 27 | BOOL IsFindOpen(); 28 | 29 | BOOL CloseChk(); 30 | 31 | protected: 32 | OS::Library* m_cLibrary; 33 | PT::Bus* m_cBus; 34 | 35 | typedef struct _DEV_STATUS{ 36 | PT::Bus::DeviceInfo stDevInfo; 37 | PT::Device* pcDevice; 38 | BOOL bOpen; 39 | BOOL bUseT0; 40 | BOOL bUseT1; 41 | BOOL bUseS0; 42 | BOOL bUseS1; 43 | CDataIO cDataIO; 44 | _DEV_STATUS(void){ 45 | bOpen = FALSE; 46 | pcDevice = NULL; 47 | bUseT0 = FALSE; 48 | bUseT1 = FALSE; 49 | bUseS0 = FALSE; 50 | bUseS1 = FALSE; 51 | } 52 | }DEV_STATUS; 53 | vector m_EnumDev; 54 | 55 | BOOL m_bUseLNB; 56 | UINT m_uiVirtualCount; 57 | 58 | protected: 59 | void FreeSDK(); 60 | }; 61 | -------------------------------------------------------------------------------- /BonDriver_PT3/inc/OS_Library.h: -------------------------------------------------------------------------------- 1 | #ifndef _OS_Library_H 2 | #define _OS_Library_H 3 | 4 | #include "Prefix.h" 5 | #include "EARTH_PT3.h" 6 | #include 7 | 8 | namespace EARTH { 9 | namespace OS { 10 | class Library { 11 | public: 12 | Library() 13 | { 14 | mModule = NULL; 15 | mFunction = NULL; 16 | 17 | wchar_t path[MAX_PATH]; 18 | 19 | #if defined(ENV_FACTORY) 20 | ::wsprintf(path, L"SDK\\SDK.dll"); 21 | #elif defined(ENABLE_PRIVATE) || defined(PRIVATE_DLL_PATH) 22 | const wchar_t *configuration; 23 | #if defined(_DEBUG) 24 | configuration = L"Debug"; 25 | #else 26 | configuration = L"Release"; 27 | #endif 28 | 29 | const wchar_t *bit; 30 | #if !defined(_WIN64) 31 | bit = L"32bit"; 32 | #else 33 | bit = L"64bit"; 34 | #endif 35 | 36 | ::wsprintf(path, L"D:\\Software\\PT\\Package\\%s\\%s\\SDK\\SDK.dll", configuration, bit); 37 | #else 38 | ::wsprintf(path, L"SDK_EARTHSOFT_PT3.dll"); 39 | #endif 40 | 41 | _ASSERT(mModule == NULL); 42 | mModule = ::LoadLibrary(path); 43 | if (mModule == NULL) { _ASSERT(false); return; } 44 | 45 | mFunction = reinterpret_cast(::GetProcAddress(mModule, "_")); 46 | if (mFunction == NULL) { _ASSERT(false); return; } 47 | } 48 | 49 | ~Library() 50 | { 51 | if (mModule) { 52 | BOOL b = ::FreeLibrary(mModule); 53 | if (b) { 54 | mModule = NULL; 55 | } 56 | } 57 | 58 | mFunction = NULL; 59 | } 60 | 61 | PT::Bus::NewBusFunction Function() const 62 | { 63 | return mFunction; 64 | } 65 | 66 | protected: 67 | HMODULE mModule; 68 | PT::Bus::NewBusFunction mFunction; 69 | }; 70 | } 71 | } 72 | 73 | #endif 74 | -------------------------------------------------------------------------------- /PT3Ctrl/inc/OS_Library.h: -------------------------------------------------------------------------------- 1 | #ifndef _OS_Library_H 2 | #define _OS_Library_H 3 | 4 | #include "Prefix.h" 5 | #include "EARTH_PT3.h" 6 | #include 7 | 8 | namespace EARTH { 9 | namespace OS { 10 | class Library { 11 | public: 12 | Library() 13 | { 14 | ::wsprintf(mPath, L""); 15 | mModule = NULL; 16 | mFunction = NULL; 17 | 18 | #if PUBLIC_LEVEL <= 1 19 | ::wsprintf(mPath, L"SDK_EARTHSOFT_PT3.dll"); 20 | #elif PUBLIC_LEVEL == 2 && !defined(_DEBUG) 21 | ::wsprintf(mPath, L"Update_PT3_20120704.dll"); 22 | #else 23 | const wchar_t *bit; 24 | #if !defined(_WIN64) 25 | bit = L"Win32"; 26 | #else 27 | bit = L"x64"; 28 | #endif 29 | 30 | const wchar_t *configuration; 31 | #if defined(_DEBUG) 32 | configuration = L"Debug"; 33 | #else 34 | configuration = L"Release"; 35 | #endif 36 | 37 | ::wsprintf(mPath, L"..\\..\\..\\..\\SDK\\Output\\%s\\%s\\SDK.dll", bit, configuration); 38 | #endif 39 | 40 | _ASSERT(mModule == NULL); 41 | mModule = ::LoadLibrary(mPath); 42 | if (mModule == NULL) return; 43 | 44 | mFunction = reinterpret_cast(::GetProcAddress(mModule, "_")); 45 | if (mFunction == NULL) return; 46 | } 47 | 48 | ~Library() 49 | { 50 | if (mModule) { 51 | BOOL b = ::FreeLibrary(mModule); 52 | if (b) { 53 | mModule = NULL; 54 | } 55 | } 56 | 57 | mFunction = NULL; 58 | } 59 | 60 | const wchar_t *Path() const 61 | { 62 | return mPath; 63 | } 64 | 65 | PT::Bus::NewBusFunction Function() const 66 | { 67 | return mFunction; 68 | } 69 | 70 | protected: 71 | wchar_t mPath[MAX_PATH]; 72 | HMODULE mModule; 73 | PT::Bus::NewBusFunction mFunction; 74 | }; 75 | } 76 | } 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /BonDriver_PT3.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BonDriver_PT3", "BonDriver_PT3\BonDriver_PT3.vcxproj", "{BF775E2E-70BF-4DAA-ADB7-62D075369AC9}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PT3Ctrl", "PT3Ctrl\PT3Ctrl.vcxproj", "{DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Win32 = Debug|Win32 13 | Debug|x64 = Debug|x64 14 | Release|Win32 = Release|Win32 15 | Release|x64 = Release|x64 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Debug|Win32.ActiveCfg = Debug|Win32 19 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Debug|Win32.Build.0 = Debug|Win32 20 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Debug|x64.ActiveCfg = Debug|x64 21 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Debug|x64.Build.0 = Debug|x64 22 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Release|Win32.ActiveCfg = Release|Win32 23 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Release|Win32.Build.0 = Release|Win32 24 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Release|x64.ActiveCfg = Release|x64 25 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9}.Release|x64.Build.0 = Release|x64 26 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Debug|Win32.ActiveCfg = Debug|Win32 27 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Debug|Win32.Build.0 = Debug|Win32 28 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Debug|x64.ActiveCfg = Debug|x64 29 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Debug|x64.Build.0 = Debug|x64 30 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Release|Win32.ActiveCfg = Release|Win32 31 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Release|Win32.Build.0 = Release|Win32 32 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Release|x64.ActiveCfg = Release|x64 33 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12}.Release|x64.Build.0 = Release|x64 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | EndGlobal 39 | -------------------------------------------------------------------------------- /Common/PT1CreateCtrlCmdUtil.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "PT1CreateCtrlCmdUtil.h" 3 | 4 | BOOL CreateDefStream(DWORD dwValue, CMD_STREAM* pCmd) 5 | { 6 | if( pCmd == NULL ){ 7 | return FALSE; 8 | } 9 | pCmd->dwSize = sizeof(DWORD); 10 | pCmd->bData = new BYTE[sizeof(DWORD)]; 11 | 12 | DWORD dwPos = 0; 13 | 14 | memcpy(pCmd->bData + dwPos, &dwValue, sizeof(DWORD)); 15 | // dwPos+=sizeof(DWORD); 16 | 17 | return TRUE; 18 | } 19 | 20 | BOOL CopyDefData(DWORD* pdwValue, BYTE* pBuff) 21 | { 22 | if( pdwValue == NULL || pBuff == NULL ){ 23 | return FALSE; 24 | } 25 | DWORD dwPos = 0; 26 | 27 | *pdwValue = *(DWORD*)(pBuff+dwPos); 28 | // dwPos+=sizeof(DWORD); 29 | 30 | return TRUE; 31 | } 32 | 33 | BOOL CreateDefStream2(DWORD dwValue, DWORD dwValue2, CMD_STREAM* pCmd) 34 | { 35 | if( pCmd == NULL ){ 36 | return FALSE; 37 | } 38 | pCmd->dwSize = sizeof(DWORD)*2; 39 | pCmd->bData = new BYTE[sizeof(DWORD)*2]; 40 | 41 | DWORD dwPos = 0; 42 | 43 | memcpy(pCmd->bData + dwPos, &dwValue, sizeof(DWORD)); 44 | dwPos+=sizeof(DWORD); 45 | 46 | memcpy(pCmd->bData + dwPos, &dwValue2, sizeof(DWORD)); 47 | // dwPos+=sizeof(DWORD); 48 | 49 | return TRUE; 50 | } 51 | 52 | BOOL CopyDefData2(DWORD* pdwValue, DWORD* pdwValue2, BYTE* pBuff) 53 | { 54 | if( pdwValue == NULL || pdwValue2 == NULL || pBuff == NULL ){ 55 | return FALSE; 56 | } 57 | DWORD dwPos = 0; 58 | 59 | *pdwValue = *(DWORD*)(pBuff+dwPos); 60 | dwPos+=sizeof(DWORD); 61 | 62 | *pdwValue2 = *(DWORD*)(pBuff+dwPos); 63 | // dwPos+=sizeof(DWORD); 64 | 65 | return TRUE; 66 | } 67 | 68 | BOOL CreateDefStream3(DWORD dwValue, DWORD dwValue2, DWORD dwValue3, CMD_STREAM* pCmd) 69 | { 70 | if( pCmd == NULL ){ 71 | return FALSE; 72 | } 73 | pCmd->dwSize = sizeof(DWORD)*3; 74 | pCmd->bData = new BYTE[sizeof(DWORD)*3]; 75 | 76 | DWORD dwPos = 0; 77 | 78 | memcpy(pCmd->bData + dwPos, &dwValue, sizeof(DWORD)); 79 | dwPos+=sizeof(DWORD); 80 | 81 | memcpy(pCmd->bData + dwPos, &dwValue2, sizeof(DWORD)); 82 | dwPos+=sizeof(DWORD); 83 | 84 | memcpy(pCmd->bData + dwPos, &dwValue3, sizeof(DWORD)); 85 | // dwPos+=sizeof(DWORD); 86 | 87 | return TRUE; 88 | } 89 | 90 | BOOL CopyDefData3(DWORD* pdwValue, DWORD* pdwValue2, DWORD* pdwValue3, BYTE* pBuff) 91 | { 92 | if( pdwValue == NULL || pdwValue2 == NULL || pdwValue3 == NULL || pBuff == NULL ){ 93 | return FALSE; 94 | } 95 | DWORD dwPos = 0; 96 | 97 | *pdwValue = *(DWORD*)(pBuff+dwPos); 98 | dwPos+=sizeof(DWORD); 99 | 100 | *pdwValue2 = *(DWORD*)(pBuff+dwPos); 101 | dwPos+=sizeof(DWORD); 102 | 103 | *pdwValue3 = *(DWORD*)(pBuff+dwPos); 104 | // dwPos+=sizeof(DWORD); 105 | 106 | return TRUE; 107 | } 108 | -------------------------------------------------------------------------------- /PT3Ctrl/DataIO.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "inc/EARTH_PT3.h" 4 | #include "inc/Prefix.h" 5 | #include "inc/EX_Buffer.h" 6 | #include "../Common/PT1OutsideCtrlCmdDef.h" 7 | #include "../Common/PipeServer.h" 8 | 9 | using namespace EARTH; 10 | 11 | class CDataIO 12 | { 13 | public: 14 | CDataIO(void); 15 | ~CDataIO(void); 16 | 17 | void SetDevice(PT::Device* pcDevice){ m_pcDevice = pcDevice; }; 18 | void SetVirtualCount(UINT uiVirtualCount){ VIRTUAL_COUNT = uiVirtualCount*8; }; 19 | void Run(); 20 | void Stop(); 21 | BOOL EnableTuner(int iID, BOOL bEnable); 22 | void StartPipeServer(int iID); 23 | void StopPipeServer(int iID); 24 | void ClearBuff(int iID); 25 | 26 | DWORD GetOverFlowCount(int iID); 27 | 28 | protected: 29 | UINT VIRTUAL_COUNT; 30 | PT::Device* m_pcDevice; 31 | 32 | HANDLE m_hStopEvent; 33 | HANDLE m_hThread; 34 | 35 | CPipeServer m_cPipeT0; 36 | CPipeServer m_cPipeT1; 37 | CPipeServer m_cPipeS0; 38 | CPipeServer m_cPipeS1; 39 | 40 | typedef struct _BUFF_DATA { 41 | BYTE* pbBuff; 42 | DWORD dwSize; 43 | _BUFF_DATA(DWORD dw) : dwSize(dw){ 44 | pbBuff = new BYTE[dw]; 45 | } 46 | ~_BUFF_DATA(){ 47 | delete[] pbBuff; 48 | } 49 | } BUFF_DATA; 50 | 51 | deque m_T0Buff; 52 | deque m_T1Buff; 53 | deque m_S0Buff; 54 | deque m_S1Buff; 55 | 56 | EARTH::EX::Buffer* m_T0SetBuff; 57 | EARTH::EX::Buffer* m_T1SetBuff; 58 | EARTH::EX::Buffer* m_S0SetBuff; 59 | EARTH::EX::Buffer* m_S1SetBuff; 60 | 61 | uint32 m_T0WriteIndex; 62 | uint32 m_T1WriteIndex; 63 | uint32 m_S0WriteIndex; 64 | uint32 m_S1WriteIndex; 65 | 66 | DWORD m_dwT0OverFlowCount; 67 | DWORD m_dwT1OverFlowCount; 68 | DWORD m_dwS0OverFlowCount; 69 | DWORD m_dwS1OverFlowCount; 70 | 71 | HANDLE m_hEvent1; 72 | HANDLE m_hEvent2; 73 | HANDLE m_hEvent3; 74 | HANDLE m_hEvent4; 75 | 76 | protected: 77 | static UINT WINAPI RecvThread(LPVOID pParam); 78 | 79 | void Lock1(); 80 | void UnLock1(); 81 | void Lock2(); 82 | void UnLock2(); 83 | void Lock3(); 84 | void UnLock3(); 85 | void Lock4(); 86 | void UnLock4(); 87 | 88 | void ChkTransferInfo(); 89 | 90 | static int CALLBACK OutsideCmdCallbackT0(void* pParam, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 91 | static int CALLBACK OutsideCmdCallbackT1(void* pParam, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 92 | static int CALLBACK OutsideCmdCallbackS0(void* pParam, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 93 | static int CALLBACK OutsideCmdCallbackS1(void* pParam, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 94 | 95 | void CmdSendData(DWORD dwID, CMD_STREAM* pCmdParam, CMD_STREAM* pResParam); 96 | 97 | bool CheckReady(EARTH::EX::Buffer* buffer, uint32 index); 98 | bool ReadAddBuff(EARTH::EX::Buffer* buffer, uint32 index, deque &tsBuff); 99 | 100 | void Flush(deque &buf) { 101 | while (!buf.empty()){ 102 | BUFF_DATA *p = buf.front(); 103 | buf.pop_front(); 104 | delete p; 105 | } 106 | }; 107 | }; 108 | -------------------------------------------------------------------------------- /BonDriver_PT3/BonDriver_PT3.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {69b20510-dbae-4ff7-a9b3-9477f0a2be33} 18 | 19 | 20 | {6a9fc26e-1ac0-4660-981a-035fc0ca17af} 21 | 22 | 23 | 24 | 25 | ヘッダー ファイル 26 | 27 | 28 | ヘッダー ファイル 29 | 30 | 31 | ヘッダー ファイル 32 | 33 | 34 | ヘッダー ファイル 35 | 36 | 37 | ヘッダー ファイル 38 | 39 | 40 | ヘッダー ファイル 41 | 42 | 43 | inc 44 | 45 | 46 | inc 47 | 48 | 49 | inc 50 | 51 | 52 | inc 53 | 54 | 55 | ヘッダー ファイル 56 | 57 | 58 | Common 59 | 60 | 61 | Common 62 | 63 | 64 | Common 65 | 66 | 67 | Common 68 | 69 | 70 | Common 71 | 72 | 73 | Common 74 | 75 | 76 | Common 77 | 78 | 79 | 80 | 81 | ソース ファイル 82 | 83 | 84 | ソース ファイル 85 | 86 | 87 | ソース ファイル 88 | 89 | 90 | ソース ファイル 91 | 92 | 93 | ソース ファイル 94 | 95 | 96 | Common 97 | 98 | 99 | Common 100 | 101 | 102 | Common 103 | 104 | 105 | Common 106 | 107 | 108 | Common 109 | 110 | 111 | Common 112 | 113 | 114 | 115 | 116 | リソース ファイル 117 | 118 | 119 | 120 | 121 | リソース ファイル 122 | 123 | 124 | -------------------------------------------------------------------------------- /Common/Util.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "Util.h" 3 | 4 | HANDLE _CreateEvent(BOOL bManualReset, BOOL bInitialState, LPCTSTR lpName) 5 | { 6 | SECURITY_DESCRIPTOR sd; 7 | SECURITY_ATTRIBUTES sa; 8 | 9 | memset(&sd,0,sizeof(sd)); 10 | InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); 11 | SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE); 12 | memset(&sa,0,sizeof(sa)); 13 | sa.nLength=sizeof(sa); 14 | sa.lpSecurityDescriptor=&sd; 15 | 16 | return ::CreateEvent(&sa, bManualReset, bInitialState, lpName); 17 | } 18 | 19 | HANDLE _CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile ) 20 | { 21 | SECURITY_DESCRIPTOR sd; 22 | SECURITY_ATTRIBUTES sa; 23 | 24 | memset(&sd,0,sizeof(sd)); 25 | InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); 26 | SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE); 27 | memset(&sa,0,sizeof(sa)); 28 | sa.nLength=sizeof(sa); 29 | sa.lpSecurityDescriptor=&sd; 30 | 31 | return ::CreateFile( lpFileName, dwDesiredAccess, dwShareMode, &sa, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile ); 32 | } 33 | 34 | HANDLE _CreateMutex( BOOL bInitialOwner, LPCTSTR lpName ) 35 | { 36 | SECURITY_DESCRIPTOR sd; 37 | SECURITY_ATTRIBUTES sa; 38 | 39 | memset(&sd,0,sizeof(sd)); 40 | InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); 41 | SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE); 42 | memset(&sa,0,sizeof(sa)); 43 | sa.nLength=sizeof(sa); 44 | sa.lpSecurityDescriptor=&sd; 45 | 46 | return ::CreateMutex( &sa, bInitialOwner, lpName ); 47 | } 48 | 49 | HANDLE _CreateFileMapping( HANDLE hFile, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCTSTR lpName) 50 | { 51 | SECURITY_DESCRIPTOR sd; 52 | SECURITY_ATTRIBUTES sa; 53 | 54 | memset(&sd,0,sizeof(sd)); 55 | InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); 56 | SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE); 57 | memset(&sa,0,sizeof(sa)); 58 | sa.nLength=sizeof(sa); 59 | sa.lpSecurityDescriptor=&sd; 60 | 61 | return ::CreateFileMapping( hFile, &sa, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, lpName); 62 | } 63 | 64 | HANDLE _CreateNamedPipe( LPCTSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut ) 65 | { 66 | SECURITY_DESCRIPTOR sd; 67 | SECURITY_ATTRIBUTES sa; 68 | 69 | memset(&sd,0,sizeof(sd)); 70 | InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); 71 | SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE); 72 | memset(&sa,0,sizeof(sa)); 73 | sa.nLength=sizeof(sa); 74 | sa.lpSecurityDescriptor=&sd; 75 | 76 | return ::CreateNamedPipe( lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, &sa ); 77 | } 78 | 79 | BOOL _CreateDirectory( LPCTSTR lpPathName ) 80 | { 81 | BOOL bRet = FALSE; 82 | if( _tcslen(lpPathName) > 2 ){ 83 | TCHAR szCreatePath[MAX_PATH+1] = _T(""); 84 | szCreatePath[0] = lpPathName[0]; 85 | szCreatePath[1] = lpPathName[1]; 86 | 87 | for (int i = 2; i < (int)_tcslen(lpPathName); i++) { 88 | szCreatePath[i] = lpPathName[i]; 89 | if (szCreatePath[i] == '\\') { 90 | szCreatePath[i+1] = '\0'; 91 | if ( GetFileAttributes(szCreatePath) == 0xFFFFFFFF ) { 92 | bRet = ::CreateDirectory( szCreatePath, NULL ); 93 | } 94 | } 95 | } 96 | if ( GetFileAttributes(szCreatePath) == 0xFFFFFFFF ) { 97 | bRet = ::CreateDirectory( szCreatePath, NULL ); 98 | } 99 | } 100 | 101 | return bRet; 102 | } 103 | 104 | HANDLE _CreateFile2( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile ) 105 | { 106 | HANDLE hFile = ::CreateFile( lpFileName, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile ); 107 | if( hFile == INVALID_HANDLE_VALUE ){ 108 | TCHAR* p = (TCHAR*)_tcsrchr(lpFileName, '\\'); 109 | TCHAR* szDirPath = NULL; 110 | if( p != NULL ){ 111 | int iSize = (int)(p - lpFileName); 112 | szDirPath = new TCHAR[iSize+1]; 113 | _tcsncpy_s(szDirPath, iSize+1, lpFileName, iSize); 114 | } 115 | if( szDirPath != NULL ){ 116 | _CreateDirectory(szDirPath); 117 | delete[] szDirPath; 118 | hFile = ::CreateFile( lpFileName, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile ); 119 | } 120 | } 121 | return hFile; 122 | } 123 | 124 | void _OutputDebugString(const TCHAR *format, ...) 125 | { 126 | va_list params; 127 | 128 | va_start(params, format); 129 | int iResult; 130 | TCHAR *buff; 131 | int length = _vsctprintf(format, params); 132 | buff = new TCHAR [length + 1]; 133 | if (buff != NULL) { 134 | iResult = _vstprintf_s(buff, length + 1, format, params); 135 | buff[length] = _T('\0'); 136 | OutputDebugString(buff); 137 | delete[] buff; 138 | } 139 | va_end(params); 140 | } 141 | -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {900a135d-3719-4b8b-98e7-4f7934d29057} 18 | 19 | 20 | {5081ce6d-0e16-43fb-bcc4-09c8806e4a68} 21 | 22 | 23 | 24 | 25 | リソース ファイル 26 | 27 | 28 | リソース ファイル 29 | 30 | 31 | 32 | 33 | ヘッダー ファイル 34 | 35 | 36 | ヘッダー ファイル 37 | 38 | 39 | ヘッダー ファイル 40 | 41 | 42 | ヘッダー ファイル 43 | 44 | 45 | ヘッダー ファイル 46 | 47 | 48 | ヘッダー ファイル 49 | 50 | 51 | ヘッダー ファイル 52 | 53 | 54 | inc 55 | 56 | 57 | inc 58 | 59 | 60 | inc 61 | 62 | 63 | inc 64 | 65 | 66 | inc 67 | 68 | 69 | inc 70 | 71 | 72 | inc 73 | 74 | 75 | Common 76 | 77 | 78 | Common 79 | 80 | 81 | Common 82 | 83 | 84 | Common 85 | 86 | 87 | Common 88 | 89 | 90 | Common 91 | 92 | 93 | Common 94 | 95 | 96 | 97 | 98 | ソース ファイル 99 | 100 | 101 | ソース ファイル 102 | 103 | 104 | ソース ファイル 105 | 106 | 107 | ソース ファイル 108 | 109 | 110 | ソース ファイル 111 | 112 | 113 | Common 114 | 115 | 116 | Common 117 | 118 | 119 | Common 120 | 121 | 122 | Common 123 | 124 | 125 | Common 126 | 127 | 128 | Common 129 | 130 | 131 | 132 | 133 | リソース ファイル 134 | 135 | 136 | 137 | 138 | リソース ファイル 139 | 140 | 141 | -------------------------------------------------------------------------------- /Common/ServiceUtil.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "ServiceUtil.h" 3 | 4 | void InstallService(LPCWSTR lpcwszFilePath, LPCWSTR lpcwszName, LPCWSTR lpcwszViewName) 5 | { 6 | SC_HANDLE hScm = NULL; 7 | SC_HANDLE hSrv = NULL; 8 | 9 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE); 10 | if(hScm == NULL){ 11 | OutputDebugString(_T("OpenSCManager failed")); 12 | return ; 13 | } 14 | hSrv = CreateServiceW(hScm, lpcwszName, lpcwszViewName, 15 | SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS|SERVICE_INTERACTIVE_PROCESS, SERVICE_AUTO_START, 16 | SERVICE_ERROR_NORMAL, lpcwszFilePath, NULL, NULL, NULL, NULL, NULL); 17 | if(hSrv == NULL){ 18 | OutputDebugString(_T("service install failed")); 19 | CloseServiceHandle(hScm); 20 | return ; 21 | } 22 | 23 | CloseServiceHandle(hSrv); 24 | CloseServiceHandle(hScm); 25 | } 26 | 27 | void RemoveService(LPCWSTR lpcwszName) 28 | { 29 | SC_HANDLE hScm = NULL; 30 | SC_HANDLE hSrv = NULL; 31 | SERVICE_STATUS stStatus; 32 | 33 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 34 | if(hScm == NULL){ 35 | OutputDebugString(_T("OpenSCManager failed")); 36 | return ; 37 | } 38 | hSrv = OpenServiceW(hScm, lpcwszName, DELETE | SERVICE_STOP | SERVICE_QUERY_STATUS); 39 | if(hSrv == NULL){ 40 | OutputDebugString(_T("OpenService failed")); 41 | CloseServiceHandle(hScm); 42 | return ; 43 | } 44 | if(QueryServiceStatus(hSrv, &stStatus) == FALSE ){ 45 | OutputDebugString(_T("QueryServiceStatus failed")); 46 | CloseServiceHandle(hSrv); 47 | CloseServiceHandle(hScm); 48 | return ; 49 | } 50 | if( stStatus.dwCurrentState != SERVICE_STOPPED ){ 51 | if( ControlService(hSrv, SERVICE_CONTROL_STOP, &stStatus) == FALSE ){ 52 | OutputDebugString(_T("ControlService failed")); 53 | CloseServiceHandle(hSrv); 54 | CloseServiceHandle(hScm); 55 | return ; 56 | } 57 | } 58 | DeleteService(hSrv); 59 | 60 | CloseServiceHandle(hSrv); 61 | CloseServiceHandle(hScm); 62 | } 63 | 64 | BOOL IsInstallService(LPCWSTR lpcwszName) 65 | { 66 | SC_HANDLE hScm = NULL; 67 | SC_HANDLE hSrv = NULL; 68 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 69 | if(hScm == NULL){ 70 | OutputDebugString(_T("OpenSCManager failed")); 71 | return FALSE; 72 | } 73 | hSrv = OpenServiceW(hScm, lpcwszName, SERVICE_QUERY_STATUS); 74 | if(hSrv == NULL){ 75 | OutputDebugString(_T("OpenService failed")); 76 | CloseServiceHandle(hScm); 77 | return FALSE; 78 | } 79 | CloseServiceHandle(hSrv); 80 | CloseServiceHandle(hScm); 81 | 82 | return TRUE; 83 | } 84 | 85 | BOOL IsStopService(LPCWSTR lpcwszName) 86 | { 87 | BOOL bRet = FALSE; 88 | SC_HANDLE hScm = NULL; 89 | SC_HANDLE hSrv = NULL; 90 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 91 | if(hScm == NULL){ 92 | OutputDebugString(_T("OpenSCManager failed")); 93 | return FALSE; 94 | } 95 | hSrv = OpenServiceW(hScm, lpcwszName, SERVICE_QUERY_STATUS); 96 | if(hSrv == NULL){ 97 | OutputDebugString(_T("OpenService failed")); 98 | CloseServiceHandle(hScm); 99 | return FALSE; 100 | } 101 | SERVICE_STATUS stStatus; 102 | if( QueryServiceStatus(hSrv, &stStatus) == TRUE ){ 103 | if(stStatus.dwCurrentState == SERVICE_STOPPED){ 104 | bRet = TRUE; 105 | } 106 | }else{ 107 | OutputDebugString(_T("QueryServiceStatus failed")); 108 | } 109 | 110 | CloseServiceHandle(hSrv); 111 | CloseServiceHandle(hScm); 112 | 113 | return bRet; 114 | } 115 | 116 | BOOL StartServiceCtrl(LPCWSTR lpcwszName) 117 | { 118 | SC_HANDLE hScm = NULL; 119 | SC_HANDLE hSrv = NULL; 120 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 121 | if(hScm == NULL){ 122 | OutputDebugString(_T("OpenSCManager failed")); 123 | return FALSE; 124 | } 125 | hSrv = OpenServiceW(hScm, lpcwszName, SERVICE_START); 126 | if(hSrv == NULL){ 127 | OutputDebugString(_T("OpenService failed")); 128 | CloseServiceHandle(hScm); 129 | return FALSE; 130 | } 131 | if( StartServiceW(hSrv, 0, NULL) == FALSE ){ 132 | OutputDebugString(_T("StartService failed")); 133 | } 134 | 135 | CloseServiceHandle(hSrv); 136 | CloseServiceHandle(hScm); 137 | 138 | return TRUE; 139 | } 140 | 141 | BOOL StopServiceCtrl(LPCWSTR lpcwszName) 142 | { 143 | SC_HANDLE hScm = NULL; 144 | SC_HANDLE hSrv = NULL; 145 | SERVICE_STATUS stStatus; 146 | 147 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 148 | if(hScm == NULL){ 149 | OutputDebugString(_T("OpenSCManager failed")); 150 | return FALSE; 151 | } 152 | hSrv = OpenServiceW(hScm, lpcwszName, SERVICE_STOP | SERVICE_QUERY_STATUS); 153 | if(hSrv == NULL){ 154 | OutputDebugString(_T("OpenService failed")); 155 | CloseServiceHandle(hScm); 156 | return FALSE; 157 | } 158 | if(QueryServiceStatus(hSrv, &stStatus) == FALSE ){ 159 | OutputDebugString(_T("QueryServiceStatus failed")); 160 | CloseServiceHandle(hSrv); 161 | CloseServiceHandle(hScm); 162 | return FALSE; 163 | } 164 | if( stStatus.dwCurrentState != SERVICE_STOPPED ){ 165 | if( ControlService(hSrv, SERVICE_CONTROL_STOP, &stStatus) == FALSE ){ 166 | OutputDebugString(_T("ControlService failed")); 167 | CloseServiceHandle(hSrv); 168 | CloseServiceHandle(hScm); 169 | return FALSE; 170 | } 171 | } 172 | 173 | CloseServiceHandle(hSrv); 174 | CloseServiceHandle(hScm); 175 | 176 | return TRUE; 177 | } 178 | 179 | DWORD GetServiceStatus(LPCWSTR lpcwszName) 180 | { 181 | SC_HANDLE hScm = NULL; 182 | SC_HANDLE hSrv = NULL; 183 | SERVICE_STATUS stStatus; 184 | 185 | hScm = OpenSCManagerW(0, 0, SC_MANAGER_CONNECT); 186 | if(hScm == NULL){ 187 | OutputDebugString(_T("OpenSCManager failed")); 188 | return FALSE; 189 | } 190 | hSrv = OpenServiceW(hScm, lpcwszName, SERVICE_QUERY_STATUS); 191 | if(hSrv == NULL){ 192 | OutputDebugString(_T("OpenService failed")); 193 | CloseServiceHandle(hScm); 194 | return FALSE; 195 | } 196 | if(QueryServiceStatus(hSrv, &stStatus) == FALSE ){ 197 | OutputDebugString(_T("QueryServiceStatus failed")); 198 | CloseServiceHandle(hSrv); 199 | CloseServiceHandle(hScm); 200 | return FALSE; 201 | } 202 | DWORD dwStatus = stStatus.dwCurrentState; 203 | return dwStatus; 204 | } 205 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml 399 | -------------------------------------------------------------------------------- /PT3Ctrl/PT3Ctrl.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {DD1A4A96-3CDE-4C86-9F52-F4265E3D4B12} 23 | Win32Proj 24 | PT3Ctrl 25 | 10.0 26 | 27 | 28 | 29 | Application 30 | true 31 | Unicode 32 | v142 33 | 34 | 35 | Application 36 | true 37 | Unicode 38 | v142 39 | 40 | 41 | Application 42 | false 43 | true 44 | Unicode 45 | v142 46 | 47 | 48 | Application 49 | false 50 | true 51 | Unicode 52 | v142 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | true 72 | $(SolutionDir)\$(Configuration)\$(Platform)\ 73 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 74 | 75 | 76 | true 77 | $(SolutionDir)\$(Configuration)\$(Platform)\ 78 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 79 | 80 | 81 | false 82 | $(SolutionDir)\$(Configuration)\$(Platform)\ 83 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 84 | 85 | 86 | false 87 | $(SolutionDir)\$(Configuration)\$(Platform)\ 88 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 89 | 90 | 91 | 92 | Use 93 | Level3 94 | Disabled 95 | WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) 96 | . 97 | 98 | 99 | Windows 100 | true 101 | 102 | 103 | 104 | 105 | Use 106 | Level3 107 | Disabled 108 | WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) 109 | . 110 | 111 | 112 | Windows 113 | true 114 | 115 | 116 | 117 | 118 | Level3 119 | NotUsing 120 | Full 121 | true 122 | true 123 | WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) 124 | MultiThreadedDLL 125 | AnySuitable 126 | Speed 127 | true 128 | false 129 | true 130 | Fast 131 | . 132 | 133 | 134 | Windows 135 | false 136 | true 137 | true 138 | UseLinkTimeCodeGeneration 139 | 140 | 141 | $(SolutionDir)Common\compatibility.manifest;%(AdditionalManifestFiles) 142 | 143 | 144 | 145 | 146 | Level3 147 | NotUsing 148 | Full 149 | true 150 | true 151 | WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) 152 | MultiThreadedDLL 153 | AnySuitable 154 | Speed 155 | true 156 | false 157 | true 158 | Fast 159 | . 160 | 161 | 162 | Windows 163 | false 164 | true 165 | true 166 | UseLinkTimeCodeGeneration 167 | 168 | 169 | $(SolutionDir)Common\compatibility.manifest;%(AdditionalManifestFiles) 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | Create 212 | Create 213 | Create 214 | Create 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | -------------------------------------------------------------------------------- /BonDriver_PT3/BonDriver_PT3.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {BF775E2E-70BF-4DAA-ADB7-62D075369AC9} 23 | Win32Proj 24 | BonDriver_PT3 25 | 10.0 26 | 27 | 28 | 29 | DynamicLibrary 30 | true 31 | Unicode 32 | v142 33 | 34 | 35 | DynamicLibrary 36 | true 37 | Unicode 38 | v142 39 | 40 | 41 | DynamicLibrary 42 | false 43 | true 44 | Unicode 45 | v142 46 | 47 | 48 | DynamicLibrary 49 | false 50 | true 51 | Unicode 52 | v142 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | true 72 | $(SolutionDir)\$(Configuration)\$(Platform)\ 73 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 74 | 75 | 76 | true 77 | $(SolutionDir)\$(Configuration)\$(Platform)\ 78 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 79 | 80 | 81 | false 82 | $(SolutionDir)\$(Configuration)\$(Platform)\ 83 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 84 | 85 | 86 | false 87 | $(SolutionDir)\$(Configuration)\$(Platform)\ 88 | $(SolutionDir)\Intermediate\$(ProjectName)\$(Configuration)\$(Platform)\ 89 | 90 | 91 | 92 | Use 93 | Level3 94 | Disabled 95 | WIN32;_DEBUG;_WINDOWS;_USRDLL;BONDRIVER_PT3_EXPORTS;%(PreprocessorDefinitions) 96 | . 97 | 98 | 99 | Windows 100 | true 101 | 102 | 103 | 104 | 105 | Use 106 | Level3 107 | Disabled 108 | WIN32;_DEBUG;_WINDOWS;_USRDLL;BONDRIVER_PT3_EXPORTS;%(PreprocessorDefinitions) 109 | . 110 | 111 | 112 | Windows 113 | true 114 | 115 | 116 | 117 | 118 | Level3 119 | NotUsing 120 | Full 121 | true 122 | true 123 | WIN32;NDEBUG;_WINDOWS;_USRDLL;BONDRIVER_PT3_EXPORTS;%(PreprocessorDefinitions) 124 | MultiThreadedDLL 125 | AnySuitable 126 | Speed 127 | true 128 | false 129 | true 130 | Fast 131 | . 132 | 133 | 134 | Windows 135 | false 136 | true 137 | true 138 | UseLinkTimeCodeGeneration 139 | 140 | 141 | $(SolutionDir)Common\compatibility.manifest;%(AdditionalManifestFiles) 142 | 143 | 144 | 145 | 146 | Level3 147 | NotUsing 148 | Full 149 | true 150 | true 151 | WIN32;NDEBUG;_WINDOWS;_USRDLL;BONDRIVER_PT3_EXPORTS;%(PreprocessorDefinitions) 152 | MultiThreadedDLL 153 | AnySuitable 154 | Speed 155 | true 156 | false 157 | true 158 | Fast 159 | . 160 | 161 | 162 | Windows 163 | false 164 | true 165 | true 166 | UseLinkTimeCodeGeneration 167 | 168 | 169 | $(SolutionDir)Common\compatibility.manifest;%(AdditionalManifestFiles) 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | false 203 | false 204 | 205 | 206 | 207 | 208 | false 209 | false 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | Create 218 | Create 219 | Create 220 | Create 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | --------------------------------------------------------------------------------