49{
54
55
61
62
68 WCHAR bufMe[255] = {0};
72 ATOM atom, atom2, atom3;
74
78
91 memcpy(&wclex2, &wclex,
sizeof(wclex));
93
94
96 &cls,
97 &cls,
98 &clsMenuName,
99 0,
100 0,
103
104
106 &cls,
107 &ver_cls,
108 &clsMenuName,
109 0,
110 0,
112
114 &another_cls,
115 &another_cls,
116 &clsMenuName,
117 0,
118 0,
120
122 &cls,
124 &clsMenuName,
125 0,
126 0,
128
130 &cls,
131 &null_cls,
132 &clsMenuName,
133 0,
134 0,
136
139 TEST(atom == atom2 && (atom | atom2) != 0);
140
141
144
145
149 {
150
152
153
158
159
164
165
167 }
168
169
173 {
174
176
177
182
183
185
187
188
190 }
191
192
196
197
214
215
230
231
232
233
238 {
243 }
244
245
250
251
255}
LRESULT CALLBACK wndProc1(HWND hwnd, UINT msg, WPARAM wPrm, LPARAM lPrm)
LRESULT CALLBACK wndProc2(HWND hwnd, UINT msg, WPARAM wPrm, LPARAM lPrm)
static HWND CreateWnd(HINSTANCE hinst, PLARGE_STRING clsName, PLARGE_STRING clsVer, PLARGE_STRING wndName)
BOOL NTAPI NtUserGetClassInfo(HINSTANCE hInstance, PUNICODE_STRING ClassName, LPWNDCLASSEXW wcex, LPWSTR *ppszMenuName, BOOL Ansi)
PCLS NTAPI NtUserGetWOWClass(HINSTANCE hInstance, PUNICODE_STRING ClassName)
BOOL NTAPI NtUserUnregisterClass(PUNICODE_STRING ClassNameOrAtom, HINSTANCE hInstance, PCLSMENUNAME pClassMenuName)
INT NTAPI NtUserGetClassName(HWND hWnd, BOOL Real, PUNICODE_STRING ClassName)
RTL_ATOM NTAPI NtUserRegisterClassExWOW(WNDCLASSEXW *lpwcx, PUNICODE_STRING pustrClassName, PUNICODE_STRING pustrCVersion, PCLSMENUNAME pClassMenuName, DWORD fnID, DWORD Flags, LPDWORD pWow)
ULONG_PTR NTAPI NtUserSetClassLong(_In_ HWND hWnd, _In_ INT Offset, _In_ ULONG dwNewLong, _In_ BOOL Ansi)
HWND NTAPI NtUserFindWindowEx(HWND hwndParent, HWND hwndChildAfter, PUNICODE_STRING ucClassName, PUNICODE_STRING ucWindowName, DWORD dwUnknown)
#define memcpy(s1, s2, n)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
DWORD WINAPI GetLastError(void)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define GetWindowLongPtrW
struct _WNDCLASSEXW WNDCLASSEXW
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
BOOL WINAPI DestroyWindow(_In_ HWND)