ReactOS
0.4.16-dev-433-g6363f78
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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:694
shlwapi.h
PathAppend
#define PathAppend
Definition:
shlwapi.h:827
GetWindowsDirectory
#define GetWindowsDirectory
Definition:
winbase.h:3882
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 Jan 7 2025 06:07:01 for ReactOS by
1.9.6