Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenrun.c
Go to the documentation of this file.
00001 /* 00002 * ReactOS Task Manager 00003 * 00004 * run.c 00005 * 00006 * Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org> 00007 * 2005 Klemens Friedl <frik85@reactos.at> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #include <precomp.h> 00025 00026 void TaskManager_OnFileNew(void) 00027 { 00028 HMODULE hShell32; 00029 RUNFILEDLG RunFileDlg; 00030 WCHAR szTitle[40]; 00031 WCHAR szText[256]; 00032 00033 /* Load language strings from resource file */ 00034 LoadStringW(hInst, IDS_CREATENEWTASK, szTitle, sizeof(szTitle) / sizeof(szTitle[0])); 00035 LoadStringW(hInst, IDS_CREATENEWTASK_DESC, szText, sizeof(szText) / sizeof(szText[0])); 00036 00037 00038 hShell32 = LoadLibraryW(L"SHELL32.DLL"); 00039 RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (LPCSTR)0x3D); 00040 00041 /* Show "Run..." dialog */ 00042 if (RunFileDlg) 00043 { 00044 /* NOTE - don't check whether running on win 9x or NT, let's just 00045 assume that a unicode build only runs on NT */ 00046 RunFileDlg(hMainWnd, 0, NULL, NULL, szText, RFF_CALCDIRECTORY); 00047 } 00048 00049 FreeLibrary(hShell32); 00050 } Generated on Sat May 26 2012 04:16:29 for ReactOS by
1.7.6.1
|