21#define WIN32_LEAN_AND_MEAN
96 mmioFOURCC(
'0',
'0',
'd',
'b'), 0x48, 0x48000000, 0x08000800,
97 0x00100100, 0x00003e00, 0x08000000, 0x00200800,
98 0x00001600, 0x00000000, 0x00003a00, 0x22e306f9,
99 0xfc120000, 0x0a000022, 0x00000000, 0x00300000,
100 0x00c01200, 0x00000000, 0x02010000, 0x00000000,
101 mmioFOURCC(
'0',
'0',
'd',
'b'), 0x48, 0x48000000, 0x08000800,
102 0x00100100, 0x00003e00, 0x08000000, 0x00200800,
103 0x00001600, 0x00000000, 0x00003a00, 0x22e306f9,
104 0xfc120000, 0x0a000022, 0x00000000, 0x00300000,
105 0x00c01200, 0x00000000, 0x02010000, 0x00000000,
106 mmioFOURCC(
'i',
'd',
'x',
'1'), 0x20,
mmioFOURCC(
'0',
'0',
'd',
'b'), 0x10,
107 0x04, 0x48,
mmioFOURCC(
'0',
'0',
'd',
'b'), 0x10,
162 enum {NO_MATCH, PTR_ANSI_MATCH, PTR_UNICODE_MATCH, ANSI_MATCH, UNICODE_MATCH }
match;
173 if (
cs->lpCreateParams)
219 BOOL expect_ansi =
match == PTR_ANSI_MATCH ||
match == ANSI_MATCH;
252 "bad open message %u %s%u\n",
match,
257 "Unexpected error %Id\n",
ret);
266 char invalid_fname[] =
"invalid.avi";
309 ok(
window !=
NULL,
"Failed to create an MCIWnd window\n");
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI WriteFile(_In_ HANDLE hFile, _In_reads_bytes_opt_(nNumberOfBytesToWrite) LPCVOID lpBuffer, _In_ DWORD nNumberOfBytesToWrite, _Out_opt_ LPDWORD lpNumberOfBytesWritten, _Inout_opt_ LPOVERLAPPED lpOverlapped)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCSTR szFile)
HWND VFWAPIV MCIWndCreateW(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCWSTR szFile)
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
#define MCIERR_FILE_NOT_FOUND
#define mmioFOURCC(c0, c1, c2, c3)
static IHTMLWindow2 * window
static WNDPROC old_MCIWndProc
static const DWORD stream_list[]
static void test_MCIWndCreate(void)
static LRESULT CALLBACK hook_proc(int code, WPARAM wp, LPARAM lp)
static const DWORD video_stream_format[]
static const DWORD padding[]
static LRESULT WINAPI proxy_MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
static struct @1952 wnd_creation
static const AVIStreamHeader avi_stream_header
static BOOL create_avi_file(char *fname)
static void test_window_create(unsigned line, const char *fname, HWND parent, BOOL with_mci, BOOL call_ansi, unsigned match)
static const MainAVIHeader main_avi_header
static const DWORD file_header[]
HWND WINAPI CreateWindowExA(_In_ DWORD dwExStyle, _In_opt_ LPCSTR lpClassName, _In_opt_ LPCSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI IsWindowUnicode(_In_ HWND)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define SetWindowLongPtrW
BOOL WINAPI DestroyWindow(_In_ HWND)
struct _MainAVIHeader MainAVIHeader
#define MCIWNDM_GETERRORA
#define listtypeSTREAMHEADER
#define listtypeAVIHEADER
#define MCIWNDF_NOERRORDLG
DWORD WINAPI GetLastError(void)
DWORD WINAPI GetCurrentThreadId(void)