ReactOS
0.4.15-dev-8636-g945e856
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
12
_tWinMain
(
HINSTANCE
hCurInst,
13
HINSTANCE
hPrevInst,
14
LPTSTR
lpsCmdLine,
15
int
nCmdShow)
16
{
17
TCHAR
szPath
[
MAX_PATH
];
18
19
if
(
GetWindowsDirectory
(
szPath
,
MAX_PATH
))
20
{
21
PathAppend
(
szPath
,
REGEDIT
);
22
ShellExecute
(
NULL
,
23
NULL
,
24
szPath
,
25
lpsCmdLine,
26
NULL
,
27
nCmdShow);
28
}
29
else
30
{
31
ShellExecute
(
NULL
,
32
NULL
,
33
REGEDIT
,
34
lpsCmdLine,
35
NULL
,
36
nCmdShow);
37
}
38
39
return
0;
40
}
NULL
#define NULL
Definition:
types.h:112
MAX_PATH
#define MAX_PATH
Definition:
compat.h:34
_tWinMain
#define _tWinMain
Definition:
tchar.h:498
void
Definition:
nsiface.idl:2307
szPath
LPCWSTR szPath
Definition:
env.c:37
REGEDIT
#define REGEDIT
Definition:
regedt32.c:8
shellapi.h
ShellExecute
#define ShellExecute
Definition:
shellapi.h:693
shlwapi.h
PathAppend
#define PathAppend
Definition:
shlwapi.h:801
GetWindowsDirectory
#define GetWindowsDirectory
Definition:
winbase.h:3857
WINAPI
#define WINAPI
Definition:
msvc.h:6
TCHAR
char TCHAR
Definition:
xmlstorage.h:189
LPTSTR
CHAR * LPTSTR
Definition:
xmlstorage.h:192
base
applications
regedt32
regedt32.c
Generated on Tue Sep 10 2024 06:02:27 for ReactOS by
1.9.6