diff options
Diffstat (limited to 'ext/detours/samples/echo/main.cpp')
-rw-r--r-- | ext/detours/samples/echo/main.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/detours/samples/echo/main.cpp b/ext/detours/samples/echo/main.cpp new file mode 100644 index 0000000..0216875 --- /dev/null +++ b/ext/detours/samples/echo/main.cpp @@ -0,0 +1,24 @@ +// +// +// +#include <windows.h> + +int WINAPI Echo(PCSTR pszMsg); + +extern "C" int __stdcall mainCRTStartup(HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nCmdShow + ) +{ + (void)hInstance; + (void)hPrevInstance; + (void)lpCmdLine; + (void)nCmdShow; + + Echo("Hello World"); + Echo("Goodbye World"); + + return 0x99; +} + |