670{
680 static const WCHAR cls_names[][16] =
681 {
682 {'A','t','l','A','x','W','i','n','1','0','0',0},
683 {'A','t','l','A','x','W','i','n','L','i','c','1','0','0',0}
684 };
685
687 ok(
ret,
"AtlAxWinInit failed\n");
688
690
691 for (
i = 0;
i < 2;
i++)
692 {
693 memset(&wcex, 0,
sizeof(wcex));
694 wcex.
cbSize =
sizeof(wcex);
699
700 hwnd =
CreateWindowW(cls_names[
i],
NULL, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
705 ok(!control,
"returned %p\n", control);
706 if (control) IUnknown_Release(control);
708
709 hwnd =
CreateWindowW(cls_names[
i],
emptyW, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
714 ok(!control,
"returned %p\n", control);
715 if (control) IUnknown_Release(control);
717
718 hwnd =
CreateWindowW(cls_names[
i],
randomW, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
721
722 hwnd =
CreateWindowW(cls_names[
i],
progid1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
726 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
727 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
728 IUnknown_Release(control);
730
731 hwnd =
CreateWindowW(cls_names[
i],
clsid1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
735 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
736 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
737 IUnknown_Release(control);
739
740 hwnd =
CreateWindowW(cls_names[
i],
url1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
744 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
745 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
746 IUnknown_Release(control);
748
749
750 hwnd =
CreateWindowW(cls_names[
i],
mshtml1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
754 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
755 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
756 IUnknown_Release(control);
758
759 hwnd =
CreateWindowW(cls_names[
i],
mshtml2W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
763 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
764 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
765 IUnknown_Release(control);
767
768
769 hwnd =
CreateWindowW(cls_names[
i],
mshtml3W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
772
774 ok(
ret,
"GetTempPath failed!\n");
779 ok(
ret,
"WriteFile failed\n");
781
782
783 hwnd =
CreateWindowW(cls_names[
i], pathW, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
787 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
788 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
789 IUnknown_Release(control);
791
792
795 hwnd =
CreateWindowW(cls_names[
i], file_uri1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
799 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
800 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
801 IUnknown_Release(control);
803
804
806 ok(
ret,
"DeleteFile failed!\n");
807 hwnd =
CreateWindowW(cls_names[
i], file_uri1W, 0, 100, 100, 100, 100,
NULL,
NULL,
NULL,
NULL);
811 ok(
res ==
S_OK,
"AtlAxGetControl failed with res %08x\n",
res);
812 ok(control !=
NULL,
"AtlAxGetControl failed!\n");
813 IUnknown_Release(control);
815 }
816 todo_wine ok(wndproc[0] != wndproc[1],
"expected different proc!\n");
817}
HRESULT WINAPI AtlAxGetControl(HWND hWnd, IUnknown **pUnk)
BOOL WINAPI AtlAxWinInit(void)
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
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)