ReactOS  0.4.12-dev-43-g63b00d8
regedt32.c
Go to the documentation of this file.
1 #define WIN32_NO_STATUS
2 #define WIN32_LEAN_AND_MEAN
3 #include <windows.h>
4 #include <tchar.h>
5 #include <shellapi.h>
6 #include <shlwapi.h>
7 
8 #define REGEDIT _T("regedit.exe")
9 
10 int
11 WINAPI
13  HINSTANCE hPrevInst,
14  LPTSTR lpsCmdLine,
15  int nCmdShow)
16 {
18 
19  if(GetWindowsDirectory(szPath, MAX_PATH))
20  {
21  PathAppend(szPath, REGEDIT);
23  NULL,
24  szPath,
25  lpsCmdLine,
26  NULL,
27  nCmdShow);
28  }
29  else
30  {
32  NULL,
33  REGEDIT,
34  lpsCmdLine,
35  NULL,
36  nCmdShow);
37  }
38 
39  return 0;
40 }
#define PathAppend
Definition: shlwapi.h:801
CHAR * LPTSTR
Definition: xmlstorage.h:192
int WINAPI _tWinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPTSTR lpsCmdLine, int nCmdShow)
Definition: regedt32.c:12
#define ShellExecute
Definition: shellapi.h:679
smooth NULL
Definition: ftsmooth.c:416
char TCHAR
Definition: xmlstorage.h:189
#define REGEDIT
Definition: regedt32.c:8
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:20
LPCWSTR szPath
Definition: env.c:35
#define GetWindowsDirectory
Definition: winbase.h:3671