annotate src/intl-auto-encap-win32.c @ 5928:2f34b59f451a cygwin

from Vin?
author Henry Thompson <ht@markup.co.uk>
date Fri, 24 Jul 2015 14:48:46 +0100
parents 68639fb08af8
children f5dfcf2323bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
1 /* Automatically-generated Unicode-encapsulation file,
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
2 using the command
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
3
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
4 ../lib-src/make-mswin-unicode.pl --c-output intl-auto-encap-win32.c --h-output intl-auto-encap-win32.h intl-encap-win32.c
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
6 Do not edit. See `make-mswin-unicode.pl'.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
7 */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
8
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
9 #include <config.h>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
10 #include "lisp.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
11
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
12 #include "syswindows.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
13
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
14
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
15 /*----------------------------------------------------------------------*/
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
16 /* Processing file SHELLAPI.H */
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
17 /*----------------------------------------------------------------------*/
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
18
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
19 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
20 qxeDragQueryFile (HDROP hDrop, UINT iFile, Extbyte * lpszFile, UINT cch)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
21 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
22 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
23 return DragQueryFileW (hDrop, iFile, (LPWSTR) lpszFile, cch);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
24 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
25 return DragQueryFileA (hDrop, iFile, (LPSTR) lpszFile, cch);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
26 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
27
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
28 HINSTANCE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
29 qxeShellExecute (HWND hwnd, const Extbyte * lpOperation, const Extbyte * lpFile, const Extbyte * lpParameters, const Extbyte * lpDirectory, INT nShowCmd)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
30 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
31 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
32 return ShellExecuteW (hwnd, (LPCWSTR) lpOperation, (LPCWSTR) lpFile, (LPCWSTR) lpParameters, (LPCWSTR) lpDirectory, nShowCmd);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
33 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
34 return ShellExecuteA (hwnd, (LPCSTR) lpOperation, (LPCSTR) lpFile, (LPCSTR) lpParameters, (LPCSTR) lpDirectory, nShowCmd);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
35 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
36
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
37 HINSTANCE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
38 qxeFindExecutable (const Extbyte * lpFile, const Extbyte * lpDirectory, Extbyte * lpResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
39 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
40 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
41 return FindExecutableW ((LPCWSTR) lpFile, (LPCWSTR) lpDirectory, (LPWSTR) lpResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
42 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
43 return FindExecutableA ((LPCSTR) lpFile, (LPCSTR) lpDirectory, (LPSTR) lpResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
44 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
45
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
46 /* Error if CommandLineToArgv used: Unicode-only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
47
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
48 INT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
49 qxeShellAbout (HWND hWnd, const Extbyte * szApp, const Extbyte * szOtherStuff, HICON hIcon)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
50 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
51 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
52 return ShellAboutW (hWnd, (LPCWSTR) szApp, (LPCWSTR) szOtherStuff, hIcon);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
53 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
54 return ShellAboutA (hWnd, (LPCSTR) szApp, (LPCSTR) szOtherStuff, hIcon);
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
55 }
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
56
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
57 /* NOTE: error arg2, Cygwin prototype, extra const.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
58 NOTE: Prototype manually overridden.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
59 Header file claims:
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
60 SHSTDAPI_(HICON) ExtractAssociatedIcon(HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIcon)
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
61 Overridden with:
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
62 HICON ExtractAssociatedIcon(HINSTANCE, LPWSTR, LPWORD)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
63 Differences in return-type qualifiers, e.g. WINAPI, are not important.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
64 */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
65 HICON
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
66 qxeExtractAssociatedIcon (HINSTANCE arg1, Extbyte * arg2, LPWORD arg3)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
67 {
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
68 if (XEUNICODE_P)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
69 return ExtractAssociatedIconW (arg1, (LPWSTR) arg2, arg3);
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
70 else
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
71 return ExtractAssociatedIconA (arg1, (LPSTR) arg2, arg3);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
72 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
73
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
74 /* Error if ExtractAssociatedIconEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
75
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
76 HICON
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
77 qxeExtractIcon (HINSTANCE hInst, const Extbyte * pszExeFileName, UINT nIconIndex)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
78 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
79 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
80 return ExtractIconW (hInst, (LPCWSTR) pszExeFileName, nIconIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
81 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
82 return ExtractIconA (hInst, (LPCSTR) pszExeFileName, nIconIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
83 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
84
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
85 #if !defined (CYGWIN_HEADERS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
86
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
87 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
88 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
89 qxeDoEnvironmentSubst (Extbyte * pszSrc, UINT cchSrc)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
90 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
91 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
92 return DoEnvironmentSubstW ((LPWSTR) pszSrc, cchSrc);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
93 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
94 return DoEnvironmentSubstA ((LPSTR) pszSrc, cchSrc);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
95 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
96
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
97 #endif /* !defined (CYGWIN_HEADERS) */
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
98
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
99 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
100 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
101 qxeExtractIconEx (const Extbyte * lpszFile, int nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIcons)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
102 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
103 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
104 return ExtractIconExW ((LPCWSTR) lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
105 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
106 return ExtractIconExA ((LPCSTR) lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
107 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
108
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
109 /* NOTE: NT 4.0+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
110 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
111 qxeSHFileOperation (LPSHFILEOPSTRUCTW lpFileOp)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
112 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
113 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
114 return SHFileOperationW (lpFileOp);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
115 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
116 return SHFileOperationA ((LPSHFILEOPSTRUCTA) lpFileOp);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
117 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
118
5921
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
119 /* Error if ShellExecuteEx used: LPSHELLEXECUTEINFO NT 4.0+ only HST: not used, split is broken because of * in declaration in shellapi.h */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
120
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
121 /* Error if SHCreateProcessAsUser used: HST: new? -- needs review */
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
122
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
123 #if !defined (CYGWIN_HEADERS)
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
124
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
125 /* NOTE: NT 4.0+ only */
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
126 HRESULT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
127 qxeSHQueryRecycleBin (const Extbyte * pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
128 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
129 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
130 return SHQueryRecycleBinW ((LPCWSTR) pszRootPath, pSHQueryRBInfo);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
131 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
132 return SHQueryRecycleBinA ((LPCSTR) pszRootPath, pSHQueryRBInfo);
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
133 }
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
134
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
135 #endif /* !defined (CYGWIN_HEADERS) */
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
136
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
137 #if !defined (CYGWIN_HEADERS)
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
138
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
139 /* NOTE: NT 4.0+ only */
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
140 HRESULT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
141 qxeSHEmptyRecycleBin (HWND hwnd, const Extbyte * pszRootPath, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
142 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
143 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
144 return SHEmptyRecycleBinW (hwnd, (LPCWSTR) pszRootPath, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
145 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
146 return SHEmptyRecycleBinA (hwnd, (LPCSTR) pszRootPath, dwFlags);
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
147 }
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
148
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 1684
diff changeset
149 #endif /* !defined (CYGWIN_HEADERS) */
798
1f5108485fe7 [xemacs-hg @ 2002-03-29 18:26:33 by jhar]
jhar
parents: 778
diff changeset
150
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
151 /* Error if Shell_NotifyIcon used: split-sized NOTIFYICONDATA, NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
152
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
153 /* Skipping SHGetFileInfo because split-sized SHFILEINFO, NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
154
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
155 /* Error if SHGetDiskFreeSpaceEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
156
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
157 #if !defined (CYGWIN_HEADERS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
158
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
159 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
160 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
161 qxeSHGetNewLinkInfo (const Extbyte * pszLinkTo, const Extbyte * pszDir, Extbyte * pszName, WINBOOL * pfMustCopy, UINT uFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
162 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
163 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
164 return SHGetNewLinkInfoW ((LPCWSTR) pszLinkTo, (LPCWSTR) pszDir, (LPWSTR) pszName, pfMustCopy, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
165 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
166 return SHGetNewLinkInfoA ((LPCSTR) pszLinkTo, (LPCSTR) pszDir, (LPSTR) pszName, pfMustCopy, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
167 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
168
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
169 #endif /* !defined (CYGWIN_HEADERS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
170
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
171 #if !defined (CYGWIN_HEADERS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
172
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
173 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
174 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
175 qxeSHInvokePrinterCommand (HWND hwnd, UINT uAction, const Extbyte * lpBuf1, const Extbyte * lpBuf2, WINBOOL fModal)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
176 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
177 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
178 return SHInvokePrinterCommandW (hwnd, uAction, (LPCWSTR) lpBuf1, (LPCWSTR) lpBuf2, fModal);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
179 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
180 return SHInvokePrinterCommandA (hwnd, uAction, (LPCSTR) lpBuf1, (LPCSTR) lpBuf2, fModal);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
181 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
182
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
183 #endif /* !defined (CYGWIN_HEADERS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
184
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
185 /* Error if IsLFNDrive used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
186
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
187 /* Error if SHEnumerateUnreadMailAccounts used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
188
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
189 /* Error if SHGetUnreadMailCount used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
190
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
191 /* Error if SHSetUnreadMailCount used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
192
798
1f5108485fe7 [xemacs-hg @ 2002-03-29 18:26:33 by jhar]
jhar
parents: 778
diff changeset
193
1f5108485fe7 [xemacs-hg @ 2002-03-29 18:26:33 by jhar]
jhar
parents: 778
diff changeset
194 /*----------------------------------------------------------------------*/
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
195 /* Processing file WINSPOOL.H */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
196 /*----------------------------------------------------------------------*/
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
197
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
198 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
199
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
200 /* NOTE: #### problems with DEVMODE pointer in PRINTER_INFO_2 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
201 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
202 qxeEnumPrinters (DWORD Flags, Extbyte * Name, DWORD Level, LPBYTE pPrinterEnum, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
203 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
204 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
205 return EnumPrintersW (Flags, (LPWSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
206 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
207 return EnumPrintersA (Flags, (LPSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
208 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
209
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
210 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
211
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
212 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
213
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
214 /* Skipping OpenPrinter because split-sized DEVMODE pointer in split PRINTER_DEFAULTS */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
215
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
216 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
217
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
218 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
219
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
220 /* Error if ResetPrinter used: split-sized DEVMODE pointer in split PRINTER_DEFAULTS */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
221
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
222 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
223
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
224 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
225
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
226 /* Error if SetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
227
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
228 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
229
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
230 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
231
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
232 /* Error if GetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
233
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
234 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
235
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
236 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
237
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
238 /* Error if EnumJobs used: split-sized DEVMODE pointer in split JOB_INFO_2 */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
239
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
240 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
241
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
242 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
243
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
244 /* Error if AddPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
245
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
246 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
247
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
248 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
249
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
250 /* Error if SetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
251
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
252 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
253
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
254 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
255
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
256 /* Error if GetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
257
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
258 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
259
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
260 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
261
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
262 /* Error if AddPrinterDriver used: not used, complicated interface with split structures */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
263
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
264 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
265
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
266 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
267
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
268 /* Error if AddPrinterDriverEx used: not used, complicated interface with split structures */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
269
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
270 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
271
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
272 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
273
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
274 /* Error if EnumPrinterDrivers used: not used, complicated interface with split structures */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
275
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
276 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
277
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
278 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
279
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
280 /* Error if GetPrinterDriver used: not used, complicated interface with split structures */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
281
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
282 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
283
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
284 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
285
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
286 /* Error if GetPrinterDriverDirectory used: not used, complicated interface with split structures */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
287
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
288 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
289
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
290 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
291
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
292 /* Error if DeletePrinterDriver used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
293
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
294 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
295
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
296 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
297
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
298 /* Error if DeletePrinterDriverEx used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
299
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
300 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
301
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
302 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
303
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
304 /* Error if AddPrintProcessor used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
305
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
306 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
307
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
308 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
309
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
310 /* Error if EnumPrintProcessors used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
311
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
312 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
313
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
314 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
315
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
316 /* Error if GetPrintProcessorDirectory used: not used, complicated interface with split structures */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
317
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
318 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
319
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
320 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
321
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
322 /* Error if EnumPrintProcessorDatatypes used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
323
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
324 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
325
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
326 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
327
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
328 /* Error if DeletePrintProcessor used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
329
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
330 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
331
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
332 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
333
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
334 /* Error if StartDocPrinter used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
335
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
336 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
337
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
338 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
339
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
340 /* Error if AddJob used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
341
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
342 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
343
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
344 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
345
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
346 /* Skipping DocumentProperties because split-sized DEVMODE, error in Cygwin prototype */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
347
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
348 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
349
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
350 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
351
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
352 /* Error if AdvancedDocumentProperties used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
353
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
354 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
355
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
356 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
357
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
358 /* Error if GetPrinterData used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
359
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
360 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
361
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
362 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
363
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
364 /* Error if GetPrinterDataEx used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
365
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
366 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
367
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
368 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
369
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
370 /* Error if EnumPrinterData used: not used, complicated interface with split structures */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
371
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
372 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
373
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
374 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
375
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
376 /* Error if EnumPrinterDataEx used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
377
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
378 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
379
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
380 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
381
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
382 /* Error if EnumPrinterKey used: not used, complicated interface with split structures */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
383
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
384 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
385
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
386 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
387
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
388 /* Error if SetPrinterData used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
389
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
390 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
391
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
392 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
393
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
394 /* Error if SetPrinterDataEx used: not used, complicated interface with split structures */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
395
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
396 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
397
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
398 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
399
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
400 /* Error if DeletePrinterData used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
401
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
402 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
403
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
404 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
405
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
406 /* Error if DeletePrinterDataEx used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
407
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
408 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
409
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
410 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
411
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
412 /* Error if DeletePrinterKey used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
413
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
414 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
415
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
416 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
417
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
418 /* Error if PrinterMessageBox used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
419
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
420 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
421
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
422 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
423
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
424 /* Error if AddForm used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
425
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
426 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
427
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
428 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
429
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
430 /* Error if DeleteForm used: not used, complicated interface with split structures */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
431
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
432 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
433
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
434 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
435
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
436 /* Error if GetForm used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
437
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
438 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
439
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
440 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
441
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
442 /* Error if SetForm used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
443
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
444 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
445
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
446 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
447
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
448 /* Error if EnumForms used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
449
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
450 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
451
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
452 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
453
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
454 /* Error if EnumMonitors used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
455
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
456 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
457
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
458 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
459
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
460 /* Error if AddMonitor used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
461
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
462 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
463
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
464 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
465
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
466 /* Error if DeleteMonitor used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
467
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
468 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
469
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
470 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
471
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
472 /* Error if EnumPorts used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
473
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
474 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
475
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
476 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
477
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
478 /* Error if AddPort used: not used, complicated interface with split structures */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
479
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
480 #endif /* defined (HAVE_MS_WINDOWS) */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
481
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
482 #if defined (HAVE_MS_WINDOWS)
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
483
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
484 /* Error if ConfigurePort used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
485
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
486 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
487
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
488 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
489
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
490 /* Error if DeletePort used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
491
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
492 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
493
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
494 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
495
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
496 /* Error if XcvData used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
497
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
498 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
499
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
500 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
501
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
502 /* Error if GetDefaultPrinter used: Function needs review to determine how to handle it */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
503
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
504 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
505
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
506 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
507
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
508 /* Error if SetDefaultPrinter used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
509
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
510 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
511
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
512 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
513
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
514 /* Error if SetPort used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
515
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
516 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
517
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
518 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
519
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
520 /* Error if AddPrinterConnection used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
521
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
522 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
523
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
524 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
525
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
526 /* Error if DeletePrinterConnection used: not used, complicated interface with split structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
527
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
528 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
529
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
530 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
531
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
532 /* Error if AddPrintProvidor used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
533
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
534 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
535
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
536 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
537
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
538 /* Error if DeletePrintProvidor used: not used, complicated interface with split structures */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
539
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
540 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
541
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
542 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
543
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
544 /* Error if AddPrinterConnection2 used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
545
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
546 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
547
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
548 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
549
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
550 /* Error if DeletePrinterDriverPackage used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
551
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
552 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
553
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
554 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
555
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
556 /* Error if DocumentEvent used: HST: new? -- needs review */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
557
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
558 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
559
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
560 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
561
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
562 /* Error if GetCorePrinterDrivers used: HST: new? -- needs review */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
563
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
564 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
565
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
566 #if defined (HAVE_MS_WINDOWS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
567
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
568 /* Error if GetPrinterDriver2 used: HST: new? -- needs review */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
569
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
570 #endif /* defined (HAVE_MS_WINDOWS) */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
571
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
572 #if defined (HAVE_MS_WINDOWS)
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
573
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
574 /* Error if GetPrinterDriverPackagePath used: HST: new? -- needs review */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
575
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
576 #endif /* defined (HAVE_MS_WINDOWS) */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
577
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
578 #if defined (HAVE_MS_WINDOWS)
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
579
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
580 /* Error if GetSpoolFileHandle used: HST: new? -- needs review */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
581
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
582 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
583
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
584 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
585
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
586 /* Error if OpenPrinter2 used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
587
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
588 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
589
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
590 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
591
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
592 /* Error if UploadPrinterDriverPackage used: HST: new? -- needs review */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
593
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
594 #endif /* defined (HAVE_MS_WINDOWS) */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
595
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
596
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
597 /*----------------------------------------------------------------------*/
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
598 /* Processing file WINUSER.H */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
599 /*----------------------------------------------------------------------*/
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
600
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
601 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
602 qxewvsprintf (Extbyte * arg1, const Extbyte * arg2, va_list arglist)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
603 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
604 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
605 return wvsprintfW ((LPWSTR) arg1, (LPCWSTR) arg2, arglist);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
606 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
607 return wvsprintfA ((LPSTR) arg1, (LPCSTR) arg2, arglist);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
608 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
609
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
610 HKL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
611 qxeLoadKeyboardLayout (const Extbyte * pwszKLID, UINT Flags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
612 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
613 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
614 return LoadKeyboardLayoutW ((LPCWSTR) pwszKLID, Flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
615 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
616 return LoadKeyboardLayoutA ((LPCSTR) pwszKLID, Flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
617 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
618
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
619 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
620 qxeGetKeyboardLayoutName (Extbyte * pwszKLID)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
621 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
622 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
623 return GetKeyboardLayoutNameW ((LPWSTR) pwszKLID);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
624 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
625 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID);
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
626 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
627
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
628 /* Error if CreateDesktop used: split-sized LPDEVMODE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
629
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
630 /* Skipping OpenDesktop because HST_LPC...pblm_unused */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
631
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
632 /* NOTE: // callback fun differs only in string pointer type */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
633 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
634 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
635 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
636 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
637 return EnumDesktopsW (hwinsta, lpEnumFunc, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
638 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
639 return EnumDesktopsA (hwinsta, (DESKTOPENUMPROCA) lpEnumFunc, lParam);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
640 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
641
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
642 /* NOTE: error arg 1, VS6 prototype, missing const.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
643 NOTE: Prototype manually overridden.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
644 Header file claims:
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
645 WINUSERAPI HWINSTA WINAPI CreateWindowStation(LPCWSTR lpwinsta,DWORD dwFlags,ACCESS_MASK dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa)
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
646 Overridden with:
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
647 HWINSTA CreateWindowStation(LPWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
648 Differences in return-type qualifiers, e.g. WINAPI, are not important.
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
649 */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
650 HWINSTA
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
651 qxeCreateWindowStation (Extbyte * arg1, DWORD arg2, DWORD arg3, LPSECURITY_ATTRIBUTES arg4)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
652 {
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
653 if (XEUNICODE_P)
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
654 return CreateWindowStationW ((LPWSTR) arg1, arg2, arg3, arg4);
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
655 else
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
656 return CreateWindowStationA ((LPSTR) arg1, arg2, arg3, arg4);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
657 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
658
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
659 /* Skipping OpenWindowStation because HST_LPC...pblm_unused */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
660
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
661 /* NOTE: // callback fun differs only in string pointer type */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
662 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
663 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
664 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
665 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
666 return EnumWindowStationsW (lpEnumFunc, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
667 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
668 return EnumWindowStationsA ((WINSTAENUMPROCA) lpEnumFunc, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
669 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
670
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
671 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
672 qxeGetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
673 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
674 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
675 return GetUserObjectInformationW (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
676 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
677 return GetUserObjectInformationA (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
678 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
679
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
680 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
681 qxeSetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
682 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
683 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
684 return SetUserObjectInformationW (hObj, nIndex, pvInfo, nLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
685 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
686 return SetUserObjectInformationA (hObj, nIndex, pvInfo, nLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
687 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
688
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
689 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
690 qxeRegisterWindowMessage (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
691 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
692 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
693 return RegisterWindowMessageW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
694 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
695 return RegisterWindowMessageA ((LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
696 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
697
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
698 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
699 qxeGetMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
700 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
701 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
702 return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
703 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
704 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
705 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
706
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
707 LRESULT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
708 qxeDispatchMessage (CONST MSG * lpMsg)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
709 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
710 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
711 return DispatchMessageW (lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
712 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
713 return DispatchMessageA (lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
714 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
715
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
716 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
717 qxePeekMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
718 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
719 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
720 return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
721 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
722 return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
723 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
724
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
725 /* Skipping SendMessage because split messages and structures */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
726
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
727 /* Error if SendMessageTimeout used: VS6 has erroneous seventh parameter DWORD_PTR instead of PDWORD_PTR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
728
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
729 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
730 qxeSendNotifyMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
731 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
732 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
733 return SendNotifyMessageW (hWnd, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
734 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
735 return SendNotifyMessageA (hWnd, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
736 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
737
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
738 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
739 qxeSendMessageCallback (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, ULONG_PTR dwData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
740 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
741 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
742 return SendMessageCallbackW (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
743 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
744 return SendMessageCallbackA (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
745 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
746
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
747 /* Error if BroadcastSystemMessageEx used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
748
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
749 /* Error if BroadcastSystemMessage used: win95 version not split; NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
750
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
751 /* Error if RegisterDeviceNotification used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
752
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
753 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
754 qxePostMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
755 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
756 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
757 return PostMessageW (hWnd, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
758 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
759 return PostMessageA (hWnd, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
760 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
761
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
762 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
763 qxePostThreadMessage (DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
764 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
765 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
766 return PostThreadMessageW (idThread, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
767 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
768 return PostThreadMessageA (idThread, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
769 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
770
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
771 /* Skipping DefWindowProc because return value is conditionalized on _MAC, messes up parser */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
772
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
773 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
774
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
775 /* Skipping RegisterClass because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
776
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
777 /* Skipping UnregisterClass because need to intercept for reasons related to RegisterClass */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
778
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
779 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
780 qxeGetClassInfo (HINSTANCE hInstance, const Extbyte * lpClassName, LPWNDCLASSW lpWndClass)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
781 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
782 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
783 return GetClassInfoW (hInstance, (LPCWSTR) lpClassName, lpWndClass);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
784 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
785 return GetClassInfoA (hInstance, (LPCSTR) lpClassName, (LPWNDCLASSA) lpWndClass);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
786 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
787
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
788 /* Skipping RegisterClassEx because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASSEX; NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
789
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
790 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
791 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
792 qxeGetClassInfoEx (HINSTANCE hInstance, const Extbyte * lpszClass, LPWNDCLASSEXW lpwcx)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
793 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
794 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
795 return GetClassInfoExW (hInstance, (LPCWSTR) lpszClass, lpwcx);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
796 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
797 return GetClassInfoExA (hInstance, (LPCSTR) lpszClass, (LPWNDCLASSEXA) lpwcx);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
798 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
799
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
800 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
801 qxeCreateWindowEx (DWORD dwExStyle, const Extbyte * lpClassName, const Extbyte * lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
802 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
803 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
804 return CreateWindowExW (dwExStyle, (LPCWSTR) lpClassName, (LPCWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
805 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
806 return CreateWindowExA (dwExStyle, (LPCSTR) lpClassName, (LPCSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
807 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
808
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
809 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
810 qxeCreateDialogParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
811 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
812 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
813 return CreateDialogParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
814 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
815 return CreateDialogParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
816 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
817
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
818 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
819 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
820 qxeCreateDialogIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
821 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
822 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
823 return CreateDialogIndirectParamW (hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
824 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
825 return CreateDialogIndirectParamA (hInstance, (LPCDLGTEMPLATEA) lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
826 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
827
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
828 INT_PTR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
829 qxeDialogBoxParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
830 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
831 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
832 return DialogBoxParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
833 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
834 return DialogBoxParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
835 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
836
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
837 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
838 INT_PTR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
839 qxeDialogBoxIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW hDialogTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
840 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
841 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
842 return DialogBoxIndirectParamW (hInstance, hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
843 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
844 return DialogBoxIndirectParamA (hInstance, (LPCDLGTEMPLATEA) hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
845 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
846
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
847 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
848 qxeSetDlgItemText (HWND hDlg, int nIDDlgItem, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
849 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
850 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
851 return SetDlgItemTextW (hDlg, nIDDlgItem, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
852 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
853 return SetDlgItemTextA (hDlg, nIDDlgItem, (LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
854 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
855
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
856 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
857 qxeGetDlgItemText (HWND hDlg, int nIDDlgItem, Extbyte * lpString, int cchMax)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
858 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
859 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
860 return GetDlgItemTextW (hDlg, nIDDlgItem, (LPWSTR) lpString, cchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
861 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
862 return GetDlgItemTextA (hDlg, nIDDlgItem, (LPSTR) lpString, cchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
863 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
864
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
865 LRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
866 qxeSendDlgItemMessage (HWND hDlg, int nIDDlgItem, UINT Msg, WPARAM wParam, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
867 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
868 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
869 return SendDlgItemMessageW (hDlg, nIDDlgItem, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
870 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
871 return SendDlgItemMessageA (hDlg, nIDDlgItem, Msg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
872 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
873
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
874 /* Error if DefDlgProc used: return value is conditionalized on _MAC, messes up parser */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
875
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
876 #if !defined (CYGWIN_HEADERS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
877
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
878 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
879 qxeCallMsgFilter (LPMSG lpMsg, int nCode)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
880 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
881 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
882 return CallMsgFilterW (lpMsg, nCode);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
883 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
884 return CallMsgFilterA (lpMsg, nCode);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
885 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
886
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
887 #endif /* !defined (CYGWIN_HEADERS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
888
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
889 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
890 qxeRegisterClipboardFormat (const Extbyte * lpszFormat)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
891 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
892 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
893 return RegisterClipboardFormatW ((LPCWSTR) lpszFormat);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
894 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
895 return RegisterClipboardFormatA ((LPCSTR) lpszFormat);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
896 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
897
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
898 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
899 qxeGetClipboardFormatName (UINT format, Extbyte * lpszFormatName, int cchMaxCount)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
900 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
901 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
902 return GetClipboardFormatNameW (format, (LPWSTR) lpszFormatName, cchMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
903 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
904 return GetClipboardFormatNameA (format, (LPSTR) lpszFormatName, cchMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
905 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
906
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
907 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
908 qxeCharToOem (const Extbyte * lpszSrc, LPSTR lpszDst)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
909 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
910 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
911 return CharToOemW ((LPCWSTR) lpszSrc, lpszDst);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
912 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
913 return CharToOemA ((LPCSTR) lpszSrc, lpszDst);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
914 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
915
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
916 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
917 qxeOemToChar (LPCSTR lpszSrc, Extbyte * lpszDst)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
918 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
919 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
920 return OemToCharW (lpszSrc, (LPWSTR) lpszDst);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
921 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
922 return OemToCharA (lpszSrc, (LPSTR) lpszDst);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
923 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
924
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
925 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
926 qxeCharToOemBuff (const Extbyte * lpszSrc, LPSTR lpszDst, DWORD cchDstLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
927 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
928 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
929 return CharToOemBuffW ((LPCWSTR) lpszSrc, lpszDst, cchDstLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
930 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
931 return CharToOemBuffA ((LPCSTR) lpszSrc, lpszDst, cchDstLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
932 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
933
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
934 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
935 qxeOemToCharBuff (LPCSTR lpszSrc, Extbyte * lpszDst, DWORD cchDstLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
936 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
937 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
938 return OemToCharBuffW (lpszSrc, (LPWSTR) lpszDst, cchDstLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
939 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
940 return OemToCharBuffA (lpszSrc, (LPSTR) lpszDst, cchDstLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
941 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
942
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
943 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
944 qxeCharUpper (Extbyte * lpsz)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
945 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
946 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
947 return (Extbyte *) CharUpperW ((LPWSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
948 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
949 return (Extbyte *) CharUpperA ((LPSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
950 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
951
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
952 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
953 qxeCharUpperBuff (Extbyte * lpsz, DWORD cchLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
954 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
955 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
956 return CharUpperBuffW ((LPWSTR) lpsz, cchLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
957 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
958 return CharUpperBuffA ((LPSTR) lpsz, cchLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
959 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
960
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
961 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
962 qxeCharLower (Extbyte * lpsz)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
963 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
964 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
965 return (Extbyte *) CharLowerW ((LPWSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
966 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
967 return (Extbyte *) CharLowerA ((LPSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
968 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
969
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
970 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
971 qxeCharLowerBuff (Extbyte * lpsz, DWORD cchLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
972 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
973 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
974 return CharLowerBuffW ((LPWSTR) lpsz, cchLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
975 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
976 return CharLowerBuffA ((LPSTR) lpsz, cchLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
977 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
978
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
979 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
980 qxeCharNext (const Extbyte * lpsz)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
981 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
982 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
983 return (Extbyte *) CharNextW ((LPCWSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
984 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
985 return (Extbyte *) CharNextA ((LPCSTR) lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
986 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
987
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
988 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
989 qxeCharPrev (const Extbyte * lpszStart, const Extbyte * lpszCurrent)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
990 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
991 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
992 return (Extbyte *) CharPrevW ((LPCWSTR) lpszStart, (LPCWSTR) lpszCurrent);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
993 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
994 return (Extbyte *) CharPrevA ((LPCSTR) lpszStart, (LPCSTR) lpszCurrent);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
995 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
996
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
997 /* Error if IsCharAlpha used: split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
998
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
999 /* Error if IsCharAlphaNumeric used: split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1000
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1001 /* Error if IsCharUpper used: split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1002
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1003 /* Error if IsCharLower used: split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1004
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1005 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1006 qxeGetKeyNameText (LONG lParam, Extbyte * lpString, int cchSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1007 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1008 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1009 return GetKeyNameTextW (lParam, (LPWSTR) lpString, cchSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1010 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1011 return GetKeyNameTextA (lParam, (LPSTR) lpString, cchSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1012 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1013
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1014 /* Skipping VkKeyScan because split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1015
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1016 /* Error if VkKeyScanEx used: split CHAR; NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1017
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1018 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1019 qxeMapVirtualKey (UINT uCode, UINT uMapType)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1020 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1021 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1022 return MapVirtualKeyW (uCode, uMapType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1023 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1024 return MapVirtualKeyA (uCode, uMapType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1025 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1026
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1027 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1028 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1029 qxeMapVirtualKeyEx (UINT uCode, UINT uMapType, HKL dwhkl)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1030 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1031 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1032 return MapVirtualKeyExW (uCode, uMapType, dwhkl);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1033 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1034 return MapVirtualKeyExA (uCode, uMapType, dwhkl);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1035 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1036
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1037 HACCEL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1038 qxeLoadAccelerators (HINSTANCE hInstance, const Extbyte * lpTableName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1039 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1040 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1041 return LoadAcceleratorsW (hInstance, (LPCWSTR) lpTableName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1042 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1043 return LoadAcceleratorsA (hInstance, (LPCSTR) lpTableName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1044 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1045
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1046 HACCEL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1047 qxeCreateAcceleratorTable (LPACCEL paccel, int cAccel)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1048 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1049 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1050 return CreateAcceleratorTableW (paccel, cAccel);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1051 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1052 return CreateAcceleratorTableA (paccel, cAccel);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1053 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1054
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1055 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1056 qxeCopyAcceleratorTable (HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1057 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1058 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1059 return CopyAcceleratorTableW (hAccelSrc, lpAccelDst, cAccelEntries);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1060 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1061 return CopyAcceleratorTableA (hAccelSrc, lpAccelDst, cAccelEntries);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1062 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1063
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1064 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1065 qxeTranslateAccelerator (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1066 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1067 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1068 return TranslateAcceleratorW (hWnd, hAccTable, lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1069 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1070 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1071 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1072
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1073 HMENU
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1074 qxeLoadMenu (HINSTANCE hInstance, const Extbyte * lpMenuName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1075 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1076 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1077 return LoadMenuW (hInstance, (LPCWSTR) lpMenuName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1078 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1079 return LoadMenuA (hInstance, (LPCSTR) lpMenuName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1080 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1081
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1082 HMENU
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1083 qxeLoadMenuIndirect (CONST MENUTEMPLATEW * lpMenuTemplate)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1084 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1085 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1086 return LoadMenuIndirectW (lpMenuTemplate);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1087 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1088 return LoadMenuIndirectA ((CONST MENUTEMPLATEA *) lpMenuTemplate);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1089 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1090
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1091 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1092 qxeChangeMenu (HMENU hMenu, UINT cmd, const Extbyte * lpszNewItem, UINT cmdInsert, UINT flags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1093 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1094 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1095 return ChangeMenuW (hMenu, cmd, (LPCWSTR) lpszNewItem, cmdInsert, flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1096 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1097 return ChangeMenuA (hMenu, cmd, (LPCSTR) lpszNewItem, cmdInsert, flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1098 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1099
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1100 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1101 qxeGetMenuString (HMENU hMenu, UINT uIDItem, Extbyte * lpString, int cchMax, UINT flags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1102 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1103 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1104 return GetMenuStringW (hMenu, uIDItem, (LPWSTR) lpString, cchMax, flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1105 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1106 return GetMenuStringA (hMenu, uIDItem, (LPSTR) lpString, cchMax, flags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1107 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1108
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1109 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1110 qxeInsertMenu (HMENU hMenu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1111 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1112 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1113 return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1114 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1115 return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1116 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1117
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1118 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1119 qxeAppendMenu (HMENU hMenu, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1120 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1121 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1122 return AppendMenuW (hMenu, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1123 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1124 return AppendMenuA (hMenu, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1125 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1126
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1127 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1128 qxeModifyMenu (HMENU hMnu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1129 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1130 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1131 return ModifyMenuW (hMnu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1132 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1133 return ModifyMenuA (hMnu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1134 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1135
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1136 /* NOTE: NT 4.0+ only */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1137 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1138 qxeInsertMenuItem (HMENU hmenu, UINT item, WINBOOL fByPosition, LPCMENUITEMINFOW lpmi)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1139 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1140 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1141 return InsertMenuItemW (hmenu, item, fByPosition, lpmi);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1142 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1143 return InsertMenuItemA (hmenu, item, fByPosition, (LPCMENUITEMINFOA) lpmi);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1144 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1145
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1146 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1147 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1148 qxeGetMenuItemInfo (HMENU hmenu, UINT item, WINBOOL fByPosition, LPMENUITEMINFOW lpmii)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1149 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1150 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1151 return GetMenuItemInfoW (hmenu, item, fByPosition, lpmii);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1152 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1153 return GetMenuItemInfoA (hmenu, item, fByPosition, (LPMENUITEMINFOA) lpmii);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1154 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1155
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1156 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1157 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1158 qxeSetMenuItemInfo (HMENU hmenu, UINT item, WINBOOL fByPositon, LPCMENUITEMINFOW lpmii)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1159 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1160 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1161 return SetMenuItemInfoW (hmenu, item, fByPositon, lpmii);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1162 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1163 return SetMenuItemInfoA (hmenu, item, fByPositon, (LPCMENUITEMINFOA) lpmii);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1164 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1165
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1166 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1167 qxeDrawText (HDC hdc, const Extbyte * lpchText, int cchText, LPRECT lprc, UINT format)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1168 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1169 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1170 return DrawTextW (hdc, (LPCWSTR) lpchText, cchText, lprc, format);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1171 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1172 return DrawTextA (hdc, (LPCSTR) lpchText, cchText, lprc, format);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1173 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1174
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1175 /* NOTE: NT 4.0+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1176 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1177 qxeDrawTextEx (HDC hdc, Extbyte * lpchText, int cchText, LPRECT lprc, UINT format, LPDRAWTEXTPARAMS lpdtp)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1178 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1179 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1180 return DrawTextExW (hdc, (LPWSTR) lpchText, cchText, lprc, format, lpdtp);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1181 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1182 return DrawTextExA (hdc, (LPSTR) lpchText, cchText, lprc, format, lpdtp);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1183 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1184
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1185 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1186 qxeGrayString (HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1187 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1188 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1189 return GrayStringW (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1190 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1191 return GrayStringA (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1192 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1193
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1194 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1195 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1196 qxeDrawState (HDC hdc, HBRUSH hbrFore, DRAWSTATEPROC qfnCallBack, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1197 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1198 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1199 return DrawStateW (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1200 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1201 return DrawStateA (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1202 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1203
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
1204 /* Skipping TabbedTextOut because HST_LPC...pblm_unused */
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
1205
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
1206 /* Skipping GetTabbedTextExtent because HST_LPC...pblm_unused */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1207
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1208 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1209 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1210 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1211 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1212 return SetPropW (hWnd, (LPCWSTR) lpString, hData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1213 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1214 return SetPropA (hWnd, (LPCSTR) lpString, hData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1215 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1216
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1217 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1218 qxeGetProp (HWND hWnd, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1219 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1220 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1221 return GetPropW (hWnd, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1222 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1223 return GetPropA (hWnd, (LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1224 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1225
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1226 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1227 qxeRemoveProp (HWND hWnd, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1228 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1229 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1230 return RemovePropW (hWnd, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1231 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1232 return RemovePropA (hWnd, (LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1233 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1234
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1235 /* NOTE: // callback fun differs only in string pointer type */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1236 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1237 qxeEnumPropsEx (HWND hWnd, PROPENUMPROCEXW lpEnumFunc, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1238 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1239 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1240 return EnumPropsExW (hWnd, lpEnumFunc, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1241 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1242 return EnumPropsExA (hWnd, (PROPENUMPROCEXA) lpEnumFunc, lParam);
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
1243 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
1244
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
1245 /* NOTE: // callback fun differs only in string pointer type */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1246 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1247 qxeEnumProps (HWND hWnd, PROPENUMPROCW lpEnumFunc)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1248 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1249 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1250 return EnumPropsW (hWnd, lpEnumFunc);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1251 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1252 return EnumPropsA (hWnd, (PROPENUMPROCA) lpEnumFunc);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1253 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1254
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1255 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1256 qxeSetWindowText (HWND hWnd, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1257 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1258 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1259 return SetWindowTextW (hWnd, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1260 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1261 return SetWindowTextA (hWnd, (LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1262 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1263
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1264 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1265 qxeGetWindowText (HWND hWnd, Extbyte * lpString, int nMaxCount)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1266 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1267 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1268 return GetWindowTextW (hWnd, (LPWSTR) lpString, nMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1269 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1270 return GetWindowTextA (hWnd, (LPSTR) lpString, nMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1271 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1272
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1273 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1274 qxeGetWindowTextLength (HWND hWnd)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1275 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1276 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1277 return GetWindowTextLengthW (hWnd);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1278 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1279 return GetWindowTextLengthA (hWnd);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1280 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1281
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1282 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1283 qxeMessageBox (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1284 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1285 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1286 return MessageBoxW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1287 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1288 return MessageBoxA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1289 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1290
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1291 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1292 qxeMessageBoxEx (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType, WORD wLanguageId)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1293 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1294 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1295 return MessageBoxExW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType, wLanguageId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1296 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1297 return MessageBoxExA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType, wLanguageId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1298 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1299
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1300 /* Error if MessageBoxIndirect used: Cygwin has split MSGBOXPARAMS* instead of LPMSGBOXPARAMS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1301
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1302 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1303 qxeGetWindowLong (HWND hWnd, int nIndex)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1304 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1305 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1306 return GetWindowLongW (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1307 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1308 return GetWindowLongA (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1309 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1310
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1311 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1312 qxeSetWindowLong (HWND hWnd, int nIndex, LONG dwNewLong)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1313 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1314 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1315 return SetWindowLongW (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1316 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1317 return SetWindowLongA (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1318 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1319
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1320 LONG_PTR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1321 qxeGetWindowLongPtr (HWND hWnd, int nIndex)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1322 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1323 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1324 return GetWindowLongPtrW (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1325 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1326 return GetWindowLongPtrA (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1327 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1328
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1329 LONG_PTR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1330 qxeSetWindowLongPtr (HWND hWnd, int nIndex, LONG_PTR dwNewLong)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1331 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1332 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1333 return SetWindowLongPtrW (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1334 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1335 return SetWindowLongPtrA (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1336 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1337
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1338 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1339 qxeGetClassLong (HWND hWnd, int nIndex)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1340 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1341 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1342 return GetClassLongW (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1343 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1344 return GetClassLongA (hWnd, nIndex);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1345 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1346
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1347 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1348 qxeSetClassLong (HWND hWnd, int nIndex, LONG dwNewLong)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1349 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1350 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1351 return SetClassLongW (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1352 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1353 return SetClassLongA (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1354 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1355
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1356 /* Error if GetClassLongPtr used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1357
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1358 ULONG_PTR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1359 qxeSetClassLongPtr (HWND hWnd, int nIndex, LONG_PTR dwNewLong)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1360 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1361 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1362 return SetClassLongPtrW (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1363 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1364 return SetClassLongPtrA (hWnd, nIndex, dwNewLong);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1365 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1366
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1367 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1368 qxeFindWindow (const Extbyte * lpClassName, const Extbyte * lpWindowName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1369 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1370 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1371 return FindWindowW ((LPCWSTR) lpClassName, (LPCWSTR) lpWindowName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1372 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1373 return FindWindowA ((LPCSTR) lpClassName, (LPCSTR) lpWindowName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1374 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1375
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1376 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1377 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1378 qxeFindWindowEx (HWND hWndParent, HWND hWndChildAfter, const Extbyte * lpszClass, const Extbyte * lpszWindow)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1379 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1380 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1381 return FindWindowExW (hWndParent, hWndChildAfter, (LPCWSTR) lpszClass, (LPCWSTR) lpszWindow);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1382 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1383 return FindWindowExA (hWndParent, hWndChildAfter, (LPCSTR) lpszClass, (LPCSTR) lpszWindow);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1384 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1385
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1386 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1387 qxeGetClassName (HWND hWnd, Extbyte * lpClassName, int nMaxCount)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1388 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1389 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1390 return GetClassNameW (hWnd, (LPWSTR) lpClassName, nMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1391 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1392 return GetClassNameA (hWnd, (LPSTR) lpClassName, nMaxCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1393 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1394
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1395 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1396
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1397 HHOOK
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1398 qxeSetWindowsHookEx (int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1399 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1400 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1401 return SetWindowsHookExW (idHook, lpfn, hmod, dwThreadId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1402 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1403 return SetWindowsHookExA (idHook, lpfn, hmod, dwThreadId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1404 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1405
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1406 HBITMAP
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1407 qxeLoadBitmap (HINSTANCE hInstance, const Extbyte * lpBitmapName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1408 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1409 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1410 return LoadBitmapW (hInstance, (LPCWSTR) lpBitmapName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1411 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1412 return LoadBitmapA (hInstance, (LPCSTR) lpBitmapName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1413 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1414
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1415 HCURSOR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1416 qxeLoadCursor (HINSTANCE hInstance, const Extbyte * lpCursorName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1417 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1418 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1419 return LoadCursorW (hInstance, (LPCWSTR) lpCursorName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1420 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1421 return LoadCursorA (hInstance, (LPCSTR) lpCursorName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1422 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1423
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1424 HCURSOR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1425 qxeLoadCursorFromFile (const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1426 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1427 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1428 return LoadCursorFromFileW ((LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1429 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1430 return LoadCursorFromFileA ((LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1431 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1432
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1433 HICON
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1434 qxeLoadIcon (HINSTANCE hInstance, const Extbyte * lpIconName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1435 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1436 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1437 return LoadIconW (hInstance, (LPCWSTR) lpIconName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1438 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1439 return LoadIconA (hInstance, (LPCSTR) lpIconName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1440 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1441
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1442 /* Error if PrivateExtractIcons used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1443
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1444 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1445 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1446 qxeLoadImage (HINSTANCE hInst, const Extbyte * name, UINT type, int cx, int cy, UINT fuLoad)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1447 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1448 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1449 return LoadImageW (hInst, (LPCWSTR) name, type, cx, cy, fuLoad);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1450 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1451 return LoadImageA (hInst, (LPCSTR) name, type, cx, cy, fuLoad);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1452 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1453
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1454 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1455 qxeIsDialogMessage (HWND hDlg, LPMSG lpMsg)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1456 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1457 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1458 return IsDialogMessageW (hDlg, lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1459 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1460 return IsDialogMessageA (hDlg, lpMsg);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1461 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1462
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1463 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1464 qxeDlgDirList (HWND hDlg, Extbyte * lpPathSpec, int nIDListBox, int nIDStaticPath, UINT uFileType)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1465 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1466 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1467 return DlgDirListW (hDlg, (LPWSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1468 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1469 return DlgDirListA (hDlg, (LPSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1470 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1471
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1472 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1473 qxeDlgDirSelectEx (HWND hwndDlg, Extbyte * lpString, int chCount, int idListBox)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1474 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1475 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1476 return DlgDirSelectExW (hwndDlg, (LPWSTR) lpString, chCount, idListBox);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1477 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1478 return DlgDirSelectExA (hwndDlg, (LPSTR) lpString, chCount, idListBox);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1479 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1480
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1481 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1482 qxeDlgDirListComboBox (HWND hDlg, Extbyte * lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT uFiletype)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1483 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1484 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1485 return DlgDirListComboBoxW (hDlg, (LPWSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1486 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1487 return DlgDirListComboBoxA (hDlg, (LPSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1488 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1489
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1490 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1491 qxeDlgDirSelectComboBoxEx (HWND hwndDlg, Extbyte * lpString, int cchOut, int idComboBox)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1492 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1493 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1494 return DlgDirSelectComboBoxExW (hwndDlg, (LPWSTR) lpString, cchOut, idComboBox);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1495 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1496 return DlgDirSelectComboBoxExA (hwndDlg, (LPSTR) lpString, cchOut, idComboBox);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1497 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1498
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1499 LRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1500 qxeDefFrameProc (HWND hWnd, HWND hWndMDIClient, UINT uMsg, WPARAM wParam, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1501 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1502 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1503 return DefFrameProcW (hWnd, hWndMDIClient, uMsg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1504 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1505 return DefFrameProcA (hWnd, hWndMDIClient, uMsg, wParam, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1506 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1507
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1508 /* Error if DefMDIChildProc used: return value is conditionalized on _MAC, messes up parser */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1509
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1510 /* NOTE: error arg 1, VS6 prototype, missing const.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1511 NOTE: Prototype manually overridden.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1512 Header file claims:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1513 WINUSERAPI HWND WINAPI CreateMDIWindow(LPCWSTR lpClassName,LPCWSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HINSTANCE hInstance,LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1514 Overridden with:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1515 HWND CreateMDIWindow(LPWSTR,LPWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1516 Differences in return-type qualifiers, e.g. WINAPI, are not important.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1517 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1518 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1519 qxeCreateMDIWindow (Extbyte * arg1, Extbyte * arg2, DWORD arg3, int arg4, int arg5, int arg6, int arg7, HWND arg8, HINSTANCE arg9, LPARAM arg10)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1520 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1521 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1522 return CreateMDIWindowW ((LPWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1523 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1524 return CreateMDIWindowA ((LPSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1525 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1526
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1527 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1528 qxeWinHelp (HWND hWndMain, const Extbyte * lpszHelp, UINT uCommand, ULONG_PTR dwData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1529 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1530 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1531 return WinHelpW (hWndMain, (LPCWSTR) lpszHelp, uCommand, dwData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1532 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1533 return WinHelpA (hWndMain, (LPCSTR) lpszHelp, uCommand, dwData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1534 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1535
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1536 /* Error if ChangeDisplaySettings used: split-sized LPDEVMODE */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1537
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1538 /* Error if ChangeDisplaySettingsEx used: split-sized LPDEVMODE; NT 5.0/Win98+ only */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1539
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1540 /* Error if EnumDisplaySettings used: split-sized LPDEVMODE */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1541
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
1542 /* Error if EnumDisplaySettingsEx used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
1543
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1544 /* Error if EnumDisplayDevices used: split-sized PDISPLAY_DEVICE; NT 5.0+ only, no Win98 */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1545
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1546 /* NOTE: probs w/ICONMETRICS, NONCLIENTMETRICS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1547 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1548 qxeSystemParametersInfo (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1549 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1550 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1551 return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1552 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1553 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1554 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1555
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1556 /* Error if GetMonitorInfo used: NT 5.0/Win98+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1557
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1558 /* Error if GetWindowModuleFileName used: NT 5.0+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1559
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1560 /* Error if RealGetWindowClass used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1561
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1562 /* Error if GetAltTabInfo used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1563
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1564 /* Error if GetRawInputDeviceInfo used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1565
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1566 /* Error if CreateDesktopEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1567
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1568
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1569 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1570 /* Processing file SYNCHAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1571 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1572
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1573 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1574 qxeOpenMutex (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1575 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1576 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1577 return OpenMutexW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1578 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1579 return OpenMutexA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1580 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1581
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1582 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1583 qxeOpenEvent (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1584 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1585 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1586 return OpenEventW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1587 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1588 return OpenEventA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1589 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1590
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1591 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1592 qxeOpenSemaphore (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1593 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1594 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1595 return OpenSemaphoreW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1596 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1597 return OpenSemaphoreA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1598 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1599
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1600 /* Error if SleepConditionVariableSR used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1601
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1602 /* Error if CreateMutexEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1603
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1604 /* Error if CreateEventEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1605
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1606 /* Error if CreateSemaphoreEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1607
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1608 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1609 qxeCreateMutex (LPSECURITY_ATTRIBUTES lpMutexAttributes, WINBOOL bInitialOwner, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1610 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1611 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1612 return CreateMutexW (lpMutexAttributes, bInitialOwner, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1613 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1614 return CreateMutexA (lpMutexAttributes, bInitialOwner, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1615 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1616
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1617 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1618 qxeCreateEvent (LPSECURITY_ATTRIBUTES lpEventAttributes, WINBOOL bManualReset, WINBOOL bInitialState, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1619 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1620 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1621 return CreateEventW (lpEventAttributes, bManualReset, bInitialState, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1622 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1623 return CreateEventA (lpEventAttributes, bManualReset, bInitialState, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1624 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1625
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1626 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1627 qxeOpenWaitableTimer (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpTimerName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1628 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1629 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1630 return OpenWaitableTimerW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpTimerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1631 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1632 return OpenWaitableTimerA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpTimerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1633 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1634
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1635 /* Error if CreateWaitableTimerEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1636
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1637
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1638 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1639 /* Processing file SECURITYBASEAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1640 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1641
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1642 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1643 qxeAccessCheckAndAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR SecurityDescriptor, DWORD DesiredAccess, PGENERIC_MAPPING GenericMapping, WINBOOL ObjectCreation, LPDWORD GrantedAccess, LPBOOL AccessStatus, LPBOOL pfGenerateOnClose)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1644 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1645 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1646 return AccessCheckAndAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1647 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1648 return AccessCheckAndAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1649 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1650
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1651 /* Error if AccessCheckByTypeAndAuditAlarm used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1652
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1653 /* Error if AccessCheckByTypeResultListAndAuditAlarm used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1654
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1655 /* Error if AccessCheckByTypeResultListAndAuditAlarmByHandle used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1656
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1657 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1658 qxeGetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION RequestedInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1659 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1660 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1661 return GetFileSecurityW ((LPCWSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1662 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1663 return GetFileSecurityA ((LPCSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1664 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1665
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1666 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1667 qxeObjectCloseAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, WINBOOL GenerateOnClose)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1668 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1669 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1670 return ObjectCloseAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1671 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1672 return ObjectCloseAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1673 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1674
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1675 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1676 qxeObjectDeleteAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, WINBOOL GenerateOnClose)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1677 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1678 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1679 return ObjectDeleteAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1680 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1681 return ObjectDeleteAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1682 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1683
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1684 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1685 qxeObjectOpenAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE ClientToken, DWORD DesiredAccess, DWORD GrantedAccess, PPRIVILEGE_SET Privileges, WINBOOL ObjectCreation, WINBOOL AccessGranted, LPBOOL GenerateOnClose)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1686 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1687 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1688 return ObjectOpenAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1689 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1690 return ObjectOpenAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1691 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1692
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1693 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1694 qxeObjectPrivilegeAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, HANDLE ClientToken, DWORD DesiredAccess, PPRIVILEGE_SET Privileges, WINBOOL AccessGranted)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1695 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1696 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1697 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1698 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1699 return ObjectPrivilegeAuditAlarmA ((LPCSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1700 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1701
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1702 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1703 qxePrivilegedServiceAuditAlarm (const Extbyte * SubsystemName, const Extbyte * ServiceName, HANDLE ClientToken, PPRIVILEGE_SET Privileges, WINBOOL AccessGranted)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1704 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1705 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1706 return PrivilegedServiceAuditAlarmW ((LPCWSTR) SubsystemName, (LPCWSTR) ServiceName, ClientToken, Privileges, AccessGranted);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1707 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1708 return PrivilegedServiceAuditAlarmA ((LPCSTR) SubsystemName, (LPCSTR) ServiceName, ClientToken, Privileges, AccessGranted);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1709 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1710
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1711 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1712 qxeSetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1713 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1714 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1715 return SetFileSecurityW ((LPCWSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1716 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1717 return SetFileSecurityA ((LPCSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1718 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1719
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1720
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1721 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1722 /* Processing file PROCESSENV.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1723 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1724
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1725 /* Error if GetEnvironmentStrings used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1726
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1727 /* Error if SetEnvironmentStrings used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1728
5921
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
1729 /* Error if FreeEnvironmentStrings used: HST: needs fancy split, never used */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1730
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1731 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1732 qxeGetCommandLine (void)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1733 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1734 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1735 return (Extbyte *) GetCommandLineW ();
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1736 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1737 return (Extbyte *) GetCommandLineA ();
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1738 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1739
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1740 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1741 qxeGetEnvironmentVariable (const Extbyte * lpName, Extbyte * lpBuffer, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1742 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1743 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1744 return GetEnvironmentVariableW ((LPCWSTR) lpName, (LPWSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1745 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1746 return GetEnvironmentVariableA ((LPCSTR) lpName, (LPSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1747 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1748
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1749 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1750 qxeSetEnvironmentVariable (const Extbyte * lpName, const Extbyte * lpValue)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1751 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1752 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1753 return SetEnvironmentVariableW ((LPCWSTR) lpName, (LPCWSTR) lpValue);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1754 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1755 return SetEnvironmentVariableA ((LPCSTR) lpName, (LPCSTR) lpValue);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1756 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1757
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1758 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1759 qxeExpandEnvironmentStrings (const Extbyte * lpSrc, Extbyte * lpDst, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1760 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1761 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1762 return ExpandEnvironmentStringsW ((LPCWSTR) lpSrc, (LPWSTR) lpDst, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1763 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1764 return ExpandEnvironmentStringsA ((LPCSTR) lpSrc, (LPSTR) lpDst, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1765 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1766
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1767 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1768 qxeSetCurrentDirectory (const Extbyte * lpPathName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1769 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1770 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1771 return SetCurrentDirectoryW ((LPCWSTR) lpPathName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1772 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1773 return SetCurrentDirectoryA ((LPCSTR) lpPathName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1774 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1775
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1776 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1777 qxeGetCurrentDirectory (DWORD nBufferLength, Extbyte * lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1778 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1779 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1780 return GetCurrentDirectoryW (nBufferLength, (LPWSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1781 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1782 return GetCurrentDirectoryA (nBufferLength, (LPSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1783 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1784
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1785 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1786 qxeSearchPath (const Extbyte * lpPath, const Extbyte * lpFileName, const Extbyte * lpExtension, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1787 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1788 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1789 return SearchPathW ((LPCWSTR) lpPath, (LPCWSTR) lpFileName, (LPCWSTR) lpExtension, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1790 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1791 return SearchPathA ((LPCSTR) lpPath, (LPCSTR) lpFileName, (LPCSTR) lpExtension, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1792 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1793
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1794 /* Error if NeedCurrentDirectoryForExePath used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1795
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1796
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1797 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1798 /* Processing file DBGENG.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1799 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1800
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1801
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1802 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1803 /* Processing file LIBLOADERAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1804 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1805
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1806 HRSRC
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1807 qxeFindResourceEx (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1808 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1809 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1810 return FindResourceExW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1811 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1812 return FindResourceExA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1813 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1814
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1815 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1816 qxeGetModuleFileName (HMODULE hModule, Extbyte * lpFilename, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1817 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1818 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1819 return GetModuleFileNameW (hModule, (LPWSTR) lpFilename, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1820 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1821 return GetModuleFileNameA (hModule, (LPSTR) lpFilename, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1822 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1823
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1824 HMODULE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1825 qxeGetModuleHandle (const Extbyte * lpModuleName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1826 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1827 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1828 return GetModuleHandleW ((LPCWSTR) lpModuleName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1829 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1830 return GetModuleHandleA ((LPCSTR) lpModuleName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1831 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1832
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1833 HMODULE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1834 qxeLoadLibraryEx (const Extbyte * lpLibFileName, HANDLE hFile, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1835 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1836 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1837 return LoadLibraryExW ((LPCWSTR) lpLibFileName, hFile, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1838 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1839 return LoadLibraryExA ((LPCSTR) lpLibFileName, hFile, dwFlags);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1840 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1841
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1842 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1843 qxeLoadString (HINSTANCE hInstance, UINT uID, Extbyte * lpBuffer, int cchBufferMax)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1844 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1845 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1846 return LoadStringW (hInstance, uID, (LPWSTR) lpBuffer, cchBufferMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1847 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1848 return LoadStringA (hInstance, uID, (LPSTR) lpBuffer, cchBufferMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1849 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1850
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1851 /* Error if GetModuleHandleEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1852
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1853 /* Error if EnumResourceLanguages used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1854
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1855 /* Error if EnumResourceLanguagesEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1856
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1857 /* Error if EnumResourceNamesEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1858
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1859 /* Error if EnumResourceTypesEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1860
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1861
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1862 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1863 /* Processing file IMM.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1864 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1865
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1866 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1867
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1868 HKL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1869 qxeImmInstallIME (const Extbyte * lpszIMEFileName, const Extbyte * lpszLayoutText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1870 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1871 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1872 return ImmInstallIMEW ((LPCWSTR) lpszIMEFileName, (LPCWSTR) lpszLayoutText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1873 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1874 return ImmInstallIMEA ((LPCSTR) lpszIMEFileName, (LPCSTR) lpszLayoutText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1875 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1876
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1877 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1878
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1879 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1880
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1881 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1882 qxeImmGetDescription (HKL arg1, Extbyte * arg2, UINT uBufLen)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1883 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1884 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1885 return ImmGetDescriptionW (arg1, (LPWSTR) arg2, uBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1886 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1887 return ImmGetDescriptionA (arg1, (LPSTR) arg2, uBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1888 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1889
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1890 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1891
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1892 #if defined (HAVE_MS_WINDOWS)
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1893
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
1894 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1895 qxeImmGetIMEFileName (HKL arg1, Extbyte * arg2, UINT uBufLen)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1896 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1897 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1898 return ImmGetIMEFileNameW (arg1, (LPWSTR) arg2, uBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1899 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1900 return ImmGetIMEFileNameA (arg1, (LPSTR) arg2, uBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1901 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1902
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1903 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1904
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1905 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1906
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1907 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1908 qxeImmGetCompositionString (HIMC arg1, DWORD arg2, LPVOID arg3, DWORD arg4)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1909 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1910 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1911 return ImmGetCompositionStringW (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1912 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1913 return ImmGetCompositionStringA (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1914 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1915
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1916 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1917
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1918 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1919
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1920 /* Skipping ImmSetCompositionString because different prototypes in VC6 and VC7 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1921
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1922 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1923
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1924 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1925
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1926 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1927 qxeImmGetCandidateListCount (HIMC arg1, LPDWORD lpdwListCount)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1928 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1929 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1930 return ImmGetCandidateListCountW (arg1, lpdwListCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1931 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1932 return ImmGetCandidateListCountA (arg1, lpdwListCount);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1933 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1934
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1935 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1936
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1937 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1938
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1939 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1940 qxeImmGetCandidateList (HIMC arg1, DWORD deIndex, LPCANDIDATELIST arg3, DWORD dwBufLen)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1941 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1942 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1943 return ImmGetCandidateListW (arg1, deIndex, arg3, dwBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1944 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1945 return ImmGetCandidateListA (arg1, deIndex, arg3, dwBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1946 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1947
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1948 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1949
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1950 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1951
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1952 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1953 qxeImmGetGuideLine (HIMC arg1, DWORD dwIndex, Extbyte * arg3, DWORD dwBufLen)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1954 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1955 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1956 return ImmGetGuideLineW (arg1, dwIndex, (LPWSTR) arg3, dwBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1957 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1958 return ImmGetGuideLineA (arg1, dwIndex, (LPSTR) arg3, dwBufLen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1959 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1960
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1961 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1962
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1963 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1964
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1965 /* Skipping ImmGetCompositionFont because split-sized LOGFONT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1966
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1967 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1968
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1969 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1970
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1971 /* Skipping ImmSetCompositionFont because split-sized LOGFONT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1972
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1973 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1974
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1975 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1976
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1977 /* NOTE: // split-simple REGISTERWORD */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1978 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1979 qxeImmConfigureIME (HKL arg1, HWND arg2, DWORD arg3, LPVOID arg4)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1980 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1981 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1982 return ImmConfigureIMEW (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1983 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1984 return ImmConfigureIMEA (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1985 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1986
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1987 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1988
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1989 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1990
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1991 /* NOTE: // strings of various sorts */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1992 LRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1993 qxeImmEscape (HKL arg1, HIMC arg2, UINT arg3, LPVOID arg4)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1994 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1995 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1996 return ImmEscapeW (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1997 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1998 return ImmEscapeA (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
1999 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2000
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2001 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2002
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2003 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2004
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2005 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2006 qxeImmGetConversionList (HKL arg1, HIMC arg2, const Extbyte * arg3, LPCANDIDATELIST arg4, DWORD dwBufLen, UINT uFlag)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2007 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2008 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2009 return ImmGetConversionListW (arg1, arg2, (LPCWSTR) arg3, arg4, dwBufLen, uFlag);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2010 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2011 return ImmGetConversionListA (arg1, arg2, (LPCSTR) arg3, arg4, dwBufLen, uFlag);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2012 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2013
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2014 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2015
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2016 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2017
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2018 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2019 qxeImmIsUIMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2020 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2021 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2022 return ImmIsUIMessageW (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2023 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2024 return ImmIsUIMessageA (arg1, arg2, arg3, arg4);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2025 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2026
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2027 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2028
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2029 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2030
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2031 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2032 qxeImmRegisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszRegister)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2033 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2034 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2035 return ImmRegisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszRegister);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2036 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2037 return ImmRegisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszRegister);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2038 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2039
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2040 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2041
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2042 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2043
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2044 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2045 qxeImmUnregisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszUnregister)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2046 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2047 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2048 return ImmUnregisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszUnregister);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2049 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2050 return ImmUnregisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszUnregister);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2051 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2052
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2053 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2054
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2055 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2056
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2057 /* Error if ImmGetRegisterWordStyle used: split-sized STYLEBUF */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2058
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2059 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2060
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2061 #if defined (HAVE_MS_WINDOWS)
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2062
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2063 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2064 qxeImmEnumRegisterWord (HKL arg1, REGISTERWORDENUMPROCW arg2, const Extbyte * lpszReading, DWORD arg4, const Extbyte * lpszRegister, LPVOID arg6)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2065 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2066 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2067 return ImmEnumRegisterWordW (arg1, arg2, (LPCWSTR) lpszReading, arg4, (LPCWSTR) lpszRegister, arg6);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2068 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2069 return ImmEnumRegisterWordA (arg1, (REGISTERWORDENUMPROCA) arg2, (LPCSTR) lpszReading, arg4, (LPCSTR) lpszRegister, arg6);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2070 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2071
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2072 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2073
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2074 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2075
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2076 /* Error if ImmGetImeMenuItems used: split-sized IMEMENUITEMINFO */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2077
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2078 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2079
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2080
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2081 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2082 /* Processing file NAMEDPIPEAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2083 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2084
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2085 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2086 qxeCreateNamedPipe (const Extbyte * lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2087 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2088 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2089 return CreateNamedPipeW ((LPCWSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2090 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2091 return CreateNamedPipeA ((LPCSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2092 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2093
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2094 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2095 qxeWaitNamedPipe (const Extbyte * lpNamedPipeName, DWORD nTimeOut)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2096 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2097 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2098 return WaitNamedPipeW ((LPCWSTR) lpNamedPipeName, nTimeOut);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2099 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2100 return WaitNamedPipeA ((LPCSTR) lpNamedPipeName, nTimeOut);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2101 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2102
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2103 /* Error if GetNamedPipeClientComputerName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2104
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2105
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2106 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2107 /* Processing file MEMORYAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2108 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2109
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2110 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2111 qxeCreateFileMapping (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2112 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2113 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2114 return CreateFileMappingW (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2115 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2116 return CreateFileMappingA (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCSTR) lpName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2117 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2118
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2119 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2120 qxeOpenFileMapping (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2121 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2122 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2123 return OpenFileMappingW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2124 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2125 return OpenFileMappingA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2126 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2127
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2128 /* Error if CreateFileMappingNuma used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2129
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2130
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2131 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2132 /* Processing file MMSYSTEM.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2133 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2134
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2135 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2136 qxesndPlaySound (const Extbyte * pszSound, UINT fuSound)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2137 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2138 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2139 return sndPlaySoundW ((LPCWSTR) pszSound, fuSound);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2140 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2141 return sndPlaySoundA ((LPCSTR) pszSound, fuSound);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2142 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2143
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2144 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2145 qxePlaySound (const Extbyte * pszSound, HMODULE hmod, DWORD fdwSound)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2146 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2147 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2148 return PlaySoundW ((LPCWSTR) pszSound, hmod, fdwSound);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2149 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2150 return PlaySoundA ((LPCSTR) pszSound, hmod, fdwSound);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2151 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2152
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2153 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2154
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2155 MMRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2156 qxewaveOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2157 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2158 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2159 return waveOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2160 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2161 return waveOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2162 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2163
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2164 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2165
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2166 MMRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2167 qxewaveInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2168 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2169 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2170 return waveInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2171 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2172 return waveInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2173 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2174
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2175 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2176
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2177 MMRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2178 qxemidiOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2179 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2180 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2181 return midiOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2182 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2183 return midiOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2184 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2185
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2186 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2187
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2188 MMRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2189 qxemidiInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2190 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2191 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2192 return midiInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2193 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2194 return midiInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2195 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2196
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2197 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2198
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2199 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2200
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2201 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2202
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2203 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2204
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2205 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2206
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2207 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2208
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2209 FOURCC
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2210 qxemmioStringToFOURCC (const Extbyte * sz, UINT uFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2211 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2212 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2213 return mmioStringToFOURCCW ((LPCWSTR) sz, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2214 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2215 return mmioStringToFOURCCA ((LPCSTR) sz, uFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2216 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2217
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2218 LPMMIOPROC
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2219 qxemmioInstallIOProc (FOURCC fccIOProc, LPMMIOPROC pIOProc, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2220 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2221 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2222 return mmioInstallIOProcW (fccIOProc, pIOProc, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2223 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2224 return mmioInstallIOProcA (fccIOProc, pIOProc, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2225 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2226
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2227 HMMIO
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2228 qxemmioOpen (Extbyte * pszFileName, LPMMIOINFO pmmioinfo, DWORD fdwOpen)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2229 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2230 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2231 return mmioOpenW ((LPWSTR) pszFileName, pmmioinfo, fdwOpen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2232 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2233 return mmioOpenA ((LPSTR) pszFileName, pmmioinfo, fdwOpen);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2234 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2235
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2236 MMRESULT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2237 qxemmioRename (const Extbyte * pszFileName, const Extbyte * pszNewFileName, LPCMMIOINFO pmmioinfo, DWORD fdwRename)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2238 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2239 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2240 return mmioRenameW ((LPCWSTR) pszFileName, (LPCWSTR) pszNewFileName, pmmioinfo, fdwRename);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2241 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2242 return mmioRenameA ((LPCSTR) pszFileName, (LPCSTR) pszNewFileName, pmmioinfo, fdwRename);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2243 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2244
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2245 MCIERROR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2246 qxemciSendCommand (MCIDEVICEID mciId, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2247 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2248 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2249 return mciSendCommandW (mciId, uMsg, dwParam1, dwParam2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2250 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2251 return mciSendCommandA (mciId, uMsg, dwParam1, dwParam2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2252 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2253
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2254 MCIERROR
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2255 qxemciSendString (const Extbyte * lpstrCommand, Extbyte * lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2256 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2257 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2258 return mciSendStringW ((LPCWSTR) lpstrCommand, (LPWSTR) lpstrReturnString, uReturnLength, hwndCallback);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2259 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2260 return mciSendStringA ((LPCSTR) lpstrCommand, (LPSTR) lpstrReturnString, uReturnLength, hwndCallback);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2261 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2262
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2263 MCIDEVICEID
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2264 qxemciGetDeviceID (const Extbyte * pszDevice)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2265 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2266 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2267 return mciGetDeviceIDW ((LPCWSTR) pszDevice);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2268 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2269 return mciGetDeviceIDA ((LPCSTR) pszDevice);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2270 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2271
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2272 #if !defined (MINGW)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2273
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2274 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2275
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2276 #endif /* !defined (MINGW) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2277
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2278 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2279 qxemciGetErrorString (MCIERROR mcierr, Extbyte * pszText, UINT cchText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2280 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2281 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2282 return mciGetErrorStringW (mcierr, (LPWSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2283 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2284 return mciGetErrorStringA (mcierr, (LPSTR) pszText, cchText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2285 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2286
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2287
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2288 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2289 /* Processing file WINCON.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2290 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2291
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2292 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2293 qxePeekConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2294 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2295 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2296 return PeekConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2297 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2298 return PeekConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2299 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2300
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2301 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2302 qxeReadConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2303 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2304 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2305 return ReadConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2306 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2307 return ReadConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2308 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2309
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2310 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2311 qxeWriteConsoleInput (HANDLE hConsoleInput, CONST INPUT_RECORD * lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsWritten)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2312 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2313 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2314 return WriteConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2315 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2316 return WriteConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2317 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2318
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2319 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2320 qxeReadConsoleOutput (HANDLE hConsoleOutput, PCHAR_INFO lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpReadRegion)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2321 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2322 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2323 return ReadConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2324 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2325 return ReadConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2326 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2327
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2328 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2329 qxeWriteConsoleOutput (HANDLE hConsoleOutput, CONST CHAR_INFO * lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpWriteRegion)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2330 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2331 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2332 return WriteConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2333 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2334 return WriteConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2335 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2336
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2337 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2338 qxeReadConsoleOutputCharacter (HANDLE hConsoleOutput, Extbyte * lpCharacter, DWORD nLength, COORD dwReadCoord, LPDWORD lpNumberOfCharsRead)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2339 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2340 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2341 return ReadConsoleOutputCharacterW (hConsoleOutput, (LPWSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2342 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2343 return ReadConsoleOutputCharacterA (hConsoleOutput, (LPSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2344 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2345
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2346 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2347 qxeWriteConsoleOutputCharacter (HANDLE hConsoleOutput, const Extbyte * lpCharacter, DWORD nLength, COORD dwWriteCoord, LPDWORD lpNumberOfCharsWritten)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2348 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2349 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2350 return WriteConsoleOutputCharacterW (hConsoleOutput, (LPCWSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2351 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2352 return WriteConsoleOutputCharacterA (hConsoleOutput, (LPCSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2353 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2354
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2355 /* Error if FillConsoleOutputCharacter used: split CHAR */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2356
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2357 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2358 qxeScrollConsoleScreenBuffer (HANDLE hConsoleOutput, CONST SMALL_RECT * lpScrollRectangle, CONST SMALL_RECT * lpClipRectangle, COORD dwDestinationOrigin, CONST CHAR_INFO * lpFill)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2359 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2360 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2361 return ScrollConsoleScreenBufferW (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2362 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2363 return ScrollConsoleScreenBufferA (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2364 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2365
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2366 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2367 qxeGetConsoleTitle (Extbyte * lpConsoleTitle, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2368 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2369 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2370 return GetConsoleTitleW ((LPWSTR) lpConsoleTitle, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2371 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2372 return GetConsoleTitleA ((LPSTR) lpConsoleTitle, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2373 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2374
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2375 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2376 qxeSetConsoleTitle (const Extbyte * lpConsoleTitle)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2377 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2378 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2379 return SetConsoleTitleW ((LPCWSTR) lpConsoleTitle);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2380 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2381 return SetConsoleTitleA ((LPCSTR) lpConsoleTitle);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2382 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2383
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2384 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2385 qxeReadConsole (HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2386 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2387 if (XEUNICODE_P)
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
2388 return ReadConsoleW (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, (PCONSOLE_READCONSOLE_CONTROL)lpReserved);
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
2389 else
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
2390 return ReadConsoleA (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, (PCONSOLE_READCONSOLE_CONTROL)lpReserved);
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2391 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2392
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2393 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2394 qxeWriteConsole (HANDLE hConsoleOutput, CONST VOID * lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2395 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2396 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2397 return WriteConsoleW (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2398 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2399 return WriteConsoleA (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2400 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2401
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2402 /* Error if AddConsoleAlias used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2403
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2404 /* Error if GetConsoleAlias used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2405
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2406 /* Error if GetConsoleAliasesLength used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2407
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2408 /* Error if GetConsoleAliasExesLength used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2409
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2410 /* Error if GetConsoleAliases used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2411
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2412 /* Error if GetConsoleAliasExes used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2413
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2414 /* Error if GetConsoleOriginalTitle used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2415
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2416
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2417 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2418 /* Processing file DEBUGAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2419 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2420
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2421 VOID
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2422 qxeOutputDebugString (const Extbyte * lpOutputString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2423 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2424 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2425 OutputDebugStringW ((LPCWSTR) lpOutputString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2426 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2427 OutputDebugStringA ((LPCSTR) lpOutputString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2428 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2429
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2430
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2431 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2432 /* Processing file WINNETWK.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2433 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2434
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2435 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2436
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2437 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2438 qxeWNetAddConnection (const Extbyte * lpRemoteName, const Extbyte * lpPassword, const Extbyte * lpLocalName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2439 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2440 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2441 return WNetAddConnectionW ((LPCWSTR) lpRemoteName, (LPCWSTR) lpPassword, (LPCWSTR) lpLocalName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2442 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2443 return WNetAddConnectionA ((LPCSTR) lpRemoteName, (LPCSTR) lpPassword, (LPCSTR) lpLocalName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2444 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2445
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2446 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2447
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2448 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2449
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2450 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2451 qxeWNetAddConnection2 (LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2452 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2453 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2454 return WNetAddConnection2W (lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2455 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2456 return WNetAddConnection2A ((LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2457 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2458
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2459 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2460
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2461 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2462
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2463 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2464 qxeWNetAddConnection3 (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2465 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2466 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2467 return WNetAddConnection3W (hwndOwner, lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2468 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2469 return WNetAddConnection3A (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2470 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2471
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2472 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2473
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2474 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2475
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2476 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2477 qxeWNetCancelConnection (const Extbyte * lpName, WINBOOL fForce)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2478 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2479 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2480 return WNetCancelConnectionW ((LPCWSTR) lpName, fForce);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2481 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2482 return WNetCancelConnectionA ((LPCSTR) lpName, fForce);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2483 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2484
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2485 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2486
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2487 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2488
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2489 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2490 qxeWNetCancelConnection2 (const Extbyte * lpName, DWORD dwFlags, WINBOOL fForce)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2491 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2492 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2493 return WNetCancelConnection2W ((LPCWSTR) lpName, dwFlags, fForce);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2494 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2495 return WNetCancelConnection2A ((LPCSTR) lpName, dwFlags, fForce);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2496 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2497
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2498 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2499
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2500 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2501
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2502 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2503 qxeWNetGetConnection (const Extbyte * lpLocalName, Extbyte * lpRemoteName, LPDWORD lpnLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2504 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2505 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2506 return WNetGetConnectionW ((LPCWSTR) lpLocalName, (LPWSTR) lpRemoteName, lpnLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2507 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2508 return WNetGetConnectionA ((LPCSTR) lpLocalName, (LPSTR) lpRemoteName, lpnLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2509 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2510
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2511 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2512
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2513 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2514
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2515 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2516 qxeWNetUseConnection (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserID, DWORD dwFlags, Extbyte * lpAccessName, LPDWORD lpBufferSize, LPDWORD lpResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2517 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2518 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2519 return WNetUseConnectionW (hwndOwner, lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserID, dwFlags, (LPWSTR) lpAccessName, lpBufferSize, lpResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2520 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2521 return WNetUseConnectionA (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserID, dwFlags, (LPSTR) lpAccessName, lpBufferSize, lpResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2522 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2523
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2524 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2525
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2526 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2527
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2528 /* Error if WNetRestoreSingleConnection used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2529
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2530 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2531
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2532 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2533
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2534 /* Error if WNetRestoreConnection used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2535
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2536 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2537
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2538 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2539
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2540 /* NOTE: contains split-simple LPNETRESOURCE */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2541 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2542 qxeWNetConnectionDialog1 (LPCONNECTDLGSTRUCTW lpConnDlgStruct)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2543 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2544 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2545 return WNetConnectionDialog1W (lpConnDlgStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2546 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2547 return WNetConnectionDialog1A ((LPCONNECTDLGSTRUCTA) lpConnDlgStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2548 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2549
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2550 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2551
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2552 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2553
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2554 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2555 qxeWNetDisconnectDialog1 (LPDISCDLGSTRUCTW lpConnDlgStruct)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2556 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2557 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2558 return WNetDisconnectDialog1W (lpConnDlgStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2559 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2560 return WNetDisconnectDialog1A ((LPDISCDLGSTRUCTA) lpConnDlgStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2561 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2562
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2563 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2564
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2565 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2566
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2567 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2568 qxeWNetOpenEnum (DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2569 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2570 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2571 return WNetOpenEnumW (dwScope, dwType, dwUsage, lpNetResource, lphEnum);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2572 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2573 return WNetOpenEnumA (dwScope, dwType, dwUsage, (LPNETRESOURCEA) lpNetResource, lphEnum);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2574 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2575
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2576 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2577
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2578 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2579
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2580 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2581 qxeWNetEnumResource (HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2582 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2583 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2584 return WNetEnumResourceW (hEnum, lpcCount, lpBuffer, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2585 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2586 return WNetEnumResourceA (hEnum, lpcCount, lpBuffer, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2587 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2588
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2589 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2590
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2591 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2592
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2593 /* Error if WNetGetResourceParent used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2594
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2595 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2596
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2597 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2598
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2599 /* Error if WNetGetResourceInformation used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2600
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2601 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2602
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2603 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2604
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2605 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2606 qxeWNetGetUniversalName (const Extbyte * lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpBufferSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2607 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2608 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2609 return WNetGetUniversalNameW ((LPCWSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2610 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2611 return WNetGetUniversalNameA ((LPCSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2612 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2613
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2614 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2615
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2616 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2617
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2618 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2619 qxeWNetGetUser (const Extbyte * lpName, Extbyte * lpUserName, LPDWORD lpnLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2620 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2621 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2622 return WNetGetUserW ((LPCWSTR) lpName, (LPWSTR) lpUserName, lpnLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2623 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2624 return WNetGetUserA ((LPCSTR) lpName, (LPSTR) lpUserName, lpnLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2625 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2626
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2627 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2628
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2629 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2630
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2631 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2632 qxeWNetGetProviderName (DWORD dwNetType, Extbyte * lpProviderName, LPDWORD lpBufferSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2633 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2634 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2635 return WNetGetProviderNameW (dwNetType, (LPWSTR) lpProviderName, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2636 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2637 return WNetGetProviderNameA (dwNetType, (LPSTR) lpProviderName, lpBufferSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2638 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2639
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2640 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2641
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2642 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2643
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2644 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2645 qxeWNetGetNetworkInformation (const Extbyte * lpProvider, LPNETINFOSTRUCT lpNetInfoStruct)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2646 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2647 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2648 return WNetGetNetworkInformationW ((LPCWSTR) lpProvider, lpNetInfoStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2649 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2650 return WNetGetNetworkInformationA ((LPCSTR) lpProvider, lpNetInfoStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2651 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2652
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2653 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2654
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2655 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2656
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2657 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2658 qxeWNetGetLastError (LPDWORD lpError, Extbyte * lpErrorBuf, DWORD nErrorBufSize, Extbyte * lpNameBuf, DWORD nNameBufSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2659 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2660 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2661 return WNetGetLastErrorW (lpError, (LPWSTR) lpErrorBuf, nErrorBufSize, (LPWSTR) lpNameBuf, nNameBufSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2662 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2663 return WNetGetLastErrorA (lpError, (LPSTR) lpErrorBuf, nErrorBufSize, (LPSTR) lpNameBuf, nNameBufSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2664 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2665
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2666 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2667
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2668 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2669
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2670 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2671 qxeMultinetGetConnectionPerformance (LPNETRESOURCEW lpNetResource, LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2672 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2673 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2674 return MultinetGetConnectionPerformanceW (lpNetResource, lpNetConnectInfoStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2675 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2676 return MultinetGetConnectionPerformanceA ((LPNETRESOURCEA) lpNetResource, lpNetConnectInfoStruct);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2677 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2678
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2679 #endif /* defined (HAVE_MS_WINDOWS) */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2680
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2681
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2682 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2683 /* Processing file DDEML.H */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2684 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2685
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2686 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2687 qxeDdeInitialize (LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2688 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2689 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2690 return DdeInitializeW (pidInst, pfnCallback, afCmd, ulRes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2691 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2692 return DdeInitializeA (pidInst, pfnCallback, afCmd, ulRes);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2693 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2694
4903
70089046adef fix compile problems in intl-encap* under VS6
Ben Wing <ben@xemacs.org>
parents: 4875
diff changeset
2695 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2696 HSZ
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2697 qxeDdeCreateStringHandle (DWORD idInst, const Extbyte * psz, int iCodePage)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2698 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2699 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2700 return DdeCreateStringHandleW (idInst, (LPCWSTR) psz, iCodePage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2701 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2702 return DdeCreateStringHandleA (idInst, (LPCSTR) psz, iCodePage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2703 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2704
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2705 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2706 qxeDdeQueryString (DWORD idInst, HSZ hsz, Extbyte * psz, DWORD cchMax, int iCodePage)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2707 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2708 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2709 return DdeQueryStringW (idInst, hsz, (LPWSTR) psz, cchMax, iCodePage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2710 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2711 return DdeQueryStringA (idInst, hsz, (LPSTR) psz, cchMax, iCodePage);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2712 }
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
2713
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
2714
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents:
diff changeset
2715 /*----------------------------------------------------------------------*/
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2716 /* Processing file WINGDI.H */
3728
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
2717 /*----------------------------------------------------------------------*/
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
2718
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2719 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2720
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2721 int
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2722 qxeAddFontResource (const Extbyte * arg1)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2723 {
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2724 if (XEUNICODE_P)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2725 return AddFontResourceW ((LPCWSTR) arg1);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2726 else
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2727 return AddFontResourceA ((LPCSTR) arg1);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2728 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2729
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2730 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2731
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2732 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2733
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2734 HMETAFILE
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2735 qxeCopyMetaFile (HMETAFILE arg1, const Extbyte * arg2)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2736 {
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2737 if (XEUNICODE_P)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2738 return CopyMetaFileW (arg1, (LPCWSTR) arg2);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2739 else
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2740 return CopyMetaFileA (arg1, (LPCSTR) arg2);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2741 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2742
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2743 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2744
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2745 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2746
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2747 /* Skipping CreateDC because split-sized DEVMODE */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2748
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2749 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2750
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2751 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2752
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2753 /* Skipping CreateFontIndirect because split-sized LOGFONT */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2754
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2755 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2756
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2757 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2758
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2759 HFONT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2760 qxeCreateFont (int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, DWORD iQuality, DWORD iPitchAndFamily, const Extbyte * pszFaceName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2761 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2762 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2763 return CreateFontW (cHeight, cWidth, cEscapement, cOrientation, cWeight, bItalic, bUnderline, bStrikeOut, iCharSet, iOutPrecision, iClipPrecision, iQuality, iPitchAndFamily, (LPCWSTR) pszFaceName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2764 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2765 return CreateFontA (cHeight, cWidth, cEscapement, cOrientation, cWeight, bItalic, bUnderline, bStrikeOut, iCharSet, iOutPrecision, iClipPrecision, iQuality, iPitchAndFamily, (LPCSTR) pszFaceName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2766 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2767
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2768 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2769
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2770 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2771
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2772 /* Skipping CreateIC because split-sized DEVMODE */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2773
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2774 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2775
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2776 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2777
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2778 HDC
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2779 qxeCreateMetaFile (const Extbyte * pszFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2780 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2781 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2782 return CreateMetaFileW ((LPCWSTR) pszFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2783 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2784 return CreateMetaFileA ((LPCSTR) pszFile);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2785 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2786
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2787 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2788
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2789 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2790
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2791 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2792 qxeCreateScalableFontResource (DWORD fdwHidden, const Extbyte * lpszFont, const Extbyte * lpszFile, const Extbyte * lpszPath)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2793 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2794 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2795 return CreateScalableFontResourceW (fdwHidden, (LPCWSTR) lpszFont, (LPCWSTR) lpszFile, (LPCWSTR) lpszPath);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2796 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2797 return CreateScalableFontResourceA (fdwHidden, (LPCSTR) lpszFont, (LPCSTR) lpszFile, (LPCSTR) lpszPath);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2798 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2799
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2800 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2801
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2802 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2803
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2804 /* Skipping DeviceCapabilities because split-sized DEVMODE */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2805
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2806 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2807
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2808 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2809
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2810 /* Skipping EnumFontFamiliesEx because split-complex FONTENUMPROC; NT 4.0+ only */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2811
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2812 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2813
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2814 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2815
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2816 /* Error if EnumFontFamilies used: split-complex FONTENUMPROC */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2817
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2818 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2819
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2820 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2821
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2822 /* Error if EnumFonts used: split-complex FONTENUMPROC */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2823
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2824 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2825
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2826 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2827
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2828 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2829 qxeGetCharWidth (HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2830 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2831 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2832 return GetCharWidthW (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2833 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2834 return GetCharWidthA (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2835 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2836
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2837 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2838
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2839 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2840
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2841 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2842 qxeGetCharWidth32 (HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2843 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2844 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2845 return GetCharWidth32W (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2846 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2847 return GetCharWidth32A (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2848 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2849
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2850 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2851
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2852 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2853
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2854 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2855 qxeGetCharWidthFloat (HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2856 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2857 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2858 return GetCharWidthFloatW (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2859 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2860 return GetCharWidthFloatA (hdc, iFirst, iLast, lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2861 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2862
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2863 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2864
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2865 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2866
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2867 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2868 qxeGetCharABCWidths (HDC hdc, UINT wFirst, UINT wLast, LPABC lpABC)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2869 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2870 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2871 return GetCharABCWidthsW (hdc, wFirst, wLast, lpABC);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2872 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2873 return GetCharABCWidthsA (hdc, wFirst, wLast, lpABC);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2874 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2875
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2876 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2877
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2878 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2879
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2880 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2881 qxeGetCharABCWidthsFloat (HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2882 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2883 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2884 return GetCharABCWidthsFloatW (hdc, iFirst, iLast, lpABC);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2885 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2886 return GetCharABCWidthsFloatA (hdc, iFirst, iLast, lpABC);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2887 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2888
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2889 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2890
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2891 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2892
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2893 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2894 qxeGetGlyphOutline (HDC hdc, UINT uChar, UINT fuFormat, LPGLYPHMETRICS lpgm, DWORD cjBuffer, LPVOID pvBuffer, CONST MAT2 * lpmat2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2895 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2896 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2897 return GetGlyphOutlineW (hdc, uChar, fuFormat, lpgm, cjBuffer, pvBuffer, lpmat2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2898 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2899 return GetGlyphOutlineA (hdc, uChar, fuFormat, lpgm, cjBuffer, pvBuffer, lpmat2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2900 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2901
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2902 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2903
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2904 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2905
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2906 HMETAFILE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2907 qxeGetMetaFile (const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2908 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2909 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2910 return GetMetaFileW ((LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2911 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2912 return GetMetaFileA ((LPCSTR) lpName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2913 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2914
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2915 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2916
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2917 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2918
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2919 /* Error if GetOutlineTextMetrics used: split-sized LPOUTLINETEXTMETRIC */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2921 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2922
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2923 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2924
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2925 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2926 qxeGetTextExtentPoint (HDC hdc, const Extbyte * lpString, int c, LPSIZE lpsz)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2927 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2928 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2929 return GetTextExtentPointW (hdc, (LPCWSTR) lpString, c, lpsz);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2930 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2931 return GetTextExtentPointA (hdc, (LPCSTR) lpString, c, lpsz);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2932 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2933
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2934 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2935
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2936 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2937
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2938 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2939 qxeGetTextExtentPoint32 (HDC hdc, const Extbyte * lpString, int c, LPSIZE psizl)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2940 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2941 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2942 return GetTextExtentPoint32W (hdc, (LPCWSTR) lpString, c, psizl);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2943 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2944 return GetTextExtentPoint32A (hdc, (LPCSTR) lpString, c, psizl);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2945 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2946
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2947 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2948
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2949 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2950
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2951 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2952 qxeGetTextExtentExPoint (HDC hdc, const Extbyte * lpszString, int cchString, int nMaxExtent, LPINT lpnFit, LPINT lpnDx, LPSIZE lpSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2953 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2954 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2955 return GetTextExtentExPointW (hdc, (LPCWSTR) lpszString, cchString, nMaxExtent, lpnFit, lpnDx, lpSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2956 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2957 return GetTextExtentExPointA (hdc, (LPCSTR) lpszString, cchString, nMaxExtent, lpnFit, lpnDx, lpSize);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2958 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2959
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2960 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2961
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2962 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2963
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2964 /* NOTE: NT 4.0+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2965 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2966 qxeGetCharacterPlacement (HDC hdc, const Extbyte * lpString, int nCount, int nMexExtent, LPGCP_RESULTSW lpResults, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2967 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2968 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2969 return GetCharacterPlacementW (hdc, (LPCWSTR) lpString, nCount, nMexExtent, lpResults, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2970 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2971 return GetCharacterPlacementA (hdc, (LPCSTR) lpString, nCount, nMexExtent, (LPGCP_RESULTSA) lpResults, dwFlags);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2972 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2973
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2974 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2975
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2976 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
2977
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2978 /* Error if GetGlyphIndices used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2979
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2980 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2981
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2982 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2983
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2984 /* Error if AddFontResourceEx used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2985
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2986 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2987
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2988 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2989
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2990 /* Error if RemoveFontResourceEx used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2991
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2992 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2993
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2994 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2995
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2996 /* Error if CreateFontIndirectEx used: split-sized ENUMLOGFONTEXDV; NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2997
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2998 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
2999
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3000 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3001
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3002 /* Skipping ResetDC because split-sized DEVMODE */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3003
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3004 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3005
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3006 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3007
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3008 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3009 qxeRemoveFontResource (const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3010 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3011 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3012 return RemoveFontResourceW ((LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3013 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3014 return RemoveFontResourceA ((LPCSTR) lpFileName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3015 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3016
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3017 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3018
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3019 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3020
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3021 HENHMETAFILE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3022 qxeCopyEnhMetaFile (HENHMETAFILE hEnh, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3023 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3024 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3025 return CopyEnhMetaFileW (hEnh, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3026 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3027 return CopyEnhMetaFileA (hEnh, (LPCSTR) lpFileName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3028 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3029
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3030 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3031
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3032 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3033
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3034 HDC
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3035 qxeCreateEnhMetaFile (HDC hdc, const Extbyte * lpFilename, CONST RECT * lprc, const Extbyte * lpDesc)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3036 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3037 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3038 return CreateEnhMetaFileW (hdc, (LPCWSTR) lpFilename, lprc, (LPCWSTR) lpDesc);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3039 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3040 return CreateEnhMetaFileA (hdc, (LPCSTR) lpFilename, lprc, (LPCSTR) lpDesc);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3041 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3042
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3043 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3044
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3045 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3046
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3047 HENHMETAFILE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3048 qxeGetEnhMetaFile (const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3049 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3050 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3051 return GetEnhMetaFileW ((LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3052 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3053 return GetEnhMetaFileA ((LPCSTR) lpName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3054 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3055
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3056 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3057
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3058 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3059
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3060 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3061 qxeGetEnhMetaFileDescription (HENHMETAFILE hemf, UINT cchBuffer, Extbyte * lpDescription)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3062 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3063 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3064 return GetEnhMetaFileDescriptionW (hemf, cchBuffer, (LPWSTR) lpDescription);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3065 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3066 return GetEnhMetaFileDescriptionA (hemf, cchBuffer, (LPSTR) lpDescription);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3067 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3068
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3069 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3070
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3071 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3072
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3073 /* Skipping GetTextMetrics because split-sized LPTEXTMETRIC */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3074
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3075 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3076
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3077 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3078
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3079 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3080 qxeStartDoc (HDC hdc, CONST DOCINFOW * lpdi)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3081 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3082 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3083 return StartDocW (hdc, lpdi);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3084 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3085 return StartDocA (hdc, (CONST DOCINFOA *) lpdi);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3086 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3087
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3088 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3089
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3090 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3091
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3092 /* Skipping GetObject because split-sized LOGFONT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3093
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3094 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3095
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3096 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3097
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3098 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3099 qxeTextOut (HDC hdc, int x, int y, const Extbyte * lpString, int c)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3100 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3101 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3102 return TextOutW (hdc, x, y, (LPCWSTR) lpString, c);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3103 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3104 return TextOutA (hdc, x, y, (LPCSTR) lpString, c);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3105 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3106
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3107 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3108
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3109 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3110
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3111 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3112 qxeExtTextOut (HDC hdc, int x, int y, UINT options, CONST RECT * lprect, const Extbyte * lpString, UINT c, CONST INT * lpDx)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3113 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3114 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3115 return ExtTextOutW (hdc, x, y, options, lprect, (LPCWSTR) lpString, c, lpDx);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3116 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3117 return ExtTextOutA (hdc, x, y, options, lprect, (LPCSTR) lpString, c, lpDx);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3118 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3119
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3120 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3121
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3122 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3123
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3124 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3125 qxePolyTextOut (HDC hdc, CONST POLYTEXTW * ppt, int nstrings)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3126 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3127 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3128 return PolyTextOutW (hdc, ppt, nstrings);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3129 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3130 return PolyTextOutA (hdc, (CONST POLYTEXTA *) ppt, nstrings);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3131 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3132
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3133 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3134
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3135 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3136
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3137 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3138 qxeGetTextFace (HDC hdc, int c, Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3139 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3140 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3141 return GetTextFaceW (hdc, c, (LPWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3142 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3143 return GetTextFaceA (hdc, c, (LPSTR) lpName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3144 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3145
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3146 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3147
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3148 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3149
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3150 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3151 qxeGetKerningPairs (HDC hdc, DWORD nPairs, LPKERNINGPAIR lpKernPair)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3152 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3153 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3154 return GetKerningPairsW (hdc, nPairs, lpKernPair);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3155 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3156 return GetKerningPairsA (hdc, nPairs, lpKernPair);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3157 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3158
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3159 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3160
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3161 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3162
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3163 /* Error if GetLogColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3164
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3165 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3166
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3167 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3168
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3169 /* Error if CreateColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3170
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3171 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3172
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3173 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3174
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3175 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3176 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3177 qxeGetICMProfile (HDC hdc, LPDWORD pBufSize, Extbyte * pszFilename)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3178 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3179 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3180 return GetICMProfileW (hdc, pBufSize, (LPWSTR) pszFilename);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3181 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3182 return GetICMProfileA (hdc, pBufSize, (LPSTR) pszFilename);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3183 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3184
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3185 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3186
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3187 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3188
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3189 /* NOTE: NT 4.0+ only */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3190 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3191 qxeSetICMProfile (HDC hdc, Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3192 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3193 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3194 return SetICMProfileW (hdc, (LPWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3195 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3196 return SetICMProfileA (hdc, (LPSTR) lpFileName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3197 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3198
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3199 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3200
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3201 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3202
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3203 /* NOTE: NT 4.0+ only */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3204 int
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3205 qxeEnumICMProfiles (HDC hdc, ICMENUMPROCW lpProc, LPARAM lParam)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3206 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3207 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3208 return EnumICMProfilesW (hdc, lpProc, lParam);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3209 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3210 return EnumICMProfilesA (hdc, (ICMENUMPROCA) lpProc, lParam);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3211 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3212
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3213 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3214
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3215 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3216
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3217 /* Skipping UpdateICMRegKey because NT 4.0+ only, error in Cygwin prototype */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3218
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3219 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3220
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3221 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3222
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3223 /* Error if wglUseFontBitmaps used: causes link error */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3224
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3225 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3226
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3227 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3228
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3229 /* Error if wglUseFontOutlines used: causes link error */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3230
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3231 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3232
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3233
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3234 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3235 /* Processing file WINNLS.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3236 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3237
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3238 /* Error if LCMapString used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3239
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3240 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3241 qxeGetLocaleInfo (LCID Locale, LCTYPE LCType, Extbyte * lpLCData, int cchData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3242 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3243 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3244 return GetLocaleInfoW (Locale, LCType, (LPWSTR) lpLCData, cchData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3245 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3246 return GetLocaleInfoA (Locale, LCType, (LPSTR) lpLCData, cchData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3247 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3248
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3249 /* Error if GetNumberFormat used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3250
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3251 /* Error if GetCurrencyFormat used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3252
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3253 /* Error if EnumCalendarInfo used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3254
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3255 /* Error if EnumCalendarInfoEx used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3256
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3257 /* Error if EnumTimeFormats used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3258
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3259 /* Error if EnumDateFormats used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3260
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3261 /* Error if EnumDateFormatsEx used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3262
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3263 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3264 qxeSetLocaleInfo (LCID Locale, LCTYPE LCType, const Extbyte * lpLCData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3265 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3266 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3267 return SetLocaleInfoW (Locale, LCType, (LPCWSTR) lpLCData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3268 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3269 return SetLocaleInfoA (Locale, LCType, (LPCSTR) lpLCData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3270 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3271
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3272 /* Error if GetCalendarInfo used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3273
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3274 /* Error if SetCalendarInfo used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3275
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3276 /* Error if GetGeoInfo used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3277
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3278 /* Error if GetCPInfoEx used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3279
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3280 /* Error if EnumSystemLocales used: not used, not examined yet */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3281
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3282 /* Error if EnumSystemLanguageGroups used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3283
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3284 /* Error if EnumLanguageGroupLocales used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3285
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3286 /* Error if EnumUILanguages used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3287
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3288 /* Error if EnumSystemCodePages used: not used, not examined yet */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3289
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3290
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3291 /*----------------------------------------------------------------------*/
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3292 /* Processing file WINREG.H */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3293 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3294
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3295 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3296 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3297 qxeRegConnectRegistry (const Extbyte * lpMachineName, HKEY hKey, PHKEY phkResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3298 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3299 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3300 return RegConnectRegistryW ((LPCWSTR) lpMachineName, hKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3301 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3302 return RegConnectRegistryA ((LPCSTR) lpMachineName, hKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3303 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3304
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3305 /* Error if RegConnectRegistryEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3306
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3307 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3308 qxeRegCreateKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3309 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3310 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3311 return RegCreateKeyW (hKey, (LPCWSTR) lpSubKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3312 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3313 return RegCreateKeyA (hKey, (LPCSTR) lpSubKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3314 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3315
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3316 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3317 qxeRegCreateKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD Reserved, Extbyte * lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3318 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3319 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3320 return RegCreateKeyExW (hKey, (LPCWSTR) lpSubKey, Reserved, (LPWSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3321 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3322 return RegCreateKeyExA (hKey, (LPCSTR) lpSubKey, Reserved, (LPSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3323 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3324
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3325 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3326 qxeRegDeleteKey (HKEY hKey, const Extbyte * lpSubKey)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3327 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3328 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3329 return RegDeleteKeyW (hKey, (LPCWSTR) lpSubKey);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3330 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3331 return RegDeleteKeyA (hKey, (LPCSTR) lpSubKey);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3332 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3333
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3334 /* Error if RegDeleteKeyEx used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3335
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3336 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3337 qxeRegDeleteValue (HKEY hKey, const Extbyte * lpValueName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3338 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3339 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3340 return RegDeleteValueW (hKey, (LPCWSTR) lpValueName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3341 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3342 return RegDeleteValueA (hKey, (LPCSTR) lpValueName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3343 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3344
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3345 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3346 qxeRegEnumKey (HKEY hKey, DWORD dwIndex, Extbyte * lpName, DWORD cchName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3347 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3348 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3349 return RegEnumKeyW (hKey, dwIndex, (LPWSTR) lpName, cchName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3350 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3351 return RegEnumKeyA (hKey, dwIndex, (LPSTR) lpName, cchName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3352 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3353
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3354 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3355 qxeRegEnumKeyEx (HKEY hKey, DWORD dwIndex, Extbyte * lpName, LPDWORD lpcchName, LPDWORD lpReserved, Extbyte * lpClass, LPDWORD lpcchClass, PFILETIME lpftLastWriteTime)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3356 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3357 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3358 return RegEnumKeyExW (hKey, dwIndex, (LPWSTR) lpName, lpcchName, lpReserved, (LPWSTR) lpClass, lpcchClass, lpftLastWriteTime);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3359 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3360 return RegEnumKeyExA (hKey, dwIndex, (LPSTR) lpName, lpcchName, lpReserved, (LPSTR) lpClass, lpcchClass, lpftLastWriteTime);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3361 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3362
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3363 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3364 qxeRegEnumValue (HKEY hKey, DWORD dwIndex, Extbyte * lpValueName, LPDWORD lpcchValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3365 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3366 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3367 return RegEnumValueW (hKey, dwIndex, (LPWSTR) lpValueName, lpcchValueName, lpReserved, lpType, lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3368 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3369 return RegEnumValueA (hKey, dwIndex, (LPSTR) lpValueName, lpcchValueName, lpReserved, lpType, lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3370 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3371
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3372 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3373 qxeRegLoadKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3374 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3375 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3376 return RegLoadKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3377 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3378 return RegLoadKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3379 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3380
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3381 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3382 qxeRegOpenKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3383 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3384 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3385 return RegOpenKeyW (hKey, (LPCWSTR) lpSubKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3386 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3387 return RegOpenKeyA (hKey, (LPCSTR) lpSubKey, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3388 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3389
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3390 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3391 qxeRegOpenKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3392 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3393 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3394 return RegOpenKeyExW (hKey, (LPCWSTR) lpSubKey, ulOptions, samDesired, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3395 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3396 return RegOpenKeyExA (hKey, (LPCSTR) lpSubKey, ulOptions, samDesired, phkResult);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3397 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3398
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3399 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3400 qxeRegQueryInfoKey (HKEY hKey, Extbyte * lpClass, LPDWORD lpcchClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3401 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3402 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3403 return RegQueryInfoKeyW (hKey, (LPWSTR) lpClass, lpcchClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3404 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3405 return RegQueryInfoKeyA (hKey, (LPSTR) lpClass, lpcchClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3406 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3407
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3408 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3409 qxeRegQueryValue (HKEY hKey, const Extbyte * lpSubKey, Extbyte * lpData, PLONG lpcbData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3410 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3411 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3412 return RegQueryValueW (hKey, (LPCWSTR) lpSubKey, (LPWSTR) lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3413 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3414 return RegQueryValueA (hKey, (LPCSTR) lpSubKey, (LPSTR) lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3415 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3416
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3417 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3418 qxeRegQueryMultipleValues (HKEY hKey, PVALENTW val_list, DWORD num_vals, Extbyte * lpValueBuf, LPDWORD ldwTotsize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3419 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3420 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3421 return RegQueryMultipleValuesW (hKey, val_list, num_vals, (LPWSTR) lpValueBuf, ldwTotsize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3422 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3423 return RegQueryMultipleValuesA (hKey, (PVALENTA) val_list, num_vals, (LPSTR) lpValueBuf, ldwTotsize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3424 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3425
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3426 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3427 qxeRegQueryValueEx (HKEY hKey, const Extbyte * lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3428 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3429 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3430 return RegQueryValueExW (hKey, (LPCWSTR) lpValueName, lpReserved, lpType, lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3431 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3432 return RegQueryValueExA (hKey, (LPCSTR) lpValueName, lpReserved, lpType, lpData, lpcbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3433 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3434
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3435 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3436 qxeRegReplaceKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpNewFile, const Extbyte * lpOldFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3437 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3438 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3439 return RegReplaceKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpNewFile, (LPCWSTR) lpOldFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3440 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3441 return RegReplaceKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpNewFile, (LPCSTR) lpOldFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3442 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3443
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3444 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3445 qxeRegRestoreKey (HKEY hKey, const Extbyte * lpFile, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3446 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3447 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3448 return RegRestoreKeyW (hKey, (LPCWSTR) lpFile, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3449 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3450 return RegRestoreKeyA (hKey, (LPCSTR) lpFile, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3451 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3452
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3453 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3454 qxeRegSaveKey (HKEY hKey, const Extbyte * lpFile, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3455 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3456 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3457 return RegSaveKeyW (hKey, (LPCWSTR) lpFile, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3458 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3459 return RegSaveKeyA (hKey, (LPCSTR) lpFile, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3460 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3461
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3462 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3463 qxeRegSetValue (HKEY hKey, const Extbyte * lpSubKey, DWORD dwType, const Extbyte * lpData, DWORD cbData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3464 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3465 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3466 return RegSetValueW (hKey, (LPCWSTR) lpSubKey, dwType, (LPCWSTR) lpData, cbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3467 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3468 return RegSetValueA (hKey, (LPCSTR) lpSubKey, dwType, (LPCSTR) lpData, cbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3469 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3470
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3471 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3472 qxeRegSetValueEx (HKEY hKey, const Extbyte * lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE * lpData, DWORD cbData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3473 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3474 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3475 return RegSetValueExW (hKey, (LPCWSTR) lpValueName, Reserved, dwType, lpData, cbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3476 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3477 return RegSetValueExA (hKey, (LPCSTR) lpValueName, Reserved, dwType, lpData, cbData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3478 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3479
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3480 LONG
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3481 qxeRegUnLoadKey (HKEY hKey, const Extbyte * lpSubKey)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3482 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3483 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3484 return RegUnLoadKeyW (hKey, (LPCWSTR) lpSubKey);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3485 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3486 return RegUnLoadKeyA (hKey, (LPCSTR) lpSubKey);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3487 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3488
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3489 /* Error if RegGetValue used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3490
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3491 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3492 qxeInitiateSystemShutdown (Extbyte * lpMachineName, Extbyte * lpMessage, DWORD dwTimeout, WINBOOL bForceAppsClosed, WINBOOL bRebootAfterShutdown)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3493 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3494 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3495 return InitiateSystemShutdownW ((LPWSTR) lpMachineName, (LPWSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3496 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3497 return InitiateSystemShutdownA ((LPSTR) lpMachineName, (LPSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3498 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3499
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3500 /* NOTE: error arg 1, Cygwin prototype, extra const.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3501 NOTE: Prototype manually overridden.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3502 Header file claims:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3503 WINADVAPI WINBOOL WINAPI AbortSystemShutdown(LPWSTR lpMachineName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3504 Overridden with:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3505 BOOL AbortSystemShutdown(LPWSTR)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3506 Differences in return-type qualifiers, e.g. WINAPI, are not important.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3507 */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3508 BOOL
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3509 qxeAbortSystemShutdown (Extbyte * arg1)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3510 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3511 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3512 return AbortSystemShutdownW ((LPWSTR) arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3513 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3514 return AbortSystemShutdownA ((LPSTR) arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3515 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3516
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3517 /* Error if InitiateSystemShutdownEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3518
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3519 /* Error if RegSaveKeyEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3520
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3521 /* Error if RegCopyTree used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3522
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3523 /* Error if RegCreateKeyTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3524
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3525 /* Error if RegDeleteKeyTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3526
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3527 /* Error if RegDeleteKeyValue used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3528
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3529 /* Error if RegDeleteTree used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3530
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3531 /* Error if RegLoadAppKey used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3532
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3533 /* Error if RegLoadMUIString used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3534
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3535 /* Error if RegOpenKeyTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3536
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3537 /* Error if RegSetKeyValue used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3538
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3539
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3540 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3541 /* Processing file SYSINFOAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3542 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3543
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3544 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3545 qxeGetSystemDirectory (Extbyte * lpBuffer, UINT uSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3546 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3547 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3548 return GetSystemDirectoryW ((LPWSTR) lpBuffer, uSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3549 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3550 return GetSystemDirectoryA ((LPSTR) lpBuffer, uSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3551 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3552
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3553 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3554 qxeGetWindowsDirectory (Extbyte * lpBuffer, UINT uSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3555 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3556 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3557 return GetWindowsDirectoryW ((LPWSTR) lpBuffer, uSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3558 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3559 return GetWindowsDirectoryA ((LPSTR) lpBuffer, uSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3560 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3561
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3562 /* Error if GetSystemWindowsDirectory used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3563
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3564 /* Error if GetComputerNameEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3565
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3566 /* Error if SetComputerNameEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3567
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3568 /* Error if GetVersionEx used: HST: new? -- needs review */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3569
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3570
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3571 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3572 /* Processing file COMMDLG.H */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3573 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3574
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3575 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3576
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3577 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3578 qxeGetOpenFileName (LPOPENFILENAMEW arg1)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3579 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3580 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3581 return GetOpenFileNameW (arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3582 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3583 return GetOpenFileNameA ((LPOPENFILENAMEA) arg1);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3584 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3585
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3586 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3587
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3588 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3589
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3590 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3591 qxeGetSaveFileName (LPOPENFILENAMEW arg1)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3592 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3593 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3594 return GetSaveFileNameW (arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3595 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3596 return GetSaveFileNameA ((LPOPENFILENAMEA) arg1);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3597 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3598
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3599 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3600
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3601 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3602
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3603 short
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3604 qxeGetFileTitle (const Extbyte * arg1, Extbyte * arg2, WORD arg3)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3605 {
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3606 if (XEUNICODE_P)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3607 return GetFileTitleW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3608 else
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3609 return GetFileTitleA ((LPCSTR) arg1, (LPSTR) arg2, arg3);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3610 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3611
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3612 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3613
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3614 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3615
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3616 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3617 qxeChooseColor (LPCHOOSECOLORW arg1)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3618 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3619 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3620 return ChooseColorW (arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3621 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3622 return ChooseColorA ((LPCHOOSECOLORA) arg1);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3623 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3624
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3625 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3626
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3627 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3628
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3629 HWND
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3630 qxeFindText (LPFINDREPLACEW arg1)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3631 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3632 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3633 return FindTextW (arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3634 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3635 return FindTextA ((LPFINDREPLACEA) arg1);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3636 }
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3637
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3638 #endif /* defined (HAVE_MS_WINDOWS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3639
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3640 #if defined (HAVE_MS_WINDOWS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3641
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3642 HWND
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3643 qxeReplaceText (LPFINDREPLACEW arg1)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3644 {
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3645 if (XEUNICODE_P)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3646 return ReplaceTextW (arg1);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3647 else
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3648 return ReplaceTextA ((LPFINDREPLACEA) arg1);
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3649 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3650
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3651 #endif /* defined (HAVE_MS_WINDOWS) */
3728
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3652
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3653 #if defined (HAVE_MS_WINDOWS)
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3654
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3655 /* Error if ChooseFont used: split-sized LPLOGFONT in LPCHOOSEFONT */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3656
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3657 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3658
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3659 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3660
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3661 /* Skipping PrintDlg because LPPRINTDLG with split-sized DEVMODE handle */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3662
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3663 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3664
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3665 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3666
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3667 /* Error if PrintDlgEx used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3668
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3669 #endif /* defined (HAVE_MS_WINDOWS) */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3670
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3671 #if defined (HAVE_MS_WINDOWS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3672
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3673 /* Skipping PageSetupDlg because LPPAGESETUPDLG with split-sized DEVMODE handle */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3674
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3675 #endif /* defined (HAVE_MS_WINDOWS) */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3676
3728
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3677
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3678 /*----------------------------------------------------------------------*/
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3679 /* Processing file SHLOBJ.H */
3728
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3680 /*----------------------------------------------------------------------*/
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3681
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3682 /* Error if SHGetIconOverlayIndex used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3683
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3684 /* Error if ILCreateFromPath used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3685
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3686 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3687 qxeSHGetPathFromIDList (PCIDLIST_ABSOLUTE pidl, Extbyte * pszPath)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3688 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3689 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3690 return SHGetPathFromIDListW (pidl, (LPWSTR) pszPath);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3691 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3692 return SHGetPathFromIDListA (pidl, (LPSTR) pszPath);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3693 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3694
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3695 /* Error if SHCreateDirectoryEx used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3696
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3697 /* Skipping SHGetSpecialFolderPath because error in Cygwin prototype, missing from Cygwin libraries */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3698
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3699 /* Error if SHGetFolderPath used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3700
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3701 /* Error if SHSetFolderPath used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3702
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3703 /* Error if SHGetFolderPathAndSubDir used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3704
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3705 /* Skipping SHBrowseForFolder because need to intercept callback for SendMessage */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3706
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3707 /* Error if SHUpdateImage used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3708
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3709 /* Error if PathIsSlow used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3710
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3711 /* Error if SHStartNetConnectionDialog used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3712
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3713 /* Error if SHDefExtractIcon used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3714
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3715 /* Error if Shell_GetCachedImageIndex used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3716
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3717
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3718 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3719 /* Processing file PROCESSTHREADSAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3720 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3721
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3722 VOID
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3723 qxeGetStartupInfo (LPSTARTUPINFOW lpStartupInfo)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3724 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3725 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3726 GetStartupInfoW (lpStartupInfo);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3727 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3728 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3729 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3730
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3731 WINBOOL
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3732 qxeCreateProcess (const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3733 {
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3734 if (XEUNICODE_P)
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3735 return CreateProcessW ((LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3736 else
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3737 return CreateProcessA ((LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
3738 }
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3739
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3740 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3741 qxeCreateProcessAsUser (HANDLE hToken, const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3742 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3743 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3744 return CreateProcessAsUserW (hToken, (LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3745 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3746 return CreateProcessAsUserA (hToken, (LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3747 }
3728
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3748
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3749
6765f2581182 [xemacs-hg @ 2006-12-08 02:21:53 by vins]
vins
parents: 2500
diff changeset
3750 /*----------------------------------------------------------------------*/
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3751 /* Processing file WINBASE.H */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3752 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3753
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3754 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3755 qxeGetBinaryType (const Extbyte * lpApplicationName, LPDWORD lpBinaryType)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3756 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3757 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3758 return GetBinaryTypeW ((LPCWSTR) lpApplicationName, lpBinaryType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3759 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3760 return GetBinaryTypeA ((LPCSTR) lpApplicationName, lpBinaryType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3761 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3762
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3763 /* Error if GetLongPathNameTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3764
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3765 /* Error if SetFileShortName used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3766
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3767 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3768 qxeFormatMessage (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, Extbyte * lpBuffer, DWORD nSize, va_list * Arguments)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3769 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3770 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3771 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPWSTR) lpBuffer, nSize, Arguments);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3772 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3773 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPSTR) lpBuffer, nSize, Arguments);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3774 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3775
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3776 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3777 qxeCreateMailslot (const Extbyte * lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3778 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3779 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3780 return CreateMailslotW ((LPCWSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3781 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3782 return CreateMailslotA ((LPCSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3783 }
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3784
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3785 #if !defined (CYGWIN_HEADERS)
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3786
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3787 /* Error if EncryptFile used: Win2K+ only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3788
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3789 #endif /* !defined (CYGWIN_HEADERS) */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3790
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3791 #if !defined (CYGWIN_HEADERS)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3792
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3793 /* Error if DecryptFile used: Win2K+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3794
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3795 #endif /* !defined (CYGWIN_HEADERS) */
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3796
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3797 /* Error if FileEncryptionStatus used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3798
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3799 /* Error if OpenEncryptedFileRaw used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3800
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3801 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3802 qxelstrcmp (const Extbyte * lpString1, const Extbyte * lpString2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3803 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3804 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3805 return lstrcmpW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3806 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3807 return lstrcmpA ((LPCSTR) lpString1, (LPCSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3808 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3809
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3810 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3811 qxelstrcmpi (const Extbyte * lpString1, const Extbyte * lpString2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3812 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3813 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3814 return lstrcmpiW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3815 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3816 return lstrcmpiA ((LPCSTR) lpString1, (LPCSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3817 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3818
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3819 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3820 qxelstrcpyn (Extbyte * lpString1, const Extbyte * lpString2, int iMaxLength)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3821 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3822 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3823 return (Extbyte *) lstrcpynW ((LPWSTR) lpString1, (LPCWSTR) lpString2, iMaxLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3824 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3825 return (Extbyte *) lstrcpynA ((LPSTR) lpString1, (LPCSTR) lpString2, iMaxLength);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3826 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3827
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3828 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3829 qxelstrcpy (Extbyte * lpString1, const Extbyte * lpString2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3830 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3831 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3832 return (Extbyte *) lstrcpyW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3833 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3834 return (Extbyte *) lstrcpyA ((LPSTR) lpString1, (LPCSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3835 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3836
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3837 Extbyte *
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3838 qxelstrcat (Extbyte * lpString1, const Extbyte * lpString2)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3839 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3840 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3841 return (Extbyte *) lstrcatW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3842 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3843 return (Extbyte *) lstrcatA ((LPSTR) lpString1, (LPCSTR) lpString2);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3844 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3845
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3846 int
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3847 qxelstrlen (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3848 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3849 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3850 return lstrlenW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3851 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3852 return lstrlenA ((LPCSTR) lpString);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3853 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3854
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3855 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3856 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, const Extbyte * lpName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3857 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3858 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3859 return CreateSemaphoreW (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCWSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3860 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3861 return CreateSemaphoreA (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCSTR) lpName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3862 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3863
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3864 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3865 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES lpTimerAttributes, WINBOOL bManualReset, const Extbyte * lpTimerName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3866 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3867 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3868 return CreateWaitableTimerW (lpTimerAttributes, bManualReset, (LPCWSTR) lpTimerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3869 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3870 return CreateWaitableTimerA (lpTimerAttributes, bManualReset, (LPCSTR) lpTimerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3871 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3872
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3873 HMODULE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3874 qxeLoadLibrary (const Extbyte * lpLibFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3875 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3876 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3877 return LoadLibraryW ((LPCWSTR) lpLibFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3878 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3879 return LoadLibraryA ((LPCSTR) lpLibFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3880 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3881
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3882 /* Error if QueryFullProcessImageName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3883
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3884 VOID
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3885 qxeFatalAppExit (UINT uAction, const Extbyte * lpMessageText)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3886 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3887 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3888 FatalAppExitW (uAction, (LPCWSTR) lpMessageText);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3889 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3890 FatalAppExitA (uAction, (LPCSTR) lpMessageText);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3891 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3892
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3893 /* Error if GetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3894
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3895 /* Error if SetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3896
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3897 HRSRC
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3898 qxeFindResource (HMODULE hModule, const Extbyte * lpName, const Extbyte * lpType)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3899 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3900 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3901 return FindResourceW (hModule, (LPCWSTR) lpName, (LPCWSTR) lpType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3902 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3903 return FindResourceA (hModule, (LPCSTR) lpName, (LPCSTR) lpType);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3904 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3905
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3906 /* Skipping EnumResourceTypes because different prototypes in VC6 and VC7 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3907
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3908 /* Skipping EnumResourceNames because different prototypes in VC6 and VC7 */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3909
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3910 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3911 qxeBeginUpdateResource (const Extbyte * pFileName, WINBOOL bDeleteExistingResources)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3912 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3913 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3914 return BeginUpdateResourceW ((LPCWSTR) pFileName, bDeleteExistingResources);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3915 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3916 return BeginUpdateResourceA ((LPCSTR) pFileName, bDeleteExistingResources);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3917 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3918
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3919 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3920 qxeUpdateResource (HANDLE hUpdate, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage, LPVOID lpData, DWORD cb)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3921 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3922 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3923 return UpdateResourceW (hUpdate, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage, lpData, cb);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3924 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3925 return UpdateResourceA (hUpdate, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage, lpData, cb);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3926 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3927
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3928 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3929 qxeEndUpdateResource (HANDLE hUpdate, WINBOOL fDiscard)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3930 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3931 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3932 return EndUpdateResourceW (hUpdate, fDiscard);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3933 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3934 return EndUpdateResourceA (hUpdate, fDiscard);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3935 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3936
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3937 /* Error if GetFirmwareEnvironmentVariableEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3938
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3939 /* Error if SetFirmwareEnvironmentVariableEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3940
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3941 ATOM
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3942 qxeGlobalAddAtom (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3943 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3944 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3945 return GlobalAddAtomW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3946 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3947 return GlobalAddAtomA ((LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3948 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3949
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3950 /* Error if GlobalAddAtomEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3951
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3952 ATOM
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3953 qxeGlobalFindAtom (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3954 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3955 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3956 return GlobalFindAtomW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3957 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3958 return GlobalFindAtomA ((LPCSTR) lpString);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3959 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3960
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3961 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3962 qxeGlobalGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3963 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3964 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3965 return GlobalGetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3966 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3967 return GlobalGetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3968 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3969
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3970 ATOM
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3971 qxeAddAtom (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3972 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3973 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3974 return AddAtomW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3975 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3976 return AddAtomA ((LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3977 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3978
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3979 ATOM
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3980 qxeFindAtom (const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3981 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3982 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3983 return FindAtomW ((LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3984 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3985 return FindAtomA ((LPCSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3986 }
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
3987
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
3988 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3989 qxeGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3990 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3991 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3992 return GetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3993 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3994 return GetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3995 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3996
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3997 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3998 qxeGetProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
3999 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4000 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4001 return GetProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4002 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4003 return GetProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4004 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4005
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4006 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4007 qxeGetProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4008 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4009 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4010 return GetProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4011 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4012 return GetProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4013 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4014
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4015 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4016 qxeWriteProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4017 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4018 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4019 return WriteProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4020 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4021 return WriteProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4022 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4023
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4024 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4025 qxeGetProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4026 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4027 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4028 return GetProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4029 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4030 return GetProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4031 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4032
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4033 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4034 qxeWriteProfileSection (const Extbyte * lpAppName, const Extbyte * lpString)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4035 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4036 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4037 return WriteProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4038 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4039 return WriteProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4040 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4041
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4042 UINT
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4043 qxeGetPrivateProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4044 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4045 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4046 return GetPrivateProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4047 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4048 return GetPrivateProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4049 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4050
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4051 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4052 qxeGetPrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4053 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4054 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4055 return GetPrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4056 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4057 return GetPrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4058 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4059
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4060 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4061 qxeWritePrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4062 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4063 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4064 return WritePrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4065 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4066 return WritePrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4067 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4068
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4069 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4070 qxeGetPrivateProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4071 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4072 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4073 return GetPrivateProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4074 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4075 return GetPrivateProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4076 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4077
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4078 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4079 qxeWritePrivateProfileSection (const Extbyte * lpAppName, const Extbyte * lpString, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4080 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4081 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4082 return WritePrivateProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4083 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4084 return WritePrivateProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4085 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4086
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4087 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4088 qxeGetPrivateProfileSectionNames (Extbyte * lpszReturnBuffer, DWORD nSize, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4089 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4090 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4091 return GetPrivateProfileSectionNamesW ((LPWSTR) lpszReturnBuffer, nSize, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4092 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4093 return GetPrivateProfileSectionNamesA ((LPSTR) lpszReturnBuffer, nSize, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4094 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4095
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4096 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4097 qxeGetPrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4098 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4099 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4100 return GetPrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4101 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4102 return GetPrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4103 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4104
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4105 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4106 qxeWritePrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4107 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4108 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4109 return WritePrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4110 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4111 return WritePrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4112 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4113
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4114 /* Error if GetSystemWow64Directory used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4115
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4116 /* Error if SetDllDirectory used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4117
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4118 /* Error if GetDllDirectory used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4119
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4120 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4121 qxeCreateDirectoryEx (const Extbyte * lpTemplateDirectory, const Extbyte * lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4122 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4123 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4124 return CreateDirectoryExW ((LPCWSTR) lpTemplateDirectory, (LPCWSTR) lpNewDirectory, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4125 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4126 return CreateDirectoryExA ((LPCSTR) lpTemplateDirectory, (LPCSTR) lpNewDirectory, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4127 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4128
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4129 /* Error if CreateDirectoryTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4130
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4131 /* Error if RemoveDirectoryTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4132
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4133 /* Error if GetFullPathNameTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4134
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4135 /* Error if CreateFileTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4136
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4137 /* Error if SetFileAttributesTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4138
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4139 /* Error if GetFileAttributesTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4140
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4141 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4142 qxeGetCompressedFileSize (const Extbyte * lpFileName, LPDWORD lpFileSizeHigh)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4143 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4144 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4145 return GetCompressedFileSizeW ((LPCWSTR) lpFileName, lpFileSizeHigh);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4146 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4147 return GetCompressedFileSizeA ((LPCSTR) lpFileName, lpFileSizeHigh);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4148 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4149
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4150 /* Error if GetCompressedFileSizeTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4151
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4152 /* Error if DeleteFileTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4153
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4154 /* Error if CheckNameLegalDOS8Dot3 used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4155
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4156 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4157 qxeCopyFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, WINBOOL bFailIfExists)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4158 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4159 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4160 return CopyFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, bFailIfExists);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4161 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4162 return CopyFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, bFailIfExists);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4163 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4164
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4165 /* NOTE: NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4166 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4167 qxeCopyFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4168 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4169 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4170 return CopyFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4171 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4172 return CopyFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4173 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4174
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4175 /* Error if FindFirstFileTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4176
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4177 /* Error if CopyFileTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4178
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4179 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4180 qxeMoveFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4181 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4182 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4183 return MoveFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4184 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4185 return MoveFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4186 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4187
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4188 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4189 qxeMoveFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, DWORD dwFlags)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4190 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4191 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4192 return MoveFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4193 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4194 return MoveFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, dwFlags);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4195 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4196
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4197 /* Error if MoveFileWithProgress used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4198
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4199 /* Error if MoveFileTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4200
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4201 /* Error if ReplaceFile used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4202
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4203 /* Error if CreateHardLink used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4204
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4205 /* Error if CreateHardLinkTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4206
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4207 /* Error if FindFirstStream used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4208
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4209 /* Error if FindNextStream used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4210
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4211 /* Error if FindFirstStreamTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4212
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4213 /* Error if FindFirstFileName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4214
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4215 /* Error if FindNextFileName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4216
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4217 /* Error if FindFirstFileNameTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4218
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4219 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4220 qxeGetNamedPipeHandleState (HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, Extbyte * lpUserName, DWORD nMaxUserNameSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4221 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4222 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4223 return GetNamedPipeHandleStateW (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPWSTR) lpUserName, nMaxUserNameSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4224 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4225 return GetNamedPipeHandleStateA (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPSTR) lpUserName, nMaxUserNameSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4226 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4227
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4228 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4229 qxeCallNamedPipe (const Extbyte * lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead, DWORD nTimeOut)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4230 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4231 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4232 return CallNamedPipeW ((LPCWSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4233 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4234 return CallNamedPipeA ((LPCSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4235 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4236
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4237 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4238 qxeSetVolumeLabel (const Extbyte * lpRootPathName, const Extbyte * lpVolumeName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4239 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4240 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4241 return SetVolumeLabelW ((LPCWSTR) lpRootPathName, (LPCWSTR) lpVolumeName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4242 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4243 return SetVolumeLabelA ((LPCSTR) lpRootPathName, (LPCSTR) lpVolumeName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4244 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4245
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4246 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4247 qxeClearEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4248 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4249 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4250 return ClearEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4251 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4252 return ClearEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4253 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4254
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4255 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4256 qxeBackupEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4257 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4258 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4259 return BackupEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4260 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4261 return BackupEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4262 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4263
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4264 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4265 qxeOpenEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4266 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4267 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4268 return OpenEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4269 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4270 return OpenEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4271 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4272
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4273 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4274 qxeRegisterEventSource (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4275 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4276 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4277 return RegisterEventSourceW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4278 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4279 return RegisterEventSourceA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4280 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4281
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4282 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4283 qxeOpenBackupEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4284 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4285 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4286 return OpenBackupEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4287 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4288 return OpenBackupEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4289 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4290
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4291 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4292 qxeReadEventLog (HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD * pnBytesRead, DWORD * pnMinNumberOfBytesNeeded)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4293 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4294 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4295 return ReadEventLogW (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4296 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4297 return ReadEventLogA (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4298 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4299
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4300 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4301 qxeReportEvent (HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, const Extbyte * * lpStrings, LPVOID lpRawData)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4302 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4303 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4304 return ReportEventW (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCWSTR *) lpStrings, lpRawData);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4305 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4306 return ReportEventA (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCSTR *) lpStrings, lpRawData);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4307 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4308
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4309 /* Error if ReadDirectoryChanges used: Unicode-only */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4310
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4311 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4312 qxeIsBadStringPtr (const Extbyte * lpsz, UINT_PTR ucchMax)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4313 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4314 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4315 return IsBadStringPtrW ((LPCWSTR) lpsz, ucchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4316 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4317 return IsBadStringPtrA ((LPCSTR) lpsz, ucchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4318 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4319
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4320 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4321 qxeLookupAccountSid (const Extbyte * lpSystemName, PSID Sid, Extbyte * Name, LPDWORD cchName, Extbyte * ReferencedDomainName, LPDWORD cchReferencedDomainName, PSID_NAME_USE peUse)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4322 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4323 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4324 return LookupAccountSidW ((LPCWSTR) lpSystemName, Sid, (LPWSTR) Name, cchName, (LPWSTR) ReferencedDomainName, cchReferencedDomainName, peUse);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4325 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4326 return LookupAccountSidA ((LPCSTR) lpSystemName, Sid, (LPSTR) Name, cchName, (LPSTR) ReferencedDomainName, cchReferencedDomainName, peUse);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4327 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4328
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4329 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4330 qxeLookupAccountName (const Extbyte * lpSystemName, const Extbyte * lpAccountName, PSID Sid, LPDWORD cbSid, Extbyte * ReferencedDomainName, LPDWORD cchReferencedDomainName, PSID_NAME_USE peUse)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4331 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4332 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4333 return LookupAccountNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpAccountName, Sid, cbSid, (LPWSTR) ReferencedDomainName, cchReferencedDomainName, peUse);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4334 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4335 return LookupAccountNameA ((LPCSTR) lpSystemName, (LPCSTR) lpAccountName, Sid, cbSid, (LPSTR) ReferencedDomainName, cchReferencedDomainName, peUse);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4336 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4337
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4338 /* Error if LookupAccountNameLocal used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4339
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4340 /* Error if LookupAccountSidLocal used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4341
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4342 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4343 qxeLookupPrivilegeValue (const Extbyte * lpSystemName, const Extbyte * lpName, PLUID lpLuid)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4344 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4345 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4346 return LookupPrivilegeValueW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, lpLuid);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4347 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4348 return LookupPrivilegeValueA ((LPCSTR) lpSystemName, (LPCSTR) lpName, lpLuid);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4349 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4350
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4351 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4352 qxeLookupPrivilegeName (const Extbyte * lpSystemName, PLUID lpLuid, Extbyte * lpName, LPDWORD cchName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4353 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4354 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4355 return LookupPrivilegeNameW ((LPCWSTR) lpSystemName, lpLuid, (LPWSTR) lpName, cchName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4356 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4357 return LookupPrivilegeNameA ((LPCSTR) lpSystemName, lpLuid, (LPSTR) lpName, cchName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4358 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4359
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4360 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4361 qxeLookupPrivilegeDisplayName (const Extbyte * lpSystemName, const Extbyte * lpName, Extbyte * lpDisplayName, LPDWORD cchDisplayName, LPDWORD lpLanguageId)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4362 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4363 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4364 return LookupPrivilegeDisplayNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, (LPWSTR) lpDisplayName, cchDisplayName, lpLanguageId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4365 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4366 return LookupPrivilegeDisplayNameA ((LPCSTR) lpSystemName, (LPCSTR) lpName, (LPSTR) lpDisplayName, cchDisplayName, lpLanguageId);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4367 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4368
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4369 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4370 qxeBuildCommDCB (const Extbyte * lpDef, LPDCB lpDCB)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4371 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4372 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4373 return BuildCommDCBW ((LPCWSTR) lpDef, lpDCB);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4374 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4375 return BuildCommDCBA ((LPCSTR) lpDef, lpDCB);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4376 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4377
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4378 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4379 qxeBuildCommDCBAndTimeouts (const Extbyte * lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTimeouts)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4380 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4381 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4382 return BuildCommDCBAndTimeoutsW ((LPCWSTR) lpDef, lpDCB, lpCommTimeouts);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4383 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4384 return BuildCommDCBAndTimeoutsA ((LPCSTR) lpDef, lpDCB, lpCommTimeouts);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4385 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4386
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4387 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4388 qxeCommConfigDialog (const Extbyte * lpszName, HWND hWnd, LPCOMMCONFIG lpCC)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4389 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4390 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4391 return CommConfigDialogW ((LPCWSTR) lpszName, hWnd, lpCC);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4392 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4393 return CommConfigDialogA ((LPCSTR) lpszName, hWnd, lpCC);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4394 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4395
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4396 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4397 qxeGetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4398 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4399 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4400 return GetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, lpdwSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4401 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4402 return GetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, lpdwSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4403 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4404
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4405 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4406 qxeSetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, DWORD dwSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4407 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4408 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4409 return SetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, dwSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4410 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4411 return SetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, dwSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4412 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4413
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4414 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4415 qxeGetComputerName (Extbyte * lpBuffer, LPDWORD nSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4416 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4417 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4418 return GetComputerNameW ((LPWSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4419 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4420 return GetComputerNameA ((LPSTR) lpBuffer, nSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4421 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4422
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4423 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4424 qxeSetComputerName (const Extbyte * lpComputerName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4425 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4426 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4427 return SetComputerNameW ((LPCWSTR) lpComputerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4428 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4429 return SetComputerNameA ((LPCSTR) lpComputerName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4430 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4431
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4432 /* Error if DnsHostnameToComputerName used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4433
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4434 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4435 qxeGetUserName (Extbyte * lpBuffer, LPDWORD pcbBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4436 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4437 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4438 return GetUserNameW ((LPWSTR) lpBuffer, pcbBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4439 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4440 return GetUserNameA ((LPSTR) lpBuffer, pcbBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4441 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4442
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
4443 /* Skipping LogonUser because HST_LPC...pblm_unused */
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4444
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4445 /* Error if LogonUserEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4446
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4447 /* Error if CreateProcessWithLogon used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4448
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4449 /* Error if CreateProcessWithToken used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4450
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4451 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4452
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4453 /* Error if VerifyVersionInfo used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4454
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4455 /* Error if CreateJobObject used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4456
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4457 /* Error if OpenJobObject used: NT 5.0+ only */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4458
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4459 /* Error if FindFirstVolumeMountPoint used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4460
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4461 /* Error if FindNextVolumeMountPoint used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4462
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4463 /* Error if SetVolumeMountPoint used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4464
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4465 /* Error if CreateActCtx used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4466
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4467 /* Error if FindActCtxSectionString used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4468
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4469 /* Error if QueryActCtx used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4470
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4471 /* Error if CreateSymbolicLink used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4472
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4473 /* Error if CreateSymbolicLinkTransacted used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4474
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4475 /* Error if QueryActCtxSettings used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4476
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4477
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4478 /*----------------------------------------------------------------------*/
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4479 /* Processing file FILEAPI.H */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4480 /*----------------------------------------------------------------------*/
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4481
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4482 HANDLE
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4483 qxeCreateFile (const Extbyte * lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4484 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4485 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4486 return CreateFileW ((LPCWSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4487 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4488 return CreateFileA ((LPCSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4489 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4490
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4491 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4492 qxeDefineDosDevice (DWORD dwFlags, const Extbyte * lpDeviceName, const Extbyte * lpTargetPath)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4493 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4494 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4495 return DefineDosDeviceW (dwFlags, (LPCWSTR) lpDeviceName, (LPCWSTR) lpTargetPath);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4496 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4497 return DefineDosDeviceA (dwFlags, (LPCSTR) lpDeviceName, (LPCSTR) lpTargetPath);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4498 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4499
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4500 /* Error if DeleteVolumeMountPoint used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4501
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4502 HANDLE
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4503 qxeFindFirstChangeNotification (const Extbyte * lpPathName, WINBOOL bWatchSubtree, DWORD dwNotifyFilter)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4504 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4505 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4506 return FindFirstChangeNotificationW ((LPCWSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4507 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4508 return FindFirstChangeNotificationA ((LPCSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4509 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4510
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4511 /* Error if FindFirstFile used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4512
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4513 /* Error if FindFirstVolume used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4514
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4515 /* Error if FindNextVolume used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4516
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4517 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4518 qxeGetDiskFreeSpace (const Extbyte * lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4519 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4520 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4521 return GetDiskFreeSpaceW ((LPCWSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4522 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4523 return GetDiskFreeSpaceA ((LPCSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4524 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4525
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4526 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4527 qxeGetDriveType (const Extbyte * lpRootPathName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4528 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4529 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4530 return GetDriveTypeW ((LPCWSTR) lpRootPathName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4531 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4532 return GetDriveTypeA ((LPCSTR) lpRootPathName);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4533 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4534
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4535 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4536 qxeGetFileAttributes (const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4537 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4538 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4539 return GetFileAttributesW ((LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4540 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4541 return GetFileAttributesA ((LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4542 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4543
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4544 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4545 qxeGetFullPathName (const Extbyte * lpFileName, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4546 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4547 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4548 return GetFullPathNameW ((LPCWSTR) lpFileName, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4549 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4550 return GetFullPathNameA ((LPCSTR) lpFileName, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4551 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4552
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4553 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4554 qxeGetLogicalDriveStrings (DWORD nBufferLength, Extbyte * lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4555 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4556 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4557 return GetLogicalDriveStringsW (nBufferLength, (LPWSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4558 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4559 return GetLogicalDriveStringsA (nBufferLength, (LPSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4560 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4561
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4562 /* Error if GetLongPathName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4563
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4564 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4565 qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4566 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4567 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4568 return GetShortPathNameW ((LPCWSTR) lpszLongPath, (LPWSTR) lpszShortPath, cchBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4569 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4570 return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4571 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4572
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4573 UINT
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4574 qxeGetTempFileName (const Extbyte * lpPathName, const Extbyte * lpPrefixString, UINT uUnique, Extbyte * lpTempFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4575 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4576 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4577 return GetTempFileNameW ((LPCWSTR) lpPathName, (LPCWSTR) lpPrefixString, uUnique, (LPWSTR) lpTempFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4578 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4579 return GetTempFileNameA ((LPCSTR) lpPathName, (LPCSTR) lpPrefixString, uUnique, (LPSTR) lpTempFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4580 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4581
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4582 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4583 qxeGetVolumeInformation (const Extbyte * lpRootPathName, Extbyte * lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, Extbyte * lpFileSystemNameBuffer, DWORD nFileSystemNameSize)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4584 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4585 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4586 return GetVolumeInformationW ((LPCWSTR) lpRootPathName, (LPWSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPWSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4587 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4588 return GetVolumeInformationA ((LPCSTR) lpRootPathName, (LPSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4589 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4590
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4591 /* Error if GetVolumePathName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4592
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4593 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4594 qxeQueryDosDevice (const Extbyte * lpDeviceName, Extbyte * lpTargetPath, DWORD ucchMax)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4595 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4596 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4597 return QueryDosDeviceW ((LPCWSTR) lpDeviceName, (LPWSTR) lpTargetPath, ucchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4598 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4599 return QueryDosDeviceA ((LPCSTR) lpDeviceName, (LPSTR) lpTargetPath, ucchMax);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4600 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4601
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4602 DWORD
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4603 qxeGetTempPath (DWORD nBufferLength, Extbyte * lpBuffer)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4604 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4605 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4606 return GetTempPathW (nBufferLength, (LPWSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4607 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4608 return GetTempPathA (nBufferLength, (LPSTR) lpBuffer);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4609 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4610
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4611 /* Error if GetVolumeNameForVolumeMountPoint used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4612
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4613 /* Error if GetVolumePathNamesForVolumeName used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4614
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4615 /* Error if GetFinalPathNameByHandle used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4616
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4617 /* Error if GetVolumeInformationByHandle used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4618
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4619 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4620 qxeCreateDirectory (const Extbyte * lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4621 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4622 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4623 return CreateDirectoryW ((LPCWSTR) lpPathName, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4624 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4625 return CreateDirectoryA ((LPCSTR) lpPathName, lpSecurityAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4626 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4627
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4628 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4629 qxeDeleteFile (const Extbyte * lpFileName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4630 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4631 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4632 return DeleteFileW ((LPCWSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4633 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4634 return DeleteFileA ((LPCSTR) lpFileName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4635 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4636
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4637 /* Error if FindFirstFileEx used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4638
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4639 /* Error if FindNextFile used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4640
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4641 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4642 qxeGetDiskFreeSpaceEx (const Extbyte * lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4643 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4644 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4645 return GetDiskFreeSpaceExW ((LPCWSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4646 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4647 return GetDiskFreeSpaceExA ((LPCSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4648 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4649
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4650 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4651 qxeGetFileAttributesEx (const Extbyte * lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4652 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4653 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4654 return GetFileAttributesExW ((LPCWSTR) lpFileName, fInfoLevelId, lpFileInformation);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4655 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4656 return GetFileAttributesExA ((LPCSTR) lpFileName, fInfoLevelId, lpFileInformation);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4657 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4658
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4659 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4660 qxeRemoveDirectory (const Extbyte * lpPathName)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4661 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4662 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4663 return RemoveDirectoryW ((LPCWSTR) lpPathName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4664 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4665 return RemoveDirectoryA ((LPCSTR) lpPathName);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4666 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4667
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4668 WINBOOL
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4669 qxeSetFileAttributes (const Extbyte * lpFileName, DWORD dwFileAttributes)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4670 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4671 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4672 return SetFileAttributesW ((LPCWSTR) lpFileName, dwFileAttributes);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4673 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4674 return SetFileAttributesA ((LPCSTR) lpFileName, dwFileAttributes);
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4675 }
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4676
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4677
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4678 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4679 /* Processing file ACLAPI.h */
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4680 /*----------------------------------------------------------------------*/
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4681
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4682 /* Error if SetEntriesInAcl used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4683
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4684 /* Error if GetExplicitEntriesFromAcl used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4685
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4686 /* Error if GetEffectiveRightsFromAcl used: Function needs review to determine how to handle it */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4687
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4688 /* Error if GetAuditedPermissionsFromAcl used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4689
4873
50861fea97f6 regenerate intl-auto-encap-win32.c, now possible from Cygwin /usr/include/w32api headers
Ben Wing <ben@xemacs.org>
parents: 3728
diff changeset
4690 DWORD
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4691 qxeGetNamedSecurityInfo (const Extbyte * pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID * ppsidOwner, PSID * ppsidGroup, PACL * ppDacl, PACL * ppSacl, PSECURITY_DESCRIPTOR * ppSecurityDescriptor)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4692 {
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4693 if (XEUNICODE_P)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4694 return GetNamedSecurityInfoW ((LPCWSTR) pObjectName, ObjectType, SecurityInfo, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4695 else
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4696 return GetNamedSecurityInfoA ((LPCSTR) pObjectName, ObjectType, SecurityInfo, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4697 }
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4698
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4699 /* Error if SetNamedSecurityInfo used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4700
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4701 /* Error if GetInheritanceSource used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4702
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4703 /* Error if TreeResetNamedSecurityInfo used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4704
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4705 /* Error if BuildSecurityDescriptor used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4706
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4707 /* Error if LookupSecurityDescriptorParts used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4708
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4709 /* Error if BuildExplicitAccessWithName used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4710
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4711 /* Error if BuildImpersonateExplicitAccessWithName used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4712
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4713 /* Error if BuildTrusteeWithName used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4714
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4715 /* Error if BuildImpersonateTrustee used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4716
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4717 /* Error if BuildTrusteeWithSid used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4718
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4719 /* Error if BuildTrusteeWithObjectsAndSid used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4720
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4721 /* Error if BuildTrusteeWithObjectsAndName used: Function needs review to determine how to handle it */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4722
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4723 /* Error if GetTrusteeName used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4724
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4725 /* Error if GetTrusteeType used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4726
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4727 /* Error if GetTrusteeForm used: Function needs review to determine how to handle it */
4875
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4728
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4729 /* Error if GetMultipleTrusteeOperation used: Function needs review to determine how to handle it */
49de55c09f18 add "review" lines in intl-encap-win32.c for all unseen functions in processed headers
Ben Wing <ben@xemacs.org>
parents: 4873
diff changeset
4730
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4731 /* Error if GetMultipleTrustee used: Function needs review to determine how to handle it */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4732
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4733 /* Error if TreeSetNamedSecurityInfo used: HST: new? -- needs review */
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents: 4911
diff changeset
4734