51 ok (
hres ==
S_OK,
"AtlModuleInit with %d failed (0x%x).\n",
i, (
int)
hres);
69 winmod.
cbSize =
sizeof(winmod);
79 ok(winmod.
m_pCreateWndList == create_data,
"winmod.m_pCreateWndList != create_data\n");
80 ok(create_data[0].m_pThis == (
void*)0xdead0001,
"unexpected create_data[0].m_pThis %p\n", create_data[0].m_pThis);
81 ok(create_data[0].m_dwThreadID ==
GetCurrentThreadId(),
"unexpected create_data[0].m_dwThreadID %x\n",
82 create_data[0].m_dwThreadID);
83 ok(!create_data[0].m_pNext,
"unexpected create_data[0].m_pNext %p\n", create_data[0].m_pNext);
86 ok(winmod.
m_pCreateWndList == create_data+1,
"winmod.m_pCreateWndList != create_data\n");
87 ok(create_data[1].m_pThis == (
void*)0xdead0002,
"unexpected create_data[1].m_pThis %p\n", create_data[1].m_pThis);
88 ok(create_data[1].m_dwThreadID ==
GetCurrentThreadId(),
"unexpected create_data[1].m_dwThreadID %x\n",
89 create_data[1].m_dwThreadID);
90 ok(create_data[1].m_pNext == create_data,
"unexpected create_data[1].m_pNext %p\n", create_data[1].m_pNext);
93 ok(winmod.
m_pCreateWndList == create_data+2,
"winmod.m_pCreateWndList != create_data\n");
94 ok(create_data[2].m_pThis == (
void*)0xdead0003,
"unexpected create_data[2].m_pThis %p\n", create_data[2].m_pThis);
95 ok(create_data[2].m_dwThreadID ==
GetCurrentThreadId(),
"unexpected create_data[2].m_dwThreadID %x\n",
96 create_data[2].m_dwThreadID);
97 ok(create_data[2].m_pNext == create_data+1,
"unexpected create_data[2].m_pNext %p\n", create_data[2].m_pNext);
100 ok(
p == (
void*)0xdead0003,
"unexpected AtlModuleExtractCreateWndData result %p\n",
p);
101 ok(winmod.
m_pCreateWndList == create_data+1,
"winmod.m_pCreateWndList != create_data\n");
102 ok(create_data[2].m_pNext == create_data+1,
"unexpected create_data[2].m_pNext %p\n", create_data[2].m_pNext);
107 ok(
p == (
void*)0xdead0001,
"unexpected AtlModuleExtractCreateWndData result %p\n",
p);
108 ok(winmod.
m_pCreateWndList == create_data+1,
"winmod.m_pCreateWndList != create_data\n");
109 ok(!create_data[0].m_pNext,
"unexpected create_data[0].m_pNext %p\n", create_data[0].m_pNext);
110 ok(!create_data[1].m_pNext,
"unexpected create_data[1].m_pNext %p\n", create_data[1].m_pNext);
113 ok(!
p,
"unexpected AtlModuleExtractCreateWndData result %p\n",
p);
114 ok(winmod.
m_pCreateWndList == create_data+1,
"winmod.m_pCreateWndList != create_data\n");
121 int len, expectedLen;
149 winmod.
cbSize =
sizeof(winmod);
156 ok(atom,
"AtlModuleRegisterWndClassInfoA failed: %08x\n", atom);
157 ok(atom == wci.
m_atom,
"(atom = %08x) is != than (wci.m_atom = %08x)\n", atom, wci.
m_atom);
162 expectedLen =
sizeof(
"ATL:") +
sizeof(
void *) * 2 - 1;
163 ok(
len == expectedLen,
"wci.m_szAutoName has length %d, expected length %d\n",
len, expectedLen);
205 ok (
cb_val == 0xdeadbeef,
"wrong callback value (0x%lx).\n",
cb_val);
HRESULT WINAPI AtlModuleTerm(_ATL_MODULE *pM)
ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW *wci, WNDPROC *pProc)
void *WINAPI AtlModuleExtractCreateWndData(_ATL_MODULEW *pM)
HRESULT WINAPI AtlModuleInit(_ATL_MODULEW *pM, _ATL_OBJMAP_ENTRYW *p, HINSTANCE h)
void WINAPI AtlModuleAddCreateWndData(_ATL_MODULEW *pM, _AtlCreateWndData *pData, void *pvObject)
HRESULT WINAPI AtlModuleAddTermFunc(_ATL_MODULE *pM, _ATL_TERMFUNC *pFunc, DWORD_PTR dw)
#define HeapFree(x, y, z)
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
static LRESULT WINAPI wndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
REFIID LPVOID DWORD_PTR dw
struct _ATL_MODULEW_TAG _ATL_MODULEW
static void test_StructSize(void)
static void WINAPI term_callback(DWORD_PTR dw)
static void test_winmodule(void)
static void test_winclassinfo(void)
static void test_term(void)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
CRITICAL_SECTION m_csWindowCreate
_AtlCreateWndData * m_pCreateWndList
WCHAR m_szAutoName[sizeof("ATL:")+sizeof(void *) *2]
#define FIELD_OFFSET(t, f)
DWORD WINAPI GetCurrentThreadId(void)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
struct _WNDCLASSEXW WNDCLASSEXW
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)