21#define WIN32_LEAN_AND_MEAN
97 mmioFOURCC(
'0',
'0',
'd',
'b'), 0x48, 0x48000000, 0x08000800,
98 0x00100100, 0x00003e00, 0x08000000, 0x00200800,
99 0x00001600, 0x00000000, 0x00003a00, 0x22e306f9,
100 0xfc120000, 0x0a000022, 0x00000000, 0x00300000,
101 0x00c01200, 0x00000000, 0x02010000, 0x00000000,
102 mmioFOURCC(
'0',
'0',
'd',
'b'), 0x48, 0x48000000, 0x08000800,
103 0x00100100, 0x00003e00, 0x08000000, 0x00200800,
104 0x00001600, 0x00000000, 0x00003a00, 0x22e306f9,
105 0xfc120000, 0x0a000022, 0x00000000, 0x00300000,
106 0x00c01200, 0x00000000, 0x02010000, 0x00000000,
107 mmioFOURCC(
'i',
'd',
'x',
'1'), 0x20,
mmioFOURCC(
'0',
'0',
'd',
'b'), 0x10,
108 0x04, 0x48,
mmioFOURCC(
'0',
'0',
'd',
'b'), 0x10,
139 buffer = heap_alloc_zero(buffer_length);
161 char invalid_fname[] =
"invalid.avi";
168 ok(
window !=
NULL,
"Failed to create an MCIWnd window without parent\n");
172 "Unexpected error %ld\n",
ret);
181 ok(
window !=
NULL,
"Failed to create an MCIWnd window\n");
185 "Unexpected error %ld\n",
ret);
190 ok(
window !=
NULL,
"Failed to create an MCIWnd window\n");
static BOOL heap_free(void *mem)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCSTR 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 const DWORD stream_list[]
static void test_MCIWndCreate(void)
static const DWORD video_stream_format[]
static const DWORD padding[]
static const AVIStreamHeader avi_stream_header
static BOOL create_avi_file(char *fname)
static const MainAVIHeader main_avi_header
static const DWORD file_header[]
struct _MainAVIHeader MainAVIHeader
#define MCIWNDM_GETERRORA
#define listtypeSTREAMHEADER
#define listtypeAVIHEADER
#define MCIWNDF_NOERRORDLG
DWORD WINAPI GetLastError(void)
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)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI DestroyWindow(_In_ HWND)