1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
|
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="oemprean_files/filelist.xml">
<title>OEMPREAN SAMPLE</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author></o:Author>
<o:LastAuthor></o:LastAuthor>
<o:Revision>18</o:Revision>
<o:TotalTime>38</o:TotalTime>
<o:Created>2003-05-28T23:09:00Z</o:Created>
<o:LastSaved>2003-08-14T01:02:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>1074</o:Words>
<o:Characters>6125</o:Characters>
<o:Company>Microsoft Corporation</o:Company>
<o:Lines>51</o:Lines>
<o:Paragraphs>14</o:Paragraphs>
<o:CharactersWithSpaces>7185</o:CharactersWithSpaces>
<o:Version>10.4219</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:GrammarState>Clean</w:GrammarState>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 0 0 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h1
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:1;
font-size:16.0pt;
font-family:Arial;
mso-font-kerning:16.0pt;}
h3
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:3;
font-size:13.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
pre
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
color:black;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<h1>OEMPREAN SAMPLE</h1>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<h3>Summary</h3>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>This
sample illustrates how you can leverage the preanalysis feature in Unidrv. This
sample is built upon the redesigned version of the oemuni sample. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>When
preanalysis is enabled in the GPD, Unidrv defines the surface as a banding
surface but causes the first playback to be of the entire page. Unidrv does
this by setting the GDI clip window to the entire page. Unidrv allows all
drawing commands to be hooked but returns before any drawing can be done. On
the following passes Unidrv resets the clip window back to the original band
size and bands normally. In order to enable this feature in the GPD, specify
the following GPD parameter: �*PreAnalysisOptions: 8�.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>The OEM
rendering plug-in is required to hook both DrvStartBanding and DrvNextBand when
this mode is enabled in the GPD. The OEM rendering plug-in must test the pptl
parameter of the DrvStartBanding call to determine whether preanalysis has been
enabled on this page. If the pptl parameter is NULL, then preanalysis has been
enabled. The pptl parameter can be used by Unidrv since it has no meaning at
this point. This parameter has not been updated with the band position and for
preanalysis the band position is always be set to 0, 0. If the pptl parameter
is NULL, then the OEM rendering plug-in should consider all drawing calls up to
the first call to DrvNextBand to be part of preanalysis. During this phase no
drawing onto the surface is allowed. You should be aware that after
preanalysis, you might get more calls than you saw in the normal rendering,
because primitives that cross band boundaries yield two or more DDI calls after
the preanalysis pass.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>The
sample uses the bPreAnalysis flag in the OEMPDEV structure to denote whether a
particular pass is the preanalysis pass or the actual rendering pass. If the
bPreAnalysis flag is set, it indicates that the current pass is the preanalysis
pass. The sample implements all of the drawing function hooks in ddihook.cpp.
The sample uses the OEMStartBanding and OEMNextBand functions, to respectively
set and reset the bPreAnalysis flag. The sample also uses the DBG_CLIPOBJ debug
macro function to dump the bounds of the clipping rectangle available for
preanalysis in each of the drawing functions during the preanalysis pass. To
view all of the debug output in the debugger, you must set the debug level to
VERBOSE. The rest of the sample is identical to the oemuni sample that
illustrates a basic OEM rendering plug-in.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Note that
the surface used during preanalysis might differ from the surface passed in
during the rendering pass. Also note that during the preanalysis pass, although
Unidrv calls the hooked drawing functions, it returns before any drawing is
done. For this reason you should not perform any drawing on the surface during
the preanalysis pass. All other preanalysis tasks should be performed during
this pass. For example, certain printers need to handle black objects that
intersect with color objects differently from black objects that appear by
themselves. Other printers might need to halftone StretchBlt objects
differently from BitBlt objects. Basically, the plug-in can analyze the objects
on the page. A final point to note is that during the preanalysis pass, drawing
functions should not call back into Unidrv. When the bPreAnalysis flag is set,
the sample returns without calling back into Unidrv.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Note that
this sample will not build with the Windows 2000 build environment. This
version of the sample implements the IPrintOemUni2 interface which is available
only on Windows XP and later. The table shown below will help identify which
operating systems this sample will build/work on. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<table class=MsoNormalTable border=1 cellpadding=0 width="100%"
style='width:100.0%;mso-cellspacing:1.5pt;mso-padding-alt:0in 5.4pt 0in 5.4pt'>
<tr style='mso-yfti-irow:0'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b style='mso-bidi-font-weight:normal'><span
style='font-size:10.0pt;font-family:Verdana'>Operating System</span><o:p></o:p></b></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><b
style='mso-bidi-font-weight:normal'><span style='font-size:10.0pt;font-family:
Verdana'>Can sample be built in the OS?</span></b><b style='mso-bidi-font-weight:
normal'><span style='font-family:Verdana'><o:p></o:p></span></b></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><b
style='mso-bidi-font-weight:normal'><span style='font-size:10.0pt;font-family:
Verdana'>Does sample work in the OS?</span><o:p></o:p></b></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><b
style='mso-bidi-font-weight:normal'><span style='font-size:10.0pt;font-family:
Verdana;letter-spacing:-1.0pt'>Can sample be used in a production environment
for the OS?</span><o:p></o:p></b></p>
</td>
</tr>
<tr style='mso-yfti-irow:1'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
codenamed Longhorn<o:p></o:p></span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>Yes<o:p></o:p></span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>Yes<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No<o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:2'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
Server 2003</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>Yes</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
</tr>
<tr style='mso-yfti-irow:3'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
XP</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>Yes</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
</tr>
<tr style='mso-yfti-irow:4'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
2000</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
</tr>
<tr style='mso-yfti-irow:5'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
Me</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No</span></p>
</td>
</tr>
<tr style='mso-yfti-irow:6;mso-yfti-lastrow:yes'>
<td width="19%" style='width:19.84%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Windows
98 SE<o:p></o:p></span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No<o:p></o:p></span></p>
</td>
<td width="26%" style='width:26.78%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No<o:p></o:p></span></p>
</td>
<td width="25%" style='width:25.8%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Verdana'>No<o:p></o:p></span></p>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<h3>Building the sample</h3>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>To build
the samples, run �<b style='mso-bidi-font-weight:normal'>build �cZ</b>� from
the directory. The resulting DLL will be placed in the appropriate platform directory
(i.e. i386 or Alpha). To create a version with verbose debug output, add _DEBUG
to the compile defines in the sources file.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<h3>Installing the sample</h3>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>After
building the sample, you can install it using the Add Printer Wizard and
supplying the INF that is part of the sample when you are prompted for an INF
in the wizard. The Unidrv binaries required for this driver need not be copied
to the local directory containing oemdll.inf. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<h3>Resources</h3>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>For the
latest release of the Windows Device Driver Development Kit, see <a
href="http://www.microsoft.com/whdc/ddk/winddk.mspx">http://www.microsoft.com/whdc/ddk/winddk.mspx</a>.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>If you
have questions on using or adapting this sample for your project, you can
either contact <a href="http://support.microsoft.com/">Microsoft Technical
Support</a> or post your questions in the <a
href="http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microsoft.public.development.device.drivers">Microsoft
driver development newsgroup</a>.</span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<h3>File Manifest</h3>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:10.0pt;font-family:Verdana'>Root:<o:p></o:p></span></b></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><u><span style='font-size:10.0pt;font-family:Verdana'>Files</span></u><span
style='font-size:10.0pt;font-family:Verdana'><span style='mso-tab-count:3'>���������������������� </span><u>Description</u><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>readme.htm<span
style='mso-tab-count:2'>������������ </span>The documentation for this sample
(this file).<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.gpd<span
style='mso-tab-count:2'>��������� </span>The generic GPD file for this sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.inf<span
style='mso-tab-count:2'>����������� </span>The printer INF that will install
this sample once it is built.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.ini<span
style='mso-tab-count:2'>����������� </span>The printer ini file that specifies
the OEM customization DLLs for this sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:10.0pt;font-family:Verdana'>OEMPREAN directory:</span></b><span
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></p>
<p class=MsoNormal><u><span style='font-size:10.0pt;font-family:Verdana'><o:p><span
style='text-decoration:none'> </span></o:p></span></u></p>
<p class=MsoNormal><u><span style='font-size:10.0pt;font-family:Verdana'>Files</span></u><span
style='font-size:10.0pt;font-family:Verdana'><span style='mso-tab-count:3'>���������������������� </span><u>Description<o:p></o:p></u></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>ddihook.cpp<span
style='mso-tab-count:2'>������������ </span>Source module for DDI Hook routines
for the rendering plug-in. (OEMBitBlt, OEMStrokePath, OEMTextOut, OEMNextBand
etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>ddihook.h<span
style='mso-tab-count:2'>��������������� </span>Source module that defines the
constants used to control DDI hooking. (IMPL_ALPHABLEND, IMPL_BITBLT,
IMPL_NEXTBAND etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>debug.cpp<span
style='mso-tab-count:2'>�������������� </span>Source module that contains the
debugging functions. (COemUniDbg::vDumpSURFOBJ, COemUniDbg::vDumpSTROBJ etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>debug.h<span
style='mso-tab-count:2'>����������������� </span>The header file for the debug
module defined in debug.cpp. (Definition of the COemUniDbg class)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>devmode.cpp<span
style='mso-tab-count:2'>���������� </span>Source module that contains
implementation of the OEM Devmode functions. (hrOEMDevmode, bConvertOEMDevmode
etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>devmode.h<span
style='mso-tab-count:2'>������������� </span>The header for devmode.cpp.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>dllentry.cpp<span
style='mso-tab-count:2'>������������ </span>Source module for DLL entry
functions. (DllMain)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>enable.cpp<span
style='mso-tab-count:2'>������������� </span>Source module that contains the
enable routines for the rendering plug-in. (OEMEnableDriver, OEMEnablePDEV,
OEMDisableDriver etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>intrface.cpp<span
style='mso-tab-count:2'>������������ </span>Source module that implements the
OEM COM printer customization rendering plug-in interface.
(COemUni2::ImageProcessing, COemUni2::FilterGraphics etc.)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>intrface.h<span
style='mso-tab-count:2'>��������������� </span>The header for intrface.cpp that
defines the COM interface for the rendering plug-in. (Definition of the
COemUni2 class)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>makefile<span
style='mso-tab-count:2'>����������������� </span>The generic makefile for
building the code sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.def<span
style='mso-tab-count:2'>���������� </span>The file that lists the exported
functions for the sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.h<span
style='mso-tab-count:2'>������������ </span>The header file that defines the
PDEV class for the sample. (Definition and implementation of the COemPDEV
class)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>oemprean.rc<span
style='mso-tab-count:2'>����������� </span>The resources file for the rendering
plugin�s resources.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>precomp.h<span
style='mso-tab-count:2'>�������������� </span>The header that includes the
headers to precompile.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>resource.h<span
style='mso-tab-count:2'>�������������� </span>The header file the resources
file.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>sources<span
style='mso-tab-count:2'>������������������ </span>The generic sources file for building
the code sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></p>
</div>
</body>
</html>
|