diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-09 17:50:28 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-09 18:24:21 +0200 |
commit | 51521cb642358770e94b8f9b4f40dd3b4c827cad (patch) | |
tree | 4795b8bffcdf2b628d9c9be15a4ebb1150f9f760 /examples/dpp-example-cplusplus.bat | |
parent | 3be8cccbdbb548a4538d23470aa20e65b33e7815 (diff) |
Repository clean up, renamed ddk-template* to dpp-example*.
* Improved/Added root and examples Makefile
* Adapted CIs
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/dpp-example-cplusplus.bat')
-rwxr-xr-x | examples/dpp-example-cplusplus.bat | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/dpp-example-cplusplus.bat b/examples/dpp-example-cplusplus.bat new file mode 100755 index 0000000..d19d3bf --- /dev/null +++ b/examples/dpp-example-cplusplus.bat @@ -0,0 +1,27 @@ +@echo off +set SERVICE_NAME=DPP-Example-CPlusPlus +set DRIVER="%~dp0\dpp-example-cplusplus.sys" + +net session >nul 2>&1 +if NOT %ERRORLEVEL% EQU 0 ( + echo ERROR: This script requires Administrator privileges! + pause + exit /b 1 +) + +echo --------------------------------------- +echo -- Service Name: %SERVICE_NAME% +echo -- Driver......: %DRIVER% +echo --------------------------------------- + +sc create %SERVICE_NAME% binPath= %DRIVER% type= kernel +echo --------------------------------------- +sc start %SERVICE_NAME% +echo --------------------------------------- +sc query %SERVICE_NAME% +echo [PRESS A KEY TO STOP THE DRIVER] +pause +sc stop %SERVICE_NAME% +sc delete %SERVICE_NAME% +echo Done. +timeout /t 3 |