From da4305f0d27b46f04674deeb30f8919a008b1365 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 31 Jan 2009 13:21:11 +0000 Subject: [PATCH] add lodctr svn path=/trunk/; revision=39231 --- .../cmdutils/lodctr/lodctr.rbuild | 8 ++++++ .../cmdutils/lodctr/lodctr_main.c | 25 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 reactos/base/applications/cmdutils/lodctr/lodctr.rbuild create mode 100644 reactos/base/applications/cmdutils/lodctr/lodctr_main.c diff --git a/reactos/base/applications/cmdutils/lodctr/lodctr.rbuild b/reactos/base/applications/cmdutils/lodctr/lodctr.rbuild new file mode 100644 index 00000000000..099497e467d --- /dev/null +++ b/reactos/base/applications/cmdutils/lodctr/lodctr.rbuild @@ -0,0 +1,8 @@ + + + + kernel32 + loadperf + wine + lodctr_main.c + diff --git a/reactos/base/applications/cmdutils/lodctr/lodctr_main.c b/reactos/base/applications/cmdutils/lodctr/lodctr_main.c new file mode 100644 index 00000000000..de5d242b4d9 --- /dev/null +++ b/reactos/base/applications/cmdutils/lodctr/lodctr_main.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2009 Andrey Turkin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include +#include + +int wmain(int argc, WCHAR *argv[]) +{ + return LoadPerfCounterTextStringsW(GetCommandLineW(), FALSE); +}