reactos/base/applications/regedt32/regedt32.c
Amine Khaldi c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00

38 lines
760 B
C

#include <windows.h>
#include <tchar.h>
#include <shellapi.h>
#include <shlwapi.h>
#define REGEDIT _T("regedit.exe")
int
WINAPI
_tWinMain(HINSTANCE hCurInst,
HINSTANCE hPrevInst,
LPTSTR lpsCmdLine,
int nCmdShow)
{
TCHAR szPath[MAX_PATH];
if(GetWindowsDirectory(szPath, MAX_PATH))
{
PathAppend(szPath, REGEDIT);
ShellExecute(NULL,
NULL,
szPath,
lpsCmdLine,
NULL,
nCmdShow);
}
else
{
ShellExecute(NULL,
NULL,
REGEDIT,
lpsCmdLine,
NULL,
nCmdShow);
}
return 0;
}