aboutsummaryrefslogtreecommitdiff
path: root/examples/driver-flatbuffers.bat
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-07-16 10:39:26 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-16 10:39:26 +0200
commit0883ee7ce77df4649f8a4fc10bd22164649e2883 (patch)
tree322e038874217119d4215c4c9308dafedfb06de8 /examples/driver-flatbuffers.bat
parentb31e4bc16d1df62b50c6f77a77041f9e7b6c906d (diff)
Added flatcc (C flatbuffers implementation).
* lightweight && faster than protocol buffers as well as it's C implementation (protobuf-c) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/driver-flatbuffers.bat')
-rw-r--r--examples/driver-flatbuffers.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/driver-flatbuffers.bat b/examples/driver-flatbuffers.bat
new file mode 100644
index 0000000..c9eaea8
--- /dev/null
+++ b/examples/driver-flatbuffers.bat
@@ -0,0 +1,27 @@
+@echo off
+set SERVICE_NAME=flatbuffers
+set DRIVER="%~dp0\driver-flatbuffers.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