diff options
Diffstat (limited to 'ext/detours/samples/echo/echonul.cpp')
-rw-r--r-- | ext/detours/samples/echo/echonul.cpp | 18 |
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; +} |