annotate loader/vfl.c @ 13497:927825240d42

changed include of stdint.h to inttypes.h
author ivo
date Mon, 27 Sep 2004 22:11:37 +0000
parents e2fcdd7608b1
children f5537cc95b02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * Copyright 1998 Marcus Meissner
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 #include <config.h>
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 #include <stdio.h>
1312
cca0d2481b7e Fix two prototype warnings
jkeil
parents: 1307
diff changeset
7 #include <stdlib.h>
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 #include <string.h>
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9
1307
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
10 #include "win32.h"
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
11 #include "loader.h"
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
12
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 #include "wine/winbase.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 #include "wine/windef.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #include "wine/winuser.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 #include "wine/vfw.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 #include "wine/winestring.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 #include "wine/driver.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 #include "wine/avifmt.h"
1307
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
20 #include "driver.h"
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
21
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
22 #define OpenDriverA DrvOpen
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
23 #define CloseDriver DrvClose
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 1297
diff changeset
24
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 * VideoForWindowsVersion [MSVFW.2][MSVIDEO.2]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 * Returns the version in major.minor form.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 * In Windows95 this returns 0x040003b6 (4.950)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 */
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
30 long VFWAPI VideoForWindowsVersion(void) {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 return 0x040003B6; /* 4.950 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 /* system.ini: [drivers] */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 * ICInfo [MSVFW.33]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 * Get information about an installable compressor. Return TRUE if there
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 * is one.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 int VFWAPI
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 ICInfo(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 long fccType, /* [in] type of compressor ('vidc') */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 long fccHandler, /* [in] <n>th compressor */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 ICINFO *lpicinfo /* [out] information about compressor */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 ) {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 /* does OpenDriver/CloseDriver */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 lpicinfo->dwSize = sizeof(ICINFO);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 lpicinfo->fccType = fccType;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 lpicinfo->dwFlags = 0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 return TRUE;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 * ICOpen [MSVFW.37]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 * Opens an installable compressor. Return special handle.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 HIC VFWAPI
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
59 //ICOpen(long fccType,long fccHandler,unsigned int wMode) {
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
60 ICOpen(long filename,long fccHandler,unsigned int wMode) {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 ICOPEN icopen;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 HDRVR hdrv;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 WINE_HIC *whic;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 /* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 * same layout as ICOPEN
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 */
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
68 icopen.fccType = 0x63646976; // "vidc" //fccType;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 icopen.fccHandler = fccHandler;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 icopen.dwSize = sizeof(ICOPEN);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 icopen.dwFlags = wMode;
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
72 icopen.pV1Reserved = (void*)filename;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 /* FIXME: do we need to fill out the rest too? */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 hdrv=OpenDriverA((long)&icopen);
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
75 if (!hdrv) return 0;
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
76 whic = (WINE_HIC*)malloc(sizeof(WINE_HIC));
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 whic->hdrv = hdrv;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 whic->driverproc= ((DRVR*)hdrv)->DriverProc;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 // whic->private = ICSendMessage((HIC)whic,DRV_OPEN,0,(long)&icopen);
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
80 whic->driverid = ((DRVR*)hdrv)->dwDriverID;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 return (HIC)whic;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 * ICGetInfo [MSVFW.30]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 LRESULT VFWAPI
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 ICGetInfo(HIC hic,ICINFO *picinfo,long cb) {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 LRESULT ret;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 ret = ICSendMessage(hic,ICM_GETINFO,(long)picinfo,cb);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 return ret;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 * ICCompress [MSVFW.23]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 long VFWAPIV
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 ICCompress(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiOutput,void* lpData,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 LPBITMAPINFOHEADER lpbiInput,void* lpBits,long* lpckid,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 long* lpdwFlags,long lFrameNum,long dwFrameSize,long dwQuality,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 LPBITMAPINFOHEADER lpbiPrev,void* lpPrev
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 ) {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 ICCOMPRESS iccmp;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 iccmp.dwFlags = dwFlags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 iccmp.lpbiOutput = lpbiOutput;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 iccmp.lpOutput = lpData;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 iccmp.lpbiInput = lpbiInput;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 iccmp.lpInput = lpBits;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 iccmp.lpckid = lpckid;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 iccmp.lpdwFlags = lpdwFlags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117 iccmp.lFrameNum = lFrameNum;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118 iccmp.dwFrameSize = dwFrameSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119 iccmp.dwQuality = dwQuality;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120 iccmp.lpbiPrev = lpbiPrev;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121 iccmp.lpPrev = lpPrev;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 return ICSendMessage(hic,ICM_COMPRESS,(long)&iccmp,sizeof(iccmp));
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 * ICDecompress [MSVFW.26]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 long VFWAPIV
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 ICDECOMPRESS icd;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 int result;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 icd.dwFlags = dwFlags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 icd.lpbiInput = lpbiFormat;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134 icd.lpInput = lpData;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 icd.lpbiOutput = lpbi;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137 icd.lpOutput = lpBits;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 icd.ckid = 0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 result=ICSendMessage(hic,ICM_DECOMPRESS,(long)&icd,sizeof(icd));
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 return result;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 /***********************************************************************
1297
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
144 * ICDecompressEx [MSVFW.26]
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
145 */
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
146 long VFWAPIV
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
147 ICDecompressEx(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) {
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
148 ICDECOMPRESSEX icd;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
149 int result;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
150
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
151 icd.dwFlags = dwFlags;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
152
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
153 icd.lpbiSrc = lpbiFormat;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
154 icd.lpSrc = lpData;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
155
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
156 icd.lpbiDst = lpbi;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
157 icd.lpDst = lpBits;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
158
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
159 icd.xSrc=icd.ySrc=0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
160 icd.dxSrc=lpbiFormat->biWidth;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
161 icd.dySrc=abs(lpbiFormat->biHeight);
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
162
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
163 icd.xDst=icd.yDst=0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
164 icd.dxDst=lpbi->biWidth;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
165 icd.dyDst=abs(lpbi->biHeight);
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
166
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
167 //icd.ckid = 0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
168 result=ICSendMessage(hic,ICM_DECOMPRESSEX,(long)&icd,sizeof(icd));
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
169 return result;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
170 }
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
171
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
172 long VFWAPIV
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
173 ICUniversalEx(HIC hic,int command,LPBITMAPINFOHEADER lpbiFormat,LPBITMAPINFOHEADER lpbi) {
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
174 ICDECOMPRESSEX icd;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
175 int result;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
176
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
177 icd.dwFlags = 0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
178
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
179 icd.lpbiSrc = lpbiFormat;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
180 icd.lpSrc = 0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
181
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
182 icd.lpbiDst = lpbi;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
183 icd.lpDst = 0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
184
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
185 icd.xSrc=icd.ySrc=0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
186 icd.dxSrc=lpbiFormat->biWidth;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
187 icd.dySrc=abs(lpbiFormat->biHeight);
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
188
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
189 icd.xDst=icd.yDst=0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
190 icd.dxDst=lpbi->biWidth;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
191 icd.dyDst=abs(lpbi->biHeight);
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
192
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
193 //icd.ckid = 0;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
194 result=ICSendMessage(hic,command,(long)&icd,sizeof(icd));
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
195 return result;
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
196 }
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
197
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
198
200c03672178 VfwEx support
arpi
parents: 1096
diff changeset
199 /***********************************************************************
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
200 * ICSendMessage [MSVFW.40]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
201 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
202 LRESULT VFWAPI
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
203 ICSendMessage(HIC hic,unsigned int msg,long lParam1,long lParam2) {
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
204 WINE_HIC *whic = (WINE_HIC*)hic;
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
205 return SendDriverMessage(whic->hdrv, msg, lParam1,lParam2);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
206 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
207
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
208
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
209 /***********************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
210 * ICClose [MSVFW.22]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
211 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
212 LRESULT VFWAPI ICClose(HIC hic) {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
213 WINE_HIC *whic = (WINE_HIC*)hic;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
214 /* FIXME: correct? */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
215 // CloseDriver(whic->hdrv,0,0);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
216 DrvClose(whic->hdrv);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
217 //#warning FIXME: DrvClose
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
218 free(whic);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
219 return 0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
220 }
7385
e2fcdd7608b1 - updated to use new stype ICopen (filename passed in the icopen struct)
arpi
parents: 2069
diff changeset
221
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
222 int VFWAPI ICDoSomething()
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
223 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
224 return 0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
225 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
226