Go to the source code of this file.
|
static ATOM | _RegisterClass (LPCWSTR lpwszClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc) |
|
static ATOM | _GetClassAtom (LPCWSTR lpwszClassName, HINSTANCE hInstance) |
|
static WNDPROC | _GetWndproc (LPCWSTR lpwszClassName, HINSTANCE hInstance) |
|
static ATOM | _RegisterClassA (LPCSTR lpzClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc) |
|
static ATOM | _GetClassAtomA (LPCSTR lpszClassName, HINSTANCE hInstance) |
|
static WNDPROC | _GetWndprocA (LPCSTR lpszClassName, HINSTANCE hInstance) |
|
HANDLE | _CreateActCtxFromFile (LPCWSTR FileName) |
|
VOID | TestGlobalClasses (VOID) |
|
VOID | TestVersionedClasses (VOID) |
|
| START_TEST (RegisterClassEx) |
|
◆ _CreateActCtxFromFile()
Definition at line 52 of file RegisterClassEx.c.
53{
54 ACTCTXW
ActCtx = {
sizeof(ACTCTX)};
56
61
63
65}
static const WCHAR separator[]
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
_In_ PCWSTR _Out_ PVOID * ActCtx
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
Referenced by TestVersionedClasses().
◆ _GetClassAtom()
◆ _GetClassAtomA()
◆ _GetWndproc()
◆ _GetWndprocA()
◆ _RegisterClass()
◆ _RegisterClassA()
◆ START_TEST()
Definition at line 278 of file RegisterClassEx.c.
279{
282}
VOID TestVersionedClasses(VOID)
VOID TestGlobalClasses(VOID)
◆ TestGlobalClasses()
Definition at line 67 of file RegisterClassEx.c.
68{
71
82
93
103
116
129
135 ok(
a != 0,
"Wrong value for a. Expected != 0, got 0\n");
136 ok(
b == 0,
"Wrong value for b. Expected == 0, got %d\n",
b);
137
138
139
140
141
147
157}
static ATOM _GetClassAtom(LPCWSTR lpwszClassName, HINSTANCE hInstance)
static ATOM _RegisterClass(LPCWSTR lpwszClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
static PEXPLICIT_ACCESSW *static HMODULE hmod
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
Referenced by START_TEST().
◆ TestVersionedClasses()
Definition at line 159 of file RegisterClassEx.c.
160{
165 WNDPROC proc1,proc2,proc3, proc4, proc5;
167
168
172 {
173 skip(
"Loading manifests failed. Skipping TestVersionedClasses\n");
174 return;
175 }
176
195 ok (proc2 ==
NULL,
"Got 0x%p, expected NULL\n", proc2);
199
218
230
237 ok (proc2 == 0,
"Got 0x%p for %S, expected 0\n", proc2,
buffer);
239
246 ok (proc2 == 0,
"Got 0x%p for %S, expected 0\n", proc2,
buffer);
247
258
260
270 ok (proc1 != 0,
"\n");
271 ok (proc2 != 0,
"\n");
272 ok (proc4 != 0,
"\n");
273 ok (proc1 == proc2,
"\n");
274 ok (proc1 == proc3,
"\n");
275
276}
static WNDPROC _GetWndprocA(LPCSTR lpszClassName, HINSTANCE hInstance)
static WNDPROC _GetWndproc(LPCWSTR lpwszClassName, HINSTANCE hInstance)
HANDLE _CreateActCtxFromFile(LPCWSTR FileName)
static ATOM _GetClassAtomA(LPCSTR lpszClassName, HINSTANCE hInstance)
static ATOM _RegisterClassA(LPCSTR lpzClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc)
#define INVALID_HANDLE_VALUE
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Referenced by START_TEST().