ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

regedt32.c
Go to the documentation of this file.
00001 #include <windows.h>
00002 #include <tchar.h>
00003 #include <shellapi.h>
00004 #include <shlwapi.h>
00005 
00006 #define REGEDIT  _T("regedit.exe")
00007 
00008 int
00009 WINAPI
00010 _tWinMain(HINSTANCE hCurInst,
00011           HINSTANCE hPrevInst,
00012           LPTSTR lpsCmdLine,
00013           int nCmdShow)
00014 {
00015     TCHAR szPath[MAX_PATH];
00016 
00017     if(GetWindowsDirectory(szPath, MAX_PATH))
00018     {
00019         PathAppend(szPath, REGEDIT);
00020         ShellExecute(NULL,
00021                      NULL,
00022                      szPath,
00023                      lpsCmdLine,
00024                      NULL,
00025                      nCmdShow);
00026     }
00027     else
00028     {
00029         ShellExecute(NULL,
00030                      NULL,
00031                      REGEDIT,
00032                      lpsCmdLine,
00033                      NULL,
00034                      nCmdShow);
00035     }
00036 
00037     return 0;
00038 }

Generated on Sun May 27 2012 04:17:42 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.