From a5b57010ee3ade84f58c211e78bb3d4ed5d5a3a6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 3 Mar 2013 09:54:55 +0000 Subject: added projects git-svn-id: http://svn.miranda-ng.org/main/trunk@3859 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotifyAnything/sendlog/src/SendLogWin.cpp | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/NotifyAnything/sendlog/src/SendLogWin.cpp (limited to 'plugins/NotifyAnything/sendlog/src/SendLogWin.cpp') diff --git a/plugins/NotifyAnything/sendlog/src/SendLogWin.cpp b/plugins/NotifyAnything/sendlog/src/SendLogWin.cpp new file mode 100644 index 0000000000..a153bc45d8 --- /dev/null +++ b/plugins/NotifyAnything/sendlog/src/SendLogWin.cpp @@ -0,0 +1,26 @@ +#include "Common.h" + +void implementation(int argc, char **argv, bool console); + +int main(int argc, char **argv) +try +{ + if (argc == 1 || argc == 2 && !strcmp("/?", argv[1])) { + MessageBox(NULL, "Syntax: sendlog32 [-T] [-H host] [-P port] text\n" + "\tSends single text message.", "Sendlog32", MB_OK); + return 0; + } + + implementation(argc, argv, false); +} +catch (DWORD err) { + LPVOID lpMsgBuf; + FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &lpMsgBuf, 0, NULL); + + MessageBox(NULL, (LPCTSTR)lpMsgBuf, "sendlog32", MB_OK); + + LocalFree(lpMsgBuf); + + return 1; +} -- cgit v1.2.3