11#define COPYIMAGE_VALID_FLAGS ( \
12 LR_SHARED | LR_COPYFROMRESOURCE | LR_CREATEDIBSECTION | LR_LOADMAP3DCOLORS | 0x800 | \
13 LR_VGACOLOR | LR_LOADREALSIZE | LR_DEFAULTSIZE | LR_LOADTRANSPARENT | LR_LOADFROMFILE | \
14 LR_COPYDELETEORG | LR_COPYRETURNORG | LR_COLOR | LR_MONOCHROME \
17#define LR_UNKNOWN_0x10000 0x10000
45 HANDLE hImage, hCopiedImage;
56 hCopiedImage =
CopyImage(hImage, uType, 0, 0, uBit);
58 if (uValidFlags & uBit)
60 ok(hCopiedImage !=
NULL,
"iBit %u: uType %u: hCopiedImage was NULL\n", iBit, uType);
64 ok(hCopiedImage ==
NULL,
"iBit %u: uType %u: hCopiedImage was %p\n", iBit, uType, hCopiedImage);
static VOID Test_CopyImage_Flags(UINT uType)
static HANDLE CreateTestImage(UINT uType)
#define COPYIMAGE_VALID_FLAGS
#define LR_UNKNOWN_0x10000
#define ERROR_INVALID_PARAMETER
VERSIONHELPERAPI IsWindowsVistaOrGreater()
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI DeleteDC(_In_ HDC)
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)