2 Wine Documentation README
7 The man page for Wine is in this directory. It is installed by 'make
12 Texinfo source for preliminary comprehensive documentation is in
13 this directory. Use 'make info' in this directory to generate the GNU
14 info version, 'make dvi' to generate the DVI version (hit 'r' to
15 ignore errors), or 'make all' for both. It is not installed by
18 Wine API documentation
20 Do a 'make manpages' in the Wine toplevel directory to generate the
21 API manpages from the Wine source, or 'make man' in any source
22 subdirectory to generate manpages from only that directory. Only
23 functions mentioned in Wine spec files will be documented; the
24 specific .spec files checked are set by the MANSPECS variable in
25 Make.rules. The manpages will be generated into
26 [documentation/man3w]. For HTML formatted manpages, do 'make
27 htmlpages' from the toplevel, or 'make html' from any
28 subdirectory. HTML formatted pages are generated into
29 [documentation/html]. You will need c2man as modified for Wine,
30 available as source or binary from ftp://ftp.winehq.com/pub/wine/.
31 The man pages are not installed by 'make install'.
35 Other informational files are in this directory as well as scattered
36 through the source tree.
40 Usenet: news:comp.emulators.ms-windows.wine
41 WWW: http://www.winehq.com/
44 Writing Wine API Documentation
46 To improve the documentation of the Wine API, just add comments to the
47 existing source. For example,
49 /******************************************************************
50 * CopyMetaFile32A (GDI32.23)
52 * Copies the metafile corresponding to hSrcMetaFile to either
53 * a disk file, if a filename is given, or to a new memory based
54 * metafile, if lpFileName is NULL.
58 * Handle to metafile copy on success, NULL on failure.
62 * Copying to disk returns NULL even if successful.
64 HMETAFILE32 WINAPI CopyMetaFile32A(
65 HMETAFILE32 hSrcMetaFile, /* handle of metafile to copy */
66 LPCSTR lpFilename /* filename if copying to a file */
69 becomes, after processing with c2man and nroff -man,
71 CopyMetaFileA(3w) CopyMetaFileA(3w)
75 CopyMetaFileA - CopyMetaFile32A (GDI32.23)
78 HMETAFILE32 CopyMetaFileA
80 HMETAFILE32 hSrcMetaFile,
85 HMETAFILE32 hSrcMetaFile
86 Handle of metafile to copy.
89 Filename if copying to a file.
92 Copies the metafile corresponding to hSrcMetaFile to
93 either a disk file, if a filename is given, or to a new
94 memory based metafile, if lpFileName is NULL.
97 Handle to metafile copy on success, NULL on failure.
100 Copying to disk returns NULL even if successful.
103 GetMetaFileA(3w), GetMetaFileW(3w), CopyMetaFileW(3w),
104 PlayMetaFile(3w), SetMetaFileBitsEx(3w), GetMetaFileBit-