ReactOS  0.4.12-dev-14-gd0c8636
regedt32.c File Reference
#include <windows.h>
#include <tchar.h>
#include <shellapi.h>
#include <shlwapi.h>
Include dependency graph for regedt32.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define WIN32_LEAN_AND_MEAN
 
#define REGEDIT   _T("regedit.exe")
 

Functions

int WINAPI _tWinMain (HINSTANCE hCurInst, HINSTANCE hPrevInst, LPTSTR lpsCmdLine, int nCmdShow)
 

Macro Definition Documentation

◆ REGEDIT

#define REGEDIT   _T("regedit.exe")

Definition at line 8 of file regedt32.c.

Referenced by _tWinMain().

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 2 of file regedt32.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 1 of file regedt32.c.

Function Documentation

◆ _tWinMain()

int WINAPI _tWinMain ( HINSTANCE  hCurInst,
HINSTANCE  hPrevInst,
LPTSTR  lpsCmdLine,
int  nCmdShow 
)

Definition at line 12 of file regedt32.c.

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
#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
LPCWSTR szPath
Definition: env.c:35
#define GetWindowsDirectory
Definition: winbase.h:3671