#include <apitest.h>
#include <atlbase.h>
#include <atlcom.h>
#include <guiddef.h>
Go to the source code of this file.
|
| DEFINE_GUID (CLSID_FadeTask, 0x7EB5FBE4, 0x2100, 0x49E6, 0x85, 0x93, 0x17, 0xE1, 0x30, 0x12, 0x2F, 0x91) |
|
static void | Test_Dim () |
|
| START_TEST (ShellDimScreen) |
|
◆ INITGUID
◆ INVALID_POINTER
◆ tShellDimScreen
◆ DEFINE_GUID()
DEFINE_GUID |
( |
CLSID_FadeTask |
, |
|
|
0x7EB5FBE4 |
, |
|
|
0x2100 |
, |
|
|
0x49E6 |
, |
|
|
0x85 |
, |
|
|
0x93 |
, |
|
|
0x17 |
, |
|
|
0xE1 |
, |
|
|
0x30 |
, |
|
|
0x12 |
, |
|
|
0x2F |
, |
|
|
0x91 |
|
|
) |
| |
◆ START_TEST()
Definition at line 105 of file ShellDimScreen.cpp.
106{
110 {
111 skip(
"msgina!#16 not found, skipping tests\n");
112 return;
113 }
115}
tShellDimScreen ShellDimScreen
HRESULT(__stdcall * tShellDimScreen)(IUnknown **Unknown, HWND *hWindow)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
#define MAKEINTRESOURCEA(i)
◆ Test_Dim()
Definition at line 23 of file ShellDimScreen.cpp.
24{
28
31
36 ok(
IsWindow(wnd),
"Expected a valid window\n");
38
40 {
42 ok(
count == 0,
"Expected count to be 0, was: %lu\n",
count);
43 ok(!
IsWindow(wnd),
"Expected the window to be destroyed\n");
44 }
45
52 ok(
IsWindow(wnd),
"Expected a valid window\n");
56 ok(nRet == 17,
"Expected GetClassName to return 3 was %i\n", nRet);
60 ok(
style == expectedstyle,
"Expected style to be %lx, was %lx\n", expectedstyle,
style);
63
65 {
67 ok(
count == 2,
"Expected count to be 2, was: %lu\n",
count);
69 ok(
count == 1,
"Expected count to be 1, was: %lu\n",
count);
70
75 {
76 ok(unk2 == unk,
"Expected the object to be the same, was: %p, %p\n", unk, unk2);
78 }
82 {
83 ok(unk2 == unk,
"Expected the object to be the same, was: %p, %p\n", unk, unk2);
85 }
86 }
87
90
95
97 {
99 ok(
count == 0,
"Expected count to be 0, was: %lu\n",
count);
100 ok(!
IsWindow(wnd),
"Expected the window to be destroyed\n");
101 }
102}
int strcmp(const char *String1, const char *String2)
#define ok_hex(expression, result)
GLuint GLuint GLsizei count
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
BOOL WINAPI IsWindow(_In_opt_ HWND)
#define SM_CYVIRTUALSCREEN
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI GetClassNameA(_In_ HWND hWnd, _Out_writes_to_(nMaxCount, return) LPSTR lpClassName, _In_ int nMaxCount)
#define SM_CXVIRTUALSCREEN
#define SM_XVIRTUALSCREEN
BOOL WINAPI IsWindowVisible(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
#define SM_YVIRTUALSCREEN
Referenced by START_TEST().
◆ ShellDimScreen