Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenregedt32.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
1.7.6.1
|