ReactOS
0.4.16-dev-1210-gbc03c01
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
m
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
_
a
b
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
NtGdiDdDeleteDirectDrawObject.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS api tests
3
* LICENSE: GPL - See COPYING in the top level directory
4
* PURPOSE: Test for NtGdiDdDeleteDirectDrawObject
5
* PROGRAMMERS:
6
*/
7
8
#include "../win32nt.h"
9
10
START_TEST
(
NtGdiDdDeleteDirectDrawObject
)
11
{
12
HANDLE
hDirectDraw;
13
HDC
hdc
=
CreateDCW
(
L
"DISPLAY"
,
NULL
,
NULL
,
NULL
);
14
ok
(
hdc
!=
NULL
,
"CreateDCW() failed\n"
);
15
16
ok
(
NtGdiDdDeleteDirectDrawObject
(
NULL
) ==
FALSE
,
17
"NtGdiDdDeleteDirectDrawObject() succeeded on NULL object\n"
);
18
19
if
(
hdc
==
NULL
)
20
{
21
skip
(
"No DC\n"
);
22
return
;
23
}
24
25
hDirectDraw =
NtGdiDdCreateDirectDrawObject
(
hdc
);
26
ok
(hDirectDraw !=
NULL
,
"NtGdiDdCreateDirectDrawObject() failed\n"
);
27
28
if
(hDirectDraw ==
NULL
)
29
{
30
skip
(
"No DirectDrawObject\n"
);
31
ok
(
DeleteDC
(
hdc
) != 0,
"DeleteDC() failed\n"
);
32
return
;
33
}
34
35
ok
(
NtGdiDdDeleteDirectDrawObject
(hDirectDraw) ==
TRUE
,
36
"NtGdiDdDeleteDirectDrawObject() failed on existing object\n"
);
37
ok
(
NtGdiDdDeleteDirectDrawObject
(hDirectDraw) ==
FALSE
,
38
"NtGdiDdDeleteDirectDrawObject() succeeded on deleted object\n"
);
39
40
ok
(
DeleteDC
(
hdc
) != 0,
"DeleteDC() failed\n"
);
41
}
ok
#define ok(value,...)
Definition:
atltest.h:57
skip
#define skip(...)
Definition:
atltest.h:64
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
void
Definition:
nsiface.idl:2307
hdc
HDC hdc
Definition:
main.c:9
HDC
static HDC
Definition:
imagelist.c:88
NtGdiDdDeleteDirectDrawObject
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(_In_ HANDLE hDirectDrawLocal)
NtGdiDdCreateDirectDrawObject
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdCreateDirectDrawObject(_In_ HDC hdc)
L
#define L(x)
Definition:
ntvdm.h:50
DeleteDC
BOOL WINAPI DeleteDC(_In_ HDC)
CreateDCW
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
modules
rostests
apitests
win32nt
ntdd
NtGdiDdDeleteDirectDrawObject.c
Generated on Fri May 30 2025 06:09:30 for ReactOS by
1.9.6