Go to the source code of this file.
◆ START_TEST()
◆ Test1()
Definition at line 10 of file himc.c.
11{
14 HIMC hNewIMC, hOldIMC, hIMC, hIMC1, hIMC2;
16
17
19 ok(hNewIMC !=
NULL,
"ImmCreateContext failed\n");
21 ok(pIC ==
NULL,
"ImmLockIMC succeeded unexpectedly\n");
24
25
27 ok(hIMC ==
NULL,
"ImmGetContext failed\n");
28
29
34
35
39 ok(hwndStatic !=
NULL,
"CreateWindowW failed\n");
40
41
43 ok(hIMC !=
NULL,
"ImmGetContext failed\n");
45 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
47 {
55 }
56 else
57 {
59 }
63 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
65 {
68 }
69 else
70 {
72 }
76 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
78 {
80 }
81 else
82 {
84 }
88 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
90 {
92 }
93 else
94 {
96 }
99
101 ok(hIMC !=
NULL,
"ImmGetContext failed\n");
103 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
105 {
112 }
113 else
114 {
116 }
119
120 ok(hIMC1 == hIMC2,
"hIMC1 = %p, expected %p\n", hIMC1, hIMC2);
121
122
124 ok(hNewIMC !=
NULL,
"ImmCreateContext failed \n");
126 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
129 ok(hNewIMC != hOldIMC,
"hNewIMC = %p, expected not %p\n", hNewIMC, hOldIMC);
131 ok(hIMC == hNewIMC,
"hIMC = %p, expected %p\n", hIMC, hNewIMC);
132 ok(hIMC != hOldIMC,
"hIMC = %p, expected not %p\n", hIMC, hOldIMC);
134 ok(pIC !=
NULL,
"ImmLockIMC failed\n");
136 {
143 }
144 else
145 {
147 }
151
154}
BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
BOOL WINAPI ImmUnlockIMC(HIMC hIMC)
HIMC WINAPI ImmCreateContext(void)
HIMC WINAPI ImmGetContext(HWND hWnd)
BOOL WINAPI ImmDestroyContext(HIMC hIMC)
BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
LPINPUTCONTEXT WINAPI ImmLockIMC(HIMC hIMC)
HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
DWORD WINAPI ImmGetIMCCSize(HIMCC imcc)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)
Referenced by InitTests(), START_TEST(), and SymlinkCreateTests().
◆ Test2()
Definition at line 156 of file himc.c.
157{
158 static const LPCSTR apszClasses[] =
159 {
160 "BUTTON",
161 "COMBOBOX",
162 "EDIT",
163 "LISTBOX",
164 "SCROLLBAR",
165 "STATIC"
166 };
170
172 {
173 LPCSTR pszClass = apszClasses[
i];
176 ok(
hwnd !=
NULL,
"CreateWindow(%s) failed\n", pszClass);
177
179
181 ok(hIMC ==
NULL,
"hIMC was %p\n", hIMC);
182 else
183 ok(hIMC !=
NULL,
"hIMC was NULL\n");
184
186
188 }
189}
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Referenced by START_TEST().