├── InstDrv ├── InstDrv.h ├── RDa55000 ├── InstDrv.rc ├── MainDlg.cpp ├── res │ └── InstDrv.ico ├── stdafx.cpp ├── packages.config ├── SysManager.h ├── InstDrv.cpp ├── resource.h ├── stdafx.h ├── SysManager.cpp ├── InstDrv.vcxproj.filters ├── MainDlg.h ├── InstDrv.vcxproj └── RCa55000 ├── InstDrv.jpg ├── README.md ├── InstDrv.sln ├── .gitattributes └── .gitignore /InstDrv/InstDrv.h: -------------------------------------------------------------------------------- 1 | // InstDrv.h 2 | -------------------------------------------------------------------------------- /InstDrv.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeneficialCode/InstDrv/HEAD/InstDrv.jpg -------------------------------------------------------------------------------- /InstDrv/RDa55000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeneficialCode/InstDrv/HEAD/InstDrv/RDa55000 -------------------------------------------------------------------------------- /InstDrv/InstDrv.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeneficialCode/InstDrv/HEAD/InstDrv/InstDrv.rc -------------------------------------------------------------------------------- /InstDrv/MainDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeneficialCode/InstDrv/HEAD/InstDrv/MainDlg.cpp -------------------------------------------------------------------------------- /InstDrv/res/InstDrv.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeneficialCode/InstDrv/HEAD/InstDrv/res/InstDrv.ico -------------------------------------------------------------------------------- /InstDrv/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // InstDrv.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /InstDrv/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # InstDrv 2 | English 3 | 4 | This is a driver install tool 5 | ``` 6 | Function: 7 | 1.Drop sys file 8 | 2.Multi-thread work, will not stuck in start or stop service. 9 | 3.Support on Win7 and later system 10 | ``` 11 | 这是一个驱动安装工具 12 | 功能: 13 | 14 | 1.支持驱动文件拖拽 15 | 2.采取运行、停止驱动服务采取多线程,不卡界面UI 16 | 3.支持win7系统以上 17 | ![image](./InstDrv.jpg) 18 | -------------------------------------------------------------------------------- /InstDrv/SysManager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class SysManager { 4 | public: 5 | SysManager(CString sysPath, CString serviceName, CString displayName,bool isFileSys) :_sysPath(sysPath), 6 | _serviceName(serviceName), _displayName(displayName),_isFileSys(isFileSys){ 7 | } 8 | bool Install() const; 9 | bool Run() const; 10 | bool Stop() const; 11 | bool Remove() const; 12 | SC_HANDLE GetServiceHandle() const; 13 | private: 14 | CString _sysPath; 15 | CString _serviceName; 16 | CString _displayName; 17 | bool _isFileSys; 18 | }; -------------------------------------------------------------------------------- /InstDrv/InstDrv.cpp: -------------------------------------------------------------------------------- 1 | // InstDrv.cpp : main source file for InstDrv.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include "resource.h" 7 | 8 | #include "MainDlg.h" 9 | 10 | CAppModule _Module; 11 | 12 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR /*lpstrCmdLine*/, int /*nCmdShow*/) 13 | { 14 | HRESULT hRes = ::CoInitialize(NULL); 15 | ATLASSERT(SUCCEEDED(hRes)); 16 | 17 | AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls 18 | 19 | hRes = _Module.Init(NULL, hInstance); 20 | ATLASSERT(SUCCEEDED(hRes)); 21 | 22 | int nRet = 0; 23 | // BLOCK: Run application 24 | { 25 | CMainDlg dlgMain; 26 | nRet = (int)dlgMain.DoModal(); 27 | } 28 | 29 | _Module.Term(); 30 | ::CoUninitialize(); 31 | 32 | return nRet; 33 | } 34 | -------------------------------------------------------------------------------- /InstDrv/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by InstDrv.rc 4 | // 5 | #define IDR_MAINFRAME 128 6 | #define IDD_MAINDLG 129 7 | #define IDC_EDIT_DRVFILEPATH 1000 8 | #define IDC_BTN_BROWSE 1001 9 | #define IDC_DRIVER_TYPE 1002 10 | #define IDC_BTN_INSTALL 1003 11 | #define IDC_BTN_RUN 1004 12 | #define IDC_BTN_STOP 1005 13 | #define IDC_BTN_REMOVE 1006 14 | #define IDC_EDIT_STATUS 1007 15 | #define IDC_BTN_REMOVE2 1008 16 | #define IDC_CHECK1 1008 17 | #define IDC_BYPASS_REVOKE 1008 18 | 19 | // Next default values for new objects 20 | // 21 | #ifdef APSTUDIO_INVOKED 22 | #ifndef APSTUDIO_READONLY_SYMBOLS 23 | #define _APS_NEXT_RESOURCE_VALUE 202 24 | #define _APS_NEXT_COMMAND_VALUE 32775 25 | #define _APS_NEXT_CONTROL_VALUE 1009 26 | #define _APS_NEXT_SYMED_VALUE 101 27 | #endif 28 | #endif 29 | -------------------------------------------------------------------------------- /InstDrv.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.33328.57 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "InstDrv", "InstDrv\InstDrv.vcxproj", "{0215504E-F5E2-4935-83C9-59A0532BED92}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Debug|x64.ActiveCfg = Debug|x64 17 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Debug|x64.Build.0 = Debug|x64 18 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Debug|x86.ActiveCfg = Debug|Win32 19 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Debug|x86.Build.0 = Debug|Win32 20 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Release|x64.ActiveCfg = Release|x64 21 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Release|x64.Build.0 = Release|x64 22 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Release|x86.ActiveCfg = Release|Win32 23 | {0215504E-F5E2-4935-83C9-59A0532BED92}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {4383AA9C-649F-4B49-91A3-041C7A54F64A} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /InstDrv/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | #define WINVER 0x0601 10 | #define _WIN32_WINNT 0x0601 11 | #define _WIN32_IE 0x0700 12 | #define _RICHEDIT_VER 0x0500 13 | 14 | #include 15 | #include 16 | 17 | extern CAppModule _Module; 18 | 19 | #include 20 | 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | #include 27 | 28 | #if defined _M_IX86 29 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 30 | #elif defined _M_IA64 31 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 32 | #elif defined _M_X64 33 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 34 | #else 35 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 36 | #endif 37 | -------------------------------------------------------------------------------- /InstDrv/SysManager.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "SysManager.h" 3 | 4 | bool SysManager::Install() const { 5 | wil::unique_schandle hSCManager; 6 | hSCManager.reset(OpenSCManager(nullptr, nullptr, SC_MANAGER_ALL_ACCESS)); 7 | if (NULL == hSCManager.get()) 8 | return false; 9 | 10 | wil::unique_schandle hService; 11 | hService.reset(CreateService(hSCManager.get(), _serviceName, _displayName, 12 | SERVICE_ALL_ACCESS, 13 | _isFileSys ? SERVICE_FILE_SYSTEM_DRIVER : SERVICE_KERNEL_DRIVER, 14 | SERVICE_DEMAND_START, // driver is not loaded automatically 15 | SERVICE_ERROR_NORMAL, // The error is logged to the event log service 16 | _sysPath, nullptr, nullptr, nullptr, nullptr, nullptr)); 17 | if (NULL == hService.get()) 18 | return false; 19 | 20 | return true; 21 | } 22 | 23 | SC_HANDLE SysManager::GetServiceHandle() const { 24 | wil::unique_schandle hSCManager; 25 | hSCManager.reset(OpenSCManager(nullptr, nullptr, SC_MANAGER_ALL_ACCESS)); 26 | if (NULL == hSCManager.get()) 27 | return NULL; 28 | 29 | SC_HANDLE hService; 30 | hService = OpenService(hSCManager.get(), _serviceName, SERVICE_ALL_ACCESS); 31 | if (NULL == hService) 32 | return NULL; 33 | return hService; 34 | } 35 | 36 | bool SysManager::Run() const { 37 | wil::unique_schandle hService; 38 | hService.reset(GetServiceHandle()); 39 | if (NULL == hService.get()) 40 | return false; 41 | 42 | if (!StartService(hService.get(), NULL, nullptr)) 43 | return false; 44 | return true; 45 | } 46 | 47 | bool SysManager::Stop() const { 48 | wil::unique_schandle hService; 49 | hService.reset(GetServiceHandle()); 50 | if (NULL == hService.get()) 51 | return false; 52 | 53 | SERVICE_STATUS status; 54 | if (!ControlService(hService.get(), SERVICE_CONTROL_STOP, &status)) 55 | return false; 56 | return true; 57 | } 58 | 59 | bool SysManager::Remove() const { 60 | wil::unique_schandle hService; 61 | hService.reset(GetServiceHandle()); 62 | if (NULL == hService.get()) 63 | return false; 64 | 65 | if (!DeleteService(hService.get())) 66 | return false; 67 | return true; 68 | } -------------------------------------------------------------------------------- /InstDrv/InstDrv.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {ce015c3a-23e4-416c-9f60-201d5a1c768b} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {050d6310-8825-4daf-a188-081e2d5b7da3} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {36b9474d-fd31-424c-9b4a-ef65be0ed396} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files 26 | 27 | 28 | Source Files 29 | 30 | 31 | 32 | 33 | Header Files 34 | 35 | 36 | Header Files 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | 46 | 47 | Resource Files 48 | 49 | 50 | 51 | 52 | Resource Files 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /InstDrv/MainDlg.h: -------------------------------------------------------------------------------- 1 | // MainDlg.h : interface of the CMainDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | #define WM_COPYGLOBALDATA 0x49 8 | 9 | class CMainDlg : public CDialogImpl 10 | { 11 | public: 12 | enum { IDD = IDD_MAINDLG }; 13 | 14 | BEGIN_MSG_MAP(CMainDlg) 15 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 16 | COMMAND_ID_HANDLER(ID_APP_ABOUT, OnAppAbout) 17 | MESSAGE_HANDLER(WM_DROPFILES, OnDropFile) 18 | COMMAND_ID_HANDLER(IDOK, OnOK) 19 | COMMAND_ID_HANDLER(IDCANCEL, OnCancel) 20 | COMMAND_ID_HANDLER(IDC_BTN_BROWSE, OnBrowse) 21 | COMMAND_ID_HANDLER(IDC_BTN_INSTALL, OnInstall) 22 | COMMAND_ID_HANDLER(IDC_BTN_REMOVE, OnRemove) 23 | COMMAND_ID_HANDLER(IDC_BTN_STOP, OnStop) 24 | COMMAND_ID_HANDLER(IDC_BTN_RUN, OnRun) 25 | END_MSG_MAP() 26 | 27 | // Handler prototypes (uncomment arguments if needed): 28 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 29 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 30 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 31 | LRESULT OnDropFile(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 32 | 33 | 34 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 35 | LRESULT OnAppAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 36 | LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 37 | LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 38 | 39 | LRESULT OnBrowse(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 40 | LRESULT OnInstall(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 41 | LRESULT OnRemove(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 42 | LRESULT OnStop(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 43 | LRESULT OnRun(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 44 | 45 | bool InitParams(CString& sysPath, CString& serviceName, CString& displayName, bool& isFileSys); 46 | void ShowError(); 47 | DWORD StopService(); 48 | DWORD RunService(); 49 | }; 50 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.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/master/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 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 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 LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /InstDrv/InstDrv.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 16.0 23 | {0215504E-F5E2-4935-83C9-59A0532BED92} 24 | 10.0 25 | 26 | 27 | 28 | Application 29 | true 30 | v142 31 | Unicode 32 | 33 | 34 | Application 35 | false 36 | v142 37 | Unicode 38 | 39 | 40 | Application 41 | true 42 | v142 43 | Unicode 44 | 45 | 46 | Application 47 | false 48 | v142 49 | Unicode 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | true 71 | 72 | 73 | true 74 | 75 | 76 | false 77 | $(ProjectName)_x86 78 | 79 | 80 | false 81 | $(ProjectName)_x64 82 | 83 | 84 | 85 | Use 86 | Level3 87 | MultiThreadedDebug 88 | EditAndContinue 89 | EnableFastChecks 90 | Disabled 91 | WIN32;_WINDOWS;STRICT;_DEBUG;%(PreprocessorDefinitions) 92 | 93 | 94 | Windows 95 | true 96 | RequireAdministrator 97 | 98 | 99 | 0x0409 100 | $(IntDir);%(AdditionalIncludeDirectories) 101 | _DEBUG;%(PreprocessorDefinitions) 102 | 103 | 104 | false 105 | Win32 106 | _DEBUG;%(PreprocessorDefinitions) 107 | InstDrv.h 108 | InstDrv_i.c 109 | InstDrv_p.c 110 | true 111 | $(IntDir)/InstDrv.tlb 112 | 113 | 114 | 115 | 116 | 117 | Use 118 | Level3 119 | MultiThreadedDebug 120 | EditAndContinue 121 | EnableFastChecks 122 | Disabled 123 | _WINDOWS;STRICT;_DEBUG;%(PreprocessorDefinitions) 124 | 125 | 126 | Windows 127 | true 128 | RequireAdministrator 129 | 130 | 131 | 0x0409 132 | $(IntDir);%(AdditionalIncludeDirectories) 133 | _DEBUG;%(PreprocessorDefinitions) 134 | 135 | 136 | false 137 | _DEBUG;%(PreprocessorDefinitions) 138 | InstDrv.h 139 | InstDrv_i.c 140 | InstDrv_p.c 141 | true 142 | $(IntDir)/InstDrv.tlb 143 | 144 | 145 | 146 | 147 | 148 | Use 149 | Level3 150 | MultiThreaded 151 | 152 | 153 | WIN32;_WINDOWS;STRICT;NDEBUG;%(PreprocessorDefinitions) 154 | 155 | 156 | Windows 157 | RequireAdministrator 158 | 159 | 160 | 0x0409 161 | $(IntDir);%(AdditionalIncludeDirectories) 162 | NDEBUG;%(PreprocessorDefinitions) 163 | 164 | 165 | false 166 | Win32 167 | NDEBUG;%(PreprocessorDefinitions) 168 | InstDrv.h 169 | InstDrv_i.c 170 | InstDrv_p.c 171 | true 172 | $(IntDir)/InstDrv.tlb 173 | 174 | 175 | 176 | 177 | 178 | Use 179 | Level3 180 | MultiThreaded 181 | 182 | 183 | _WINDOWS;STRICT;NDEBUG;%(PreprocessorDefinitions) 184 | 185 | 186 | Windows 187 | RequireAdministrator 188 | 189 | 190 | 0x0409 191 | $(IntDir);%(AdditionalIncludeDirectories) 192 | NDEBUG;%(PreprocessorDefinitions) 193 | 194 | 195 | false 196 | NDEBUG;%(PreprocessorDefinitions) 197 | InstDrv.h 198 | InstDrv_i.c 199 | InstDrv_p.c 200 | true 201 | $(IntDir)/InstDrv.tlb 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | Create 210 | Create 211 | Create 212 | Create 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 239 | 240 | 241 | 242 | 243 | -------------------------------------------------------------------------------- /InstDrv/RCa55000: -------------------------------------------------------------------------------- 1 | #line 1"F:\\cpp\\InstDrv\\InstDrv\\InstDrv.rc" 2 | #line 1 3 | // Microsoft Visual C++ generated resource script. 4 | // 5 | #include "resource.h" 6 | #line 5 7 | #define APSTUDIO_READONLY_SYMBOLS 8 | ///////////////////////////////////////////////////////////////////////////// 9 | // 10 | // Generated from the TEXTINCLUDE 2 resource. 11 | // 12 | #include "atlres.h" 13 | #line 12 14 | ///////////////////////////////////////////////////////////////////////////// 15 | #undef APSTUDIO_READONLY_SYMBOLS 16 | #line 15 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // English (U.S.) resources 19 | #line 18 20 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 21 | #ifdef _WIN32 22 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 23 | #pragma code_page(1252) 24 | #endif //_WIN32 25 | #line 24 26 | #ifdef APSTUDIO_INVOKED 27 | ///////////////////////////////////////////////////////////////////////////// 28 | // 29 | // TEXTINCLUDE 30 | // 31 | #line 30 32 | 1 TEXTINCLUDE 33 | BEGIN 34 | "resource.h\0" 35 | END 36 | #line 35 37 | 2 TEXTINCLUDE 38 | BEGIN 39 | "#include ""atlres.h""\r\n" 40 | "\0" 41 | END 42 | #line 41 43 | 3 TEXTINCLUDE 44 | BEGIN 45 | "\0" 46 | END 47 | #line 46 48 | #endif // APSTUDIO_INVOKED 49 | #line 49 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Icon 53 | // 54 | #line 54 55 | // Icon with lowest ID value placed first to ensure application icon 56 | // remains consistent on all systems. 57 | IDR_MAINFRAME ICON "res\\InstDrv.ico" 58 | #line 58 59 | ///////////////////////////////////////////////////////////////////////////// 60 | // 61 | // Dialog 62 | // 63 | #line 63 64 | IDD_ABOUTBOX DIALOG 0, 0, 187, 102 65 | STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 66 | CAPTION "About" 67 | FONT 9, "Segoe UI" 68 | BEGIN 69 | DEFPUSHBUTTON "OK",IDOK,130,81,50,14 70 | CTEXT "InstDrv Application v1.0\n\n(c) Copyright 2023",IDC_STATIC,25,57,78, 71 | 32 72 | ICON IDR_MAINFRAME,IDC_STATIC,55,26,18,20 73 | GROUPBOX "",IDC_STATIC,7,7,115,88 74 | END 75 | #line 75 76 | IDD_MAINDLG DIALOG 0, 0, 187, 98 77 | STYLE WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU 78 | CAPTION "InstDrv" 79 | FONT 9, "Segoe UI" 80 | BEGIN 81 | DEFPUSHBUTTON "OK",IDOK,130,7,50,14 82 | PUSHBUTTON "Cancel",IDCANCEL,130,24,50,14 83 | PUSHBUTTON "&About",ID_APP_ABOUT,130,77,50,14 84 | END 85 | #line 88 86 | ///////////////////////////////////////////////////////////////////////////// 87 | // 88 | // DESIGNINFO 89 | // 90 | #line 93 91 | #ifdef APSTUDIO_INVOKED 92 | GUIDELINES DESIGNINFO 93 | BEGIN 94 | IDD_ABOUTBOX, DIALOG 95 | BEGIN 96 | LEFTMARGIN, 7 97 | RIGHTMARGIN, 180 98 | TOPMARGIN, 7 99 | BOTTOMMARGIN, 95 100 | END 101 | #line 104 102 | IDD_MAINDLG, DIALOG 103 | BEGIN 104 | LEFTMARGIN, 7 105 | RIGHTMARGIN, 180 106 | TOPMARGIN, 7 107 | BOTTOMMARGIN, 91 108 | END 109 | END 110 | #endif // APSTUDIO_INVOKED 111 | #line 115 112 | ///////////////////////////////////////////////////////////////////////////// 113 | // 114 | // Accelerator 115 | // 116 | #line 120 117 | IDR_MAINFRAME ACCELERATORS 118 | BEGIN 119 | "N", ID_FILE_NEW, VIRTKEY, CONTROL 120 | "O", ID_FILE_OPEN, VIRTKEY, CONTROL 121 | "S", ID_FILE_SAVE, VIRTKEY, CONTROL 122 | "P", ID_FILE_PRINT, VIRTKEY, CONTROL 123 | "Z", ID_EDIT_UNDO, VIRTKEY, CONTROL 124 | "X", ID_EDIT_CUT, VIRTKEY, CONTROL 125 | "C", ID_EDIT_COPY, VIRTKEY, CONTROL 126 | "V", ID_EDIT_PASTE, VIRTKEY, CONTROL 127 | VK_BACK, ID_EDIT_UNDO, VIRTKEY, ALT 128 | VK_DELETE, ID_EDIT_CUT, VIRTKEY, SHIFT 129 | VK_INSERT, ID_EDIT_COPY, VIRTKEY, CONTROL 130 | VK_INSERT, ID_EDIT_PASTE, VIRTKEY, SHIFT 131 | VK_F6, ID_NEXT_PANE, VIRTKEY 132 | VK_F6, ID_PREV_PANE, VIRTKEY, SHIFT 133 | END 134 | #line 139 135 | ///////////////////////////////////////////////////////////////////////////// 136 | // 137 | // Version 138 | // 139 | #line 144 140 | VS_VERSION_INFO VERSIONINFO 141 | FILEVERSION 1,0,0,1 142 | PRODUCTVERSION 1,0,0,1 143 | FILEFLAGSMASK 0x3fL 144 | #ifdef _DEBUG 145 | FILEFLAGS 0x1L 146 | #else 147 | FILEFLAGS 0x0L 148 | #endif 149 | FILEOS 0x4L 150 | FILETYPE 0x2L 151 | FILESUBTYPE 0x0L 152 | BEGIN 153 | BLOCK "StringFileInfo" 154 | BEGIN 155 | BLOCK "040904B0" 156 | BEGIN 157 | VALUE "CompanyName", "\0" 158 | VALUE "FileDescription", "InstDrv Module\0" 159 | VALUE "FileVersion", "1, 0, 0, 1\0" 160 | VALUE "InternalName", "InstDrv\0" 161 | VALUE "LegalCopyright", "Copyright 2023\0" 162 | VALUE "OriginalFilename", "InstDrv.exe\0" 163 | VALUE "ProductName", "InstDrv Module\0" 164 | VALUE "ProductVersion", "1, 0, 0, 1\0" 165 | END 166 | END 167 | BLOCK "VarFileInfo" 168 | BEGIN 169 | VALUE "Translation", 0x0409, 0x04B0 170 | END 171 | END 172 | #line 177 173 | ///////////////////////////////////////////////////////////////////////////// 174 | // 175 | // String Table 176 | // 177 | #line 182 178 | STRINGTABLE 179 | BEGIN 180 | IDR_MAINFRAME "InstDrv" 181 | END 182 | #line 187 183 | STRINGTABLE 184 | BEGIN 185 | ID_FILE_NEW "Create a new document\nNew" 186 | ID_FILE_OPEN "Open an existing document\nOpen" 187 | ID_FILE_CLOSE "Close the active document\nClose" 188 | ID_FILE_SAVE "Save the active document\nSave" 189 | ID_FILE_SAVE_AS "Save the active document with a new name\nSave As" 190 | ID_FILE_PAGE_SETUP "Change the printing options\nPage Setup" 191 | ID_FILE_PRINT_SETUP "Change the printer and printing options\nPrint Setup" 192 | ID_FILE_PRINT "Print the active document\nPrint" 193 | ID_FILE_PRINT_PREVIEW "Display full pages\nPrint Preview" 194 | END 195 | #line 200 196 | STRINGTABLE 197 | BEGIN 198 | ID_APP_ABOUT "Display program information, version number and copyright\nAbout" 199 | ID_APP_EXIT "Quit the application; prompts to save documents\nExit" 200 | END 201 | #line 206 202 | STRINGTABLE 203 | BEGIN 204 | ID_NEXT_PANE "Switch to the next window pane\nNext Pane" 205 | ID_PREV_PANE "Switch back to the previous window pane\nPrevious Pane" 206 | END 207 | #line 212 208 | STRINGTABLE 209 | BEGIN 210 | ID_WINDOW_NEW "Open another window for the active document\nNew Window" 211 | ID_WINDOW_ARRANGE "Arrange icons at the bottom of the window\nArrange Icons" 212 | ID_WINDOW_CASCADE "Arrange windows so they overlap\nCascade Windows" 213 | ID_WINDOW_TILE_HORZ "Arrange windows as non-overlapping tiles\nTile Windows" 214 | ID_WINDOW_TILE_VERT "Arrange windows as non-overlapping tiles\nTile Windows" 215 | ID_WINDOW_SPLIT "Split the active window into panes\nSplit" 216 | END 217 | #line 222 218 | STRINGTABLE 219 | BEGIN 220 | ID_EDIT_CLEAR "Erase the selection\nErase" 221 | ID_EDIT_CLEAR_ALL "Erase everything\nErase All" 222 | ID_EDIT_COPY "Copy the selection and put it on the Clipboard\nCopy" 223 | ID_EDIT_CUT "Cut the selection and put it on the Clipboard\nCut" 224 | ID_EDIT_FIND "Find the specified text\nFind" 225 | ID_EDIT_PASTE "Insert Clipboard contents\nPaste" 226 | ID_EDIT_REPEAT "Repeat the last action\nRepeat" 227 | ID_EDIT_REPLACE "Replace specific text with different text\nReplace" 228 | ID_EDIT_SELECT_ALL "Select the entire document\nSelect All" 229 | ID_EDIT_UNDO "Undo the last action\nUndo" 230 | ID_EDIT_REDO "Redo the previously undone action\nRedo" 231 | END 232 | #line 237 233 | STRINGTABLE 234 | BEGIN 235 | ATL_IDS_SCSIZE "Change the window size" 236 | ATL_IDS_SCMOVE "Change the window position" 237 | ATL_IDS_SCMINIMIZE "Reduce the window to an icon" 238 | ATL_IDS_SCMAXIMIZE "Enlarge the window to full size" 239 | ATL_IDS_SCNEXTWINDOW "Switch to the next document window" 240 | ATL_IDS_SCPREVWINDOW "Switch to the previous document window" 241 | ATL_IDS_SCCLOSE "Close the active window and prompts to save the documents" 242 | END 243 | #line 248 244 | STRINGTABLE 245 | BEGIN 246 | ATL_IDS_SCRESTORE "Restore the window to normal size" 247 | ATL_IDS_SCTASKLIST "Activate Task List" 248 | ATL_IDS_MDICHILD "Activate this window" 249 | END 250 | #line 255 251 | STRINGTABLE 252 | BEGIN 253 | ATL_IDS_IDLEMESSAGE "Ready" 254 | ATL_IDS_MRU_FILE "Open this document" 255 | END 256 | #line 261 257 | #endif // English (U.S.) resources 258 | ///////////////////////////////////////////////////////////////////////////// 259 | #line 265 260 | #ifndef APSTUDIO_INVOKED 261 | #endif // not APSTUDIO_INVOKED 262 | --------------------------------------------------------------------------------