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 11 of file CopyImage.c.
◆ LR_UNKNOWN_0x10000
#define LR_UNKNOWN_0x10000 0x10000 |
◆ CreateTestImage()
Definition at line 19 of file CopyImage.c.
20{
22 switch (uType)
23 {
25 {
29 break;
30 }
33 break;
36 break;
37 }
38 return hImage;
39}
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().
◆ START_TEST()
Definition at line 79 of file CopyImage.c.
80{
84}
static VOID Test_CopyImage_Flags(UINT uType)
◆ Test_CopyImage_Flags()
static VOID Test_CopyImage_Flags |
( |
UINT |
uType | ) |
|
|
static |
Definition at line 42 of file CopyImage.c.
43{
45 HANDLE hImage, hCopiedImage;
46
49
52 {
53 uBit = (1 << iBit);
54
56 hCopiedImage =
CopyImage(hImage, uType, 0, 0, uBit);
57
58 if (uValidFlags & uBit)
59 {
60 ok(hCopiedImage !=
NULL,
"iBit %u: uType %u: hCopiedImage was NULL\n", iBit, uType);
61 }
62 else
63 {
64 ok(hCopiedImage ==
NULL,
"iBit %u: uType %u: hCopiedImage was %p\n", iBit, uType, hCopiedImage);
66 }
67
68 if (hCopiedImage)
70
71
74 }
75
77}
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().