6 #define REGEDIT _T("regedit.exe")
8 int WINAPI
_tWinMain(HINSTANCE hCurInst
, HINSTANCE hPrevInst
,
9 LPTSTR lpsCmdLine
, int nCmdShow
)
11 TCHAR szPath
[MAX_PATH
];
13 if(GetWindowsDirectory(szPath
, MAX_PATH
))
15 PathAppend(szPath
, REGEDIT
);
16 ShellExecute(NULL
, NULL
, szPath
, lpsCmdLine
, NULL
, nCmdShow
);
20 ShellExecute(NULL
, NULL
, REGEDIT
, lpsCmdLine
, NULL
, nCmdShow
);