annotate loader/wineacm.h @ 28678:c48f4a1835da

Calculate border size in aspect keeping code by using AdjustWindowRect instead of GetClientRect and GetWindowRect since GetClientRect returns nonsensical values if Window is still minimized.
author reimar
date Mon, 23 Feb 2009 21:40:02 +0000
parents a8ea87c71d18
children 26f673ba0675
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
1 #ifndef MPLAYER_WINEACM_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
2 #define MPLAYER_WINEACM_H
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 * Wine specific - Win32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 */
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
8
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
9
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
10 #include "wine/msacmdrv.h"
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
11
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
12 #ifdef __cplusplus
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
13 extern "C" {
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
14 #endif /* defined(__cplusplus) */
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
15
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
16
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
17 typedef struct WINE_ACMDRIVERID *PWINE_ACMDRIVERID;
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
18 typedef struct WINE_ACMDRIVER *PWINE_ACMDRIVER;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
20 typedef struct WINE_ACMOBJ
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 PWINE_ACMDRIVERID pACMDriverID;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 } WINE_ACMOBJ, *PWINE_ACMOBJ;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
25 typedef struct WINE_ACMDRIVER
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 WINE_ACMOBJ obj;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 HDRVR hDrvr;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 DRIVERPROC pfnDriverProc;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 PWINE_ACMDRIVER pNextACMDriver;
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
31 int iUsage;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 } WINE_ACMDRIVER;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
34 typedef struct WINE_ACMSTREAM
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 WINE_ACMOBJ obj;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 PWINE_ACMDRIVER pDrv;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 ACMDRVSTREAMINSTANCE drvInst;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 HACMDRIVER hAcmDriver;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 } WINE_ACMSTREAM, *PWINE_ACMSTREAM;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 7386
diff changeset
42 typedef struct WINE_ACMDRIVERID
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 LPSTR pszFileName;
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
45 WORD wFormatTag;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 HINSTANCE hInstModule; /* NULL if global */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 DWORD dwProcessID; /* ID of process which installed a local driver */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 WIN_BOOL bEnabled;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 PWINE_ACMDRIVER pACMDriverList;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 PWINE_ACMDRIVERID pNextACMDriverID;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 PWINE_ACMDRIVERID pPrevACMDriverID;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 } WINE_ACMDRIVERID;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 /* From internal.c */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 extern HANDLE MSACM_hHeap;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 extern PWINE_ACMDRIVERID MSACM_pFirstACMDriverID;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 extern PWINE_ACMDRIVERID MSACM_pLastACMDriverID;
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
58
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
59 PWINE_ACMDRIVERID MSACM_RegisterDriver(const char* pszFileName,
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
60 WORD wFormatTag,
2069
ce45cce7f7a5 sync with avifile
arpi
parents: 1
diff changeset
61 HINSTANCE hinstModule);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 void MSACM_UnregisterAllDrivers(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 PWINE_ACMDRIVERID MSACM_GetDriverID(HACMDRIVERID hDriverID);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 PWINE_ACMDRIVER MSACM_GetDriver(HACMDRIVER hDriver);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
68 #ifdef __cplusplus
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
69 } /* extern "C" */
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
70 #endif /* defined(__cplusplus) */
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 2069
diff changeset
71
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
72 #endif /* MPLAYER_WINEACM_H */