Go to the source code of this file.
◆ COPYIMAGE_VALID_FLAGS
Value: ( \
)
#define LR_LOADTRANSPARENT
#define LR_COPYFROMRESOURCE
#define LR_CREATEDIBSECTION
#define LR_LOADMAP3DCOLORS
Definition at line 12 of file CopyImage.c.
◆ LR_UNKNOWN_0x10000
#define LR_UNKNOWN_0x10000 0x10000 |
◆ CreateTestImage()
Definition at line 20 of file CopyImage.c.
21{
23 switch (uType)
24 {
26 {
30 break;
31 }
34 break;
37 break;
38 }
39 return hImage;
40}
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by Test_CopyImage_Flags(), and Test_CopyImage_hImage_NULL().
◆ START_TEST()
Definition at line 131 of file CopyImage.c.
132{
137}
static VOID Test_CopyImage_Flags(UINT uType)
static VOID Test_CopyImage_hImage_NULL(void)
◆ Test_CopyImage_Flags()
static VOID Test_CopyImage_Flags |
( |
UINT |
uType | ) |
|
|
static |
Definition at line 43 of file CopyImage.c.
44{
46 HANDLE hImage, hCopiedImage;
47
50
53 {
54 uBit = (1 << iBit);
55
57 hCopiedImage =
CopyImage(hImage, uType, 0, 0, uBit);
58
59 if (uValidFlags & uBit)
60 {
61 ok(hCopiedImage !=
NULL,
"iBit %u: uType %u: hCopiedImage was NULL\n", iBit, uType);
62 }
63 else
64 {
65 ok(hCopiedImage ==
NULL,
"iBit %u: uType %u: hCopiedImage was %p\n", iBit, uType, hCopiedImage);
67 }
68
69 if (hCopiedImage)
71
72
75 }
76
78}
static HANDLE CreateTestImage(UINT uType)
#define COPYIMAGE_VALID_FLAGS
#define LR_UNKNOWN_0x10000
#define ERROR_INVALID_PARAMETER
VERSIONHELPERAPI IsWindowsVistaOrGreater()
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
Referenced by START_TEST().
◆ Test_CopyImage_hImage_NULL()
static VOID Test_CopyImage_hImage_NULL |
( |
void |
| ) |
|
|
static |
Definition at line 81 of file CopyImage.c.
82{
85
86
91 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
92
97 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
98
99
104 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
105
106
108
112 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
113
114
119 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
120
121
127 ok(!hImg,
"Image returned should have been NULL, hImg was %p\n", hImg);
129}
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetLastError(void)
#define ERROR_INVALID_CURSOR_HANDLE
Referenced by START_TEST().