#include <string.h>
#include "private_mciavi.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (mciavi) |
|
static LRESULT WINAPI | MCIAVI_WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
BOOL | MCIAVI_UnregisterClass (void) |
|
BOOL | MCIAVI_RegisterClass (void) |
|
BOOL | MCIAVI_CreateWindow (WINE_MCIAVI *wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSW lpParms) |
|
DWORD | MCIAVI_mciPut (UINT wDevID, DWORD dwFlags, LPMCI_DGV_PUT_PARMS lpParms) |
|
DWORD | MCIAVI_mciWhere (UINT wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms) |
|
DWORD | MCIAVI_mciWindow (UINT wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMSW lpParms) |
|
◆ MCIAVI_CreateWindow()
Definition at line 112 of file wnd.c.
113{
114 static const WCHAR captionW[] = {
'W',
'i',
'n',
'e',
' ',
'M',
'C',
'I',
'-',
'A',
'V',
'I',
' ',
'p',
'l',
'a',
'y',
'e',
'r',0};
118
119
121
124
127 else
129
132 {
136 }
137
144
145 TRACE(
"(%04x, %08X, %p, style %x, parent %p, dimensions %dx%d, hwnd %p)\n", wma->
wDevID,
147 return wma->
hWnd != 0;
148}
#define MCI_DGV_OPEN_PARENT
HINSTANCE MCIAVI_hInstance
#define WS_OVERLAPPEDWINDOW
LPBITMAPINFOHEADER outbih
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
BOOL WINAPI AdjustWindowRect(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
static const WCHAR mciaviW[]
Referenced by MCIAVI_mciOpen().
◆ MCIAVI_mciPut()
Definition at line 153 of file wnd.c.
154{
157
159
163
165
167
168
171 } else {
173 }
174
179 }
183 }
188 }
192 }
197 }
201 }
203 return 0;
204}
static const char * wine_dbgstr_rect(const RECT *prc)
#define MCI_DGV_PUT_DESTINATION
#define MCI_DGV_PUT_SOURCE
#define MCI_DGV_PUT_WINDOW
#define MCI_DGV_PUT_CLIENT
#define MCI_DGV_PUT_VIDEO
#define MCI_DGV_PUT_FRAME
WINE_MCIAVI * MCIAVI_mciGetOpenDev(UINT wDevID)
#define MCIERR_UNRECOGNIZED_COMMAND
#define MCIERR_INVALID_DEVICE_ID
#define MCIERR_NULL_PARAMETER_BLOCK
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by MCIAVI_DriverProc().
◆ MCIAVI_mciWhere()
Definition at line 209 of file wnd.c.
210{
213
215
218
219
221
226 } else {
229 }
230 }
233 FIXME(
"MCI_DGV_WHERE_FRAME_MAX\n");
234 else
235 FIXME(
"MCI_DGV_WHERE_FRAME\n");
238 }
243 } else {
246 }
247 }
250 FIXME(
"WHERE_VIDEO_MAX\n");
251 else
252 FIXME(
"WHERE_VIDEO\n");
255 }
260 } else {
263 }
264 }
265
266
267
269
271 return 0;
272}
#define MCI_DGV_WHERE_WINDOW
#define MCI_DGV_WHERE_FRAME
#define MCI_DGV_WHERE_VIDEO
#define MCI_DGV_WHERE_SOURCE
#define MCI_DGV_WHERE_MAX
#define MCI_DGV_WHERE_DESTINATION
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
HWND WINAPI GetDesktopWindow(void)
Referenced by MCIAVI_DriverProc().
◆ MCIAVI_mciWindow()
Definition at line 277 of file wnd.c.
278{
280
282
286
288
291 {
292 TRACE(
"Setting hWnd to %p\n", lpParms->
hWnd);
295 }
296 }
300 }
304 }
305
307 return 0;
308}
#define MCI_DGV_WINDOW_STATE
#define MCI_DGV_WINDOW_DEFAULT
#define MCI_DGV_WINDOW_TEXT
#define MCI_DGV_WINDOW_HWND
BOOL WINAPI IsWindow(_In_opt_ HWND)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
Referenced by MCIAVI_DriverProc().
◆ MCIAVI_RegisterClass()
Definition at line 93 of file wnd.c.
94{
96
105
108
110}
DWORD WINAPI GetLastError(void)
#define ERROR_CLASS_ALREADY_EXISTS
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
static LRESULT WINAPI MCIAVI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Referenced by MCIAVI_drvOpen().
◆ MCIAVI_UnregisterClass()
Definition at line 88 of file wnd.c.
89{
91}
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
Referenced by MCIAVI_drvClose().
◆ MCIAVI_WindowProc()
Definition at line 30 of file wnd.c.
31{
33
34 switch (uMsg) {
38
43
45 {
49 }
50 return 1;
51
53 {
55
56 if (!wma)
58
60
61
63 {
65
67 }
68
71 else
72 {
77 }
78
80 }
81 return 1;
82
83 default:
85 }
86}
DWORD WINAPI mciGetDriverData(UINT uDeviceID)
DWORD MCIAVI_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
double MCIAVI_PaintFrame(WINE_MCIAVI *wma, HDC hDC)
#define MCI_MODE_NOT_READY
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
Referenced by MCIAVI_RegisterClass().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
mciavi |
| ) |
|
◆ mciaviW