aboutsummaryrefslogtreecommitdiffhomepage
path: root/ext/detours/samples/echo/echonul.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/detours/samples/echo/echonul.cpp')
-rw-r--r--ext/detours/samples/echo/echonul.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/detours/samples/echo/echonul.cpp b/ext/detours/samples/echo/echonul.cpp
new file mode 100644
index 0000000..c05777d
--- /dev/null
+++ b/ext/detours/samples/echo/echonul.cpp
@@ -0,0 +1,18 @@
+//
+//
+//
+#include <windows.h>
+
+int WINAPI Echo(PCSTR pszMsg)
+{
+ int sum = 0;
+ while (*pszMsg) {
+ sum = sum + *pszMsg++;
+ }
+ return sum;
+}
+
+int main()
+{
+ return 0;
+}