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");
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define MCIWNDF_NOERRORDLG
#define listtypeSTREAMHEADER
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define listtypeAVIHEADER
#define ERROR_INVALID_HANDLE
static const DWORD video_stream_format[]
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetLastError(VOID)
static const DWORD stream_list[]
BOOL WINAPI DestroyWindow(_In_ HWND)
static const DWORD file_header[]
#define MCIWNDM_GETERRORA
static void test_MCIWndCreate(void)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
static const MainAVIHeader main_avi_header
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
struct _MainAVIHeader MainAVIHeader
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCSTR szFile)
#define FILE_ATTRIBUTE_NORMAL
#define mmioFOURCC(c0, c1, c2, c3)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
static BOOL create_avi_file(char *fname)
static IHTMLWindow2 * window
#define MCIERR_FILE_NOT_FOUND
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
static const DWORD padding[]
static const AVIStreamHeader avi_stream_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)
#define CreateFileA(a, b, c, d, e, f, g)
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)
static BOOL heap_free(void *mem)