1 <chapter id=
"documentation">
2 <title>Documenting Wine
</title>
3 <para>How to help out with the Wine documentation effort...
</para>
6 <title>Writing Wine API Documentation
</title>
12 (Extracted from
<filename>wine/documentation/README.documentation
</filename>)
16 To improve the documentation of the Wine API, just add
17 comments to the existing source. For example,
20 /******************************************************************
21 * CopyMetaFile32A (GDI32.23)
23 * Copies the metafile corresponding to hSrcMetaFile to either
24 * a disk file, if a filename is given, or to a new memory based
25 * metafile, if lpFileName is NULL.
29 * Handle to metafile copy on success, NULL on failure.
33 * Copying to disk returns NULL even if successful.
35 HMETAFILE32 WINAPI CopyMetaFile32A(
36 HMETAFILE32 hSrcMetaFile, /* handle of metafile to copy */
37 LPCSTR lpFilename /* filename if copying to a file */
41 becomes, after processing with
<command>c2man
</command> and
42 <command>nroff -man
</command>,
45 CopyMetaFileA(
3w) CopyMetaFileA(
3w)
49 CopyMetaFileA - CopyMetaFile32A (GDI32.23)
52 HMETAFILE32 CopyMetaFileA
54 HMETAFILE32 hSrcMetaFile,
59 HMETAFILE32 hSrcMetaFile
60 Handle of metafile to copy.
63 Filename if copying to a file.
66 Copies the metafile corresponding to hSrcMetaFile to
67 either a disk file, if a filename is given, or to a new
68 memory based metafile, if lpFileName is NULL.
71 Handle to metafile copy on success, NULL on failure.
74 Copying to disk returns NULL even if successful.
77 GetMetaFileA(
3w), GetMetaFileW(
3w), CopyMetaFileW(
3w),
78 PlayMetaFile(
3w), SetMetaFileBitsEx(
3w), GetMetaFileBit-
84 <!-- Keep this comment at the end of the file
87 sgml-parent-document:("wine-doc.sgml" "book" "part" "chapter" "")