KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > ole > win32 > COM


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.ole.win32;
12
13 import org.eclipse.swt.internal.win32.*;
14
15 public class COM extends OS {
16     /** GUID Constants */
17     public static final GUID IIDJavaBeansBridge = COM.IIDFromString("{8AD9C840-044E-11D1-B3E9-00805F499D93}"); //$NON-NLS-1$
18
public static final GUID IIDShockwaveActiveXControl = COM.IIDFromString("{166B1BCA-3F9C-11CF-8075-444553540000}"); //$NON-NLS-1$
19
public static final GUID IIDIEditorSiteTime = IIDFromString("{6BD2AEFE-7876-45e6-A6E7-3BFCDF6540AA}"); //$NON-NLS-1$
20
public static final GUID IIDIEditorSiteProperty = IIDFromString("{D381A1F4-2326-4f3c-AFB9-B7537DB9E238}"); //$NON-NLS-1$
21
public static final GUID IIDIEditorBaseProperty = IIDFromString("{61E55B0B-2647-47c4-8C89-E736EF15D636}"); //$NON-NLS-1$
22
public static final GUID IIDIEditorSite = IIDFromString("{CDD88AB9-B01D-426E-B0F0-30973E9A074B}"); //$NON-NLS-1$
23
public static final GUID IIDIEditorService = IIDFromString("{BEE283FE-7B42-4FF3-8232-0F07D43ABCF1}"); //$NON-NLS-1$
24
public static final GUID IIDIEditorManager = IIDFromString("{EFDE08C4-BE87-4B1A-BF84-15FC30207180}"); //$NON-NLS-1$
25
public static final GUID IIDIAccessible = IIDFromString("{618736E0-3C3D-11CF-810C-00AA00389B71}"); //$NON-NLS-1$
26
//public static final GUID IIDIAccessibleHandler = IIDFromString("{03022430-ABC4-11D0-BDE2-00AA001A1953}"); //$NON-NLS-1$
27
//public static final GUID IIDIAccessor = IIDFromString("{0C733A8C-2A1C-11CE-ADE5-00AA0044773D}"); //$NON-NLS-1$
28
public static final GUID IIDIAdviseSink = IIDFromString("{0000010F-0000-0000-C000-000000000046}"); //$NON-NLS-1$
29
//public static final GUID IIDIAdviseSink2 = IIDFromString("{00000125-0000-0000-C000-000000000046}"); //$NON-NLS-1$
30
//public static final GUID IIDIBindCtx = IIDFromString("{0000000E-0000-0000-C000-000000000046}"); //$NON-NLS-1$
31
//public static final GUID IIDIClassFactory = IIDFromString("{00000001-0000-0000-C000-000000000046}"); //$NON-NLS-1$
32
public static final GUID IIDIClassFactory2 = IIDFromString("{B196B28F-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
33
public static final GUID IIDIConnectionPoint = IIDFromString("{B196B286-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
34
public static final GUID IIDIConnectionPointContainer = IIDFromString("{B196B284-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
35
//public static final GUID IIDICreateErrorInfo = IIDFromString("{22F03340-547D-101B-8E65-08002B2BD119}"); //$NON-NLS-1$
36
//public static final GUID IIDICreateTypeInfo = IIDFromString("{00020405-0000-0000-C000-000000000046}"); //$NON-NLS-1$
37
//public static final GUID IIDICreateTypeLib = IIDFromString("{00020406-0000-0000-C000-000000000046}"); //$NON-NLS-1$
38
//public static final GUID IIDIDataAdviseHolder = IIDFromString("{00000110-0000-0000-C000-000000000046}"); //$NON-NLS-1$
39
public static final GUID IIDIDataObject = IIDFromString("{0000010E-0000-0000-C000-000000000046}"); //$NON-NLS-1$
40
public static final GUID IIDIDispatch = IIDFromString("{00020400-0000-0000-C000-000000000046}"); //$NON-NLS-1$
41
public static final GUID IIDIDocHostUIHandler = IIDFromString("{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}"); //$NON-NLS-1$
42
public static final GUID IIDIDocHostShowUI = IIDFromString("{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}"); //$NON-NLS-1$
43
public static final GUID IIDIDropSource = IIDFromString("{00000121-0000-0000-C000-000000000046}"); //$NON-NLS-1$
44
public static final GUID IIDIDropTarget = IIDFromString("{00000122-0000-0000-C000-000000000046}"); //$NON-NLS-1$
45
//public static final GUID IIDIEnumConnectionPoints = IIDFromString("{B196B285-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
46
//public static final GUID IIDIEnumConnections = IIDFromString("{B196B287-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
47
public static final GUID IIDIEnumFORMATETC = IIDFromString("{00000103-0000-0000-C000-000000000046}"); //$NON-NLS-1$
48
//public static final GUID IIDIEnumMoniker = IIDFromString("{00000102-0000-0000-C000-000000000046}"); //$NON-NLS-1$
49
//public static final GUID IIDIEnumOLEVERB = IIDFromString("{00000104-0000-0000-C000-000000000046}"); //$NON-NLS-1$
50
//public static final GUID IIDIEnumSTATDATA = IIDFromString("{00000105-0000-0000-C000-000000000046}"); //$NON-NLS-1$
51
//public static final GUID IIDIEnumSTATSTG = IIDFromString("{0000000D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
52
//public static final GUID IIDIEnumString = IIDFromString("{00000101-0000-0000-C000-000000000046}"); //$NON-NLS-1$
53
//public static final GUID IIDIEnumUnknown = IIDFromString("{00000100-0000-0000-C000-000000000046}"); //$NON-NLS-1$
54
public static final GUID IIDIEnumVARIANT = IIDFromString("{00020404-0000-0000-C000-000000000046}"); //$NON-NLS-1$
55
//public static final GUID IIDIErrorInfo = IIDFromString("{1CF2B120-547D-101B-8E65-08002B2BD119}"); //$NON-NLS-1$
56
//public static final GUID IIDIErrorLog = IIDFromString("{3127CA40-446E-11CE-8135-00AA004BB851}"); //$NON-NLS-1$
57
//public static final GUID IIDIExternalConnection = IIDFromString("{00000019-0000-0000-C000-000000000046}"); //$NON-NLS-1$
58
public static final GUID IIDIFont = IIDFromString("{BEF6E002-A874-101A-8BBA-00AA00300CAB}"); //$NON-NLS-1$
59
//public static final GUID IIDIFontDisp = IIDFromString("{BEF6E003-A874-101A-8BBA-00AA00300CAB}"); //$NON-NLS-1$
60
public static final /*GUID*/ String JavaDoc IIDIHTMLDocumentEvents2 = /*IIDFromString(*/"{3050F613-98B5-11CF-BB82-00AA00BDCE0B}"/*)*/;
61     public static final GUID IIDIInternetSecurityManager = IIDFromString("{79eac9ee-baf9-11ce-8c82-00aa004ba90b}"); //$NON-NLS-1$
62
//public static final GUID IIDILockBytes = IIDFromString("{0000000A-0000-0000-C000-000000000046}"); //$NON-NLS-1$
63
//public static final GUID IIDIMalloc = IIDFromString("{00000002-0000-0000-C000-000000000046}"); //$NON-NLS-1$
64
//public static final GUID IIDIMallocSpy = IIDFromString("{0000001D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
65
//public static final GUID IIDIMarshal = IIDFromString("{00000003-0000-0000-C000-000000000046}"); //$NON-NLS-1$
66
//public static final GUID IIDIMessageFilter = IIDFromString("{00000016-0000-0000-C000-000000000046}"); //$NON-NLS-1$
67
//public static final GUID IIDIMoniker = IIDFromString("{0000000F-0000-0000-C000-000000000046}"); //$NON-NLS-1$
68
//public static final GUID IIDIOleAdviseHolder = IIDFromString("{00000111-0000-0000-C000-000000000046}"); //$NON-NLS-1$
69
//public static final GUID IIDIOleCache = IIDFromString("{0000011E-0000-0000-C000-000000000046}"); //$NON-NLS-1$
70
//public static final GUID IIDIOleCache2 = IIDFromString("{00000128-0000-0000-C000-000000000046}"); //$NON-NLS-1$
71
//public static final GUID IIDIOleCacheControl = IIDFromString("{00000129-0000-0000-C000-000000000046}"); //$NON-NLS-1$
72
public static final GUID IIDIOleClientSite = IIDFromString("{00000118-0000-0000-C000-000000000046}"); //$NON-NLS-1$
73
public static final GUID IIDIOleCommandTarget = IIDFromString("{B722BCCB-4E68-101B-A2BC-00AA00404770}"); //$NON-NLS-1$
74
public static final GUID IIDIOleContainer = IIDFromString("{0000011B-0000-0000-C000-000000000046}"); //$NON-NLS-1$
75
public static final GUID IIDIOleControl = IIDFromString("{B196B288-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
76
public static final GUID IIDIOleControlSite = IIDFromString("{B196B289-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
77
public static final GUID IIDIOleDocument = IIDFromString("{B722BCC5-4E68-101B-A2BC-00AA00404770}"); //$NON-NLS-1$
78
public static final GUID IIDIOleDocumentSite = IIDFromString("{B722BCC7-4E68-101B-A2BC-00AA00404770}"); //$NON-NLS-1$
79
public static final GUID IIDIOleInPlaceActiveObject = IIDFromString("{00000117-0000-0000-C000-000000000046}"); //$NON-NLS-1$
80
public static final GUID IIDIOleInPlaceFrame = IIDFromString("{00000116-0000-0000-C000-000000000046}"); //$NON-NLS-1$
81
public static final GUID IIDIOleInPlaceObject = IIDFromString("{00000113-0000-0000-C000-000000000046}"); //$NON-NLS-1$
82
public static final GUID IIDIOleInPlaceSite = IIDFromString("{00000119-0000-0000-C000-000000000046}"); //$NON-NLS-1$
83
public static final GUID IIDIOleInPlaceUIWindow = IIDFromString("{00000115-0000-0000-C000-000000000046}"); //$NON-NLS-1$
84
//public static final GUID IIDIOleItemContainer = IIDFromString("{0000011C-0000-0000-C000-000000000046}"); //$NON-NLS-1$
85
public static final GUID IIDIOleLink = IIDFromString("{0000011D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
86
public static final GUID IIDIOleObject = IIDFromString("{00000112-0000-0000-C000-000000000046}"); //$NON-NLS-1$
87
public static final GUID IIDIOleWindow = IIDFromString("{00000114-0000-0000-C000-000000000046}"); //$NON-NLS-1$
88
//public static final GUID IIDIParseDisplayName = IIDFromString("{0000011A-0000-0000-C000-000000000046}"); //$NON-NLS-1$
89
//public static final GUID IIDIPerPropertyBrowsing = IIDFromString("{376BD3AA-3845-101B-84ED-08002B2EC713}"); //$NON-NLS-1$
90
public static final GUID IIDIPersist = IIDFromString("{0000010C-0000-0000-C000-000000000046}"); //$NON-NLS-1$
91
public static final GUID IIDIPersistFile = IIDFromString("{0000010B-0000-0000-C000-000000000046}"); //$NON-NLS-1$
92
//public static final GUID IIDIPersistMemory = IIDFromString("{BD1AE5E0-A6AE-11CE-BD37-504200C10000}"); //$NON-NLS-1$
93
//public static final GUID IIDIPersistPropertyBag = IIDFromString("{37D84F60-42CB-11CE-8135-00AA004BB851}"); //$NON-NLS-1$
94
public static final GUID IIDIPersistStorage = IIDFromString("{0000010A-0000-0000-C000-000000000046}"); //$NON-NLS-1$
95
public static final GUID IIDIPersistStream = IIDFromString("{00000109-0000-0000-C000-000000000046}"); //$NON-NLS-1$
96
public static final GUID IIDIPersistStreamInit = IIDFromString("{7FD52380-4E07-101B-AE2D-08002B2EC713}"); //$NON-NLS-1$
97
//public static final GUID IIDIPicture = IIDFromString("{7BF80980-BF32-101A-8BBB-00AA00300CAB}"); //$NON-NLS-1$
98
//public static final GUID IIDIPictureDisp = IIDFromString("{7BF80981-BF32-101A-8BBB-00AA00300CAB}"); //$NON-NLS-1$
99
//public static final GUID IIDIPropertyBag = IIDFromString("{55272A00-42CB-11CE-8135-00AA004BB851}"); //$NON-NLS-1$
100
public static final GUID IIDIPropertyNotifySink = IIDFromString("{9BFBBC02-EFF1-101A-84ED-00AA00341D07}"); //$NON-NLS-1$
101
//public static final GUID IIDIPropertyPage = IIDFromString("{B196B28D-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
102
//public static final GUID IIDIPropertyPage2 = IIDFromString("{01E44665-24AC-101B-84ED-08002B2EC713}"); //$NON-NLS-1$
103
//public static final GUID IIDIPropertyPageSite = IIDFromString("{B196B28C-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
104
public static final GUID IIDIProvideClassInfo = IIDFromString("{B196B283-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
105
public static final GUID IIDIProvideClassInfo2 = IIDFromString("{A6BC3AC0-DBAA-11CE-9DE3-00AA004BB851}"); //$NON-NLS-1$
106
//public static final GUID IIDIPSFactoryBuffer = IIDFromString("{D5F569D0-593B-101A-B569-08002B2DBF7A}"); //$NON-NLS-1$
107
//public static final GUID IIDIRootStorage = IIDFromString("{00000012-0000-0000-C000-000000000046}"); //$NON-NLS-1$
108
//public static final GUID IIDIROTData = IIDFromString("{F29F6BC0-5021-11CE-AA15-00006901293F}"); //$NON-NLS-1$
109
//public static final GUID IIDIRpcChannelBuffer = IIDFromString("{D5F56B60-593B-101A-B569-08002B2DBF7A}"); //$NON-NLS-1$
110
//public static final GUID IIDIRpcProxyBuffer = IIDFromString("{D5F56A34-593B-101A-B569-08002B2DBF7A}"); //$NON-NLS-1$
111
//public static final GUID IIDIRpcStubBuffer = IIDFromString("{D5F56AFC-593B-101A-B569-08002B2DBF7A}"); //$NON-NLS-1$
112
//public static final GUID IIDIRunnableObject = IIDFromString("{00000126-0000-0000-C000-000000000046}"); //$NON-NLS-1$
113
//public static final GUID IIDIRunningObjectTable = IIDFromString("{00000010-0000-0000-C000-000000000046}"); //$NON-NLS-1$
114
//public static final GUID IIDISimpleFrameSite = IIDFromString("{742B0E01-14E6-101B-914E-00AA00300CAB}"); //$NON-NLS-1$
115
public static final GUID IIDIServiceProvider = IIDFromString("{6d5140c1-7436-11ce-8034-00aa006009fa}"); //$NON-NLS-1$
116
public static final GUID IIDISpecifyPropertyPages = IIDFromString("{B196B28B-BAB4-101A-B69C-00AA00341D07}"); //$NON-NLS-1$
117
//public static final GUID IIDIStdMarshalInfo = IIDFromString("{00000018-0000-0000-C000-000000000046}"); //$NON-NLS-1$
118
public static final GUID IIDIStorage = IIDFromString("{0000000B-0000-0000-C000-000000000046}"); //$NON-NLS-1$
119
public static final GUID IIDIStream = IIDFromString("{0000000C-0000-0000-C000-000000000046}"); //$NON-NLS-1$
120
//public static final GUID IIDISupportErrorInfo = IIDFromString("{DF0B3D60-548F-101B-8E65-08002B2BD119}"); //$NON-NLS-1$
121
//public static final GUID IIDITypeComp = IIDFromString("{00020403-0000-0000-C000-000000000046}"); //$NON-NLS-1$
122
//public static final GUID IIDITypeLib = IIDFromString("{00020402-0000-0000-C000-000000000046}"); //$NON-NLS-1$
123
public static final GUID IIDIUnknown = IIDFromString("{00000000-0000-0000-C000-000000000046}"); //$NON-NLS-1$
124
//public static final GUID IIDIViewObject = IIDFromString("{0000010D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
125
public static final GUID IIDIViewObject2 = IIDFromString("{00000127-0000-0000-C000-000000000046}"); //$NON-NLS-1$
126
public static final GUID CGID_DocHostCommandHandler = IIDFromString("{f38bc242-b950-11d1-8918-00c04fc2c836}"); //$NON-NLS-1$
127
public static final GUID CGID_Explorer = IIDFromString("{000214D0-0000-0000-C000-000000000046}"); //$NON-NLS-1$
128

129
130     /** Constants */
131     //public static final int ADVF_DATAONSTOP = 64;
132
//public static final int ADVF_NODATA = 1;
133
//public static final int ADVF_ONLYONCE = 2;
134
//public static final int ADVF_PRIMEFIRST = 4;
135
//public static final int ADVFCACHE_FORCEBUILTIN = 16;
136
//public static final int ADVFCACHE_NOHANDLER = 8;
137
//public static final int ADVFCACHE_ONSAVE = 32;
138
public static final int CF_TEXT = 1;
139     public static final int CF_BITMAP = 2;
140     public static final int CF_METAFILEPICT = 3;
141     public static final int CF_SYLK = 4;
142     public static final int CF_DIF = 5;
143     public static final int CF_TIFF = 6;
144     public static final int CF_OEMTEXT = 7;
145     public static final int CF_DIB = 8;
146     public static final int CF_PALETTE = 9;
147     public static final int CF_PENDATA = 10;
148     public static final int CF_RIFF = 11;
149     public static final int CF_WAVE = 12;
150     public static final int CF_UNICODETEXT = 13;
151     public static final int CF_ENHMETAFILE = 14;
152     public static final int CF_HDROP = 15;
153     public static final int CF_LOCALE = 16;
154     public static final int CF_MAX = 17;
155     public static final int CLSCTX_INPROC_HANDLER = 2;
156     public static final int CLSCTX_INPROC_SERVER = 1;
157     public static final int CLSCTX_LOCAL_SERVER = 4;
158     public static final int CLSCTX_REMOTE_SERVER = 16;
159     public static final int CO_E_CLASSSTRING = -2147221005;
160     //public static final int COINIT_APARTMENTTHREADED = 2;
161
//public static final int COINIT_DISABLE_OLE1DDE = 4;
162
//public static final int COINIT_MULTITHREADED = 0;
163
//public static final int COINIT_SPEED_OVER_MEMORY = 8;
164
public static final int DATADIR_GET = 1;
165     public static final int DATADIR_SET = 2;
166     public static final int DISP_E_EXCEPTION = 0x80020009;
167     public static final int DISP_E_MEMBERNOTFOUND = -2147352573;
168     public static final int DISP_E_UNKNOWNINTERFACE = 0x80020001;
169     //public static final int DISPID_AMBIENT_APPEARANCE = -716;
170
//public static final int DISPID_AMBIENT_AUTOCLIP = -715;
171
public static final int DISPID_AMBIENT_BACKCOLOR = -701;
172     //public static final int DISPID_AMBIENT_CHARSET = -727;
173
//public static final int DISPID_AMBIENT_CODEPAGE = -725;
174
//public static final int DISPID_AMBIENT_DISPLAYASDEFAULT = -713;
175
//public static final int DISPID_AMBIENT_DISPLAYNAME = -702;
176
public static final int DISPID_AMBIENT_FONT = -703;
177     public static final int DISPID_AMBIENT_FORECOLOR = -704;
178     public static final int DISPID_AMBIENT_LOCALEID = -705;
179     public static final int DISPID_AMBIENT_MESSAGEREFLECT = -706;
180     public static final int DISPID_AMBIENT_OFFLINEIFNOTCONNECTED = -5501;
181     //public static final int DISPID_AMBIENT_PALETTE = -726;
182
//public static final int DISPID_AMBIENT_RIGHTTOLEFT = -732;
183
//public static final int DISPID_AMBIENT_SCALEUNITS = -707;
184
public static final int DISPID_AMBIENT_SHOWGRABHANDLES = -711;
185     public static final int DISPID_AMBIENT_SHOWHATCHING = -712;
186     public static final int DISPID_AMBIENT_SILENT = -5502;
187     public static final int DISPID_AMBIENT_SUPPORTSMNEMONICS = -714;
188     //public static final int DISPID_AMBIENT_TEXTALIGN = -708;
189
//public static final int DISPID_AMBIENT_TOPTOBOTTOM = -733;
190
//public static final int DISPID_AMBIENT_TRANSFERPRIORITY = -728;
191
public static final int DISPID_AMBIENT_UIDEAD = -710;
192     public static final int DISPID_AMBIENT_USERMODE = -709;
193     public static final int DISPID_BACKCOLOR = -501;
194     public static final int DISPID_FONT = -512;
195     public static final int DISPID_FONT_BOLD = 3;
196     public static final int DISPID_FONT_CHARSET = 8;
197     public static final int DISPID_FONT_ITALIC = 4;
198     public static final int DISPID_FONT_NAME = 0;
199     public static final int DISPID_FONT_SIZE = 2;
200     public static final int DISPID_FONT_STRIKE = 6;
201     public static final int DISPID_FONT_UNDER = 5;
202     public static final int DISPID_FONT_WEIGHT = 7;
203     public static final int DISPID_FORECOLOR = -513;
204     public static final int DISPID_HTMLDOCUMENTEVENTS_ONDBLCLICK = 0xFFFFFDA7;
205     public static final int DISPID_HTMLDOCUMENTEVENTS_ONDRAGSTART = 0x8001000B;
206     public static final int DISPID_HTMLDOCUMENTEVENTS_ONMOUSEOUT = 0x80010009;
207     public static final int DISPID_HTMLDOCUMENTEVENTS_ONMOUSEOVER = 0x80010008;
208     public static final int DISPID_HTMLDOCUMENTEVENTS_ONMOUSEMOVE = 0xFFFFFDA2;
209     public static final int DISPID_HTMLDOCUMENTEVENTS_ONMOUSEDOWN = 0xFFFFFDA3;
210     public static final int DISPID_HTMLDOCUMENTEVENTS_ONMOUSEUP = 0xFFFFFDA1;
211
212     //public static final int DISPID_READYSTATE = -525;
213
//public static final int DISPID_READYSTATECHANGE = -609;
214
public static final int DRAGDROP_S_DROP = 0x00040100;
215     public static final int DRAGDROP_S_CANCEL = 0x00040101;
216     public static final int DRAGDROP_S_USEDEFAULTCURSORS = 0x00040102;
217     public static final int DROPEFFECT_NONE = 0;
218     public static final int DROPEFFECT_COPY = 1;
219     public static final int DROPEFFECT_MOVE = 2;
220     public static final int DROPEFFECT_LINK = 4;
221     public static final int DROPEFFECT_SCROLL = 0x80000000;
222     public static final int DV_E_FORMATETC = -2147221404;
223     public static final int DV_E_STGMEDIUM = -2147221402;
224     public static final int DV_E_TYMED = -2147221399;
225     public static final int DVASPECT_CONTENT = 1;
226     //public static final int DVASPECT_DOCPRINT = 8;
227
//public static final int DVASPECT_ICON = 4;
228
//public static final int DVASPECT_THUMBNAIL = 2;
229
public static final int E_FAIL = -2147467259;
230     public static final int E_INVALIDARG = -2147024809;
231     public static final int E_NOINTERFACE = -2147467262;
232     public static final int E_NOTIMPL = -2147467263;
233     public static final int E_NOTSUPPORTED = 0x80040100;
234     //public static final int E_NOTLICENSED = -2147221230;
235
public static final int E_OUTOFMEMORY = -2147024882;
236     //public static final int E_POINTER = -2147467261;
237
public static final int GMEM_FIXED = 0;
238     //public static final int GMEM_MOVABLE = 2;
239
//public static final int GMEM_NODISCARD = 32;
240
public static final int GMEM_ZEROINIT = 64;
241     public static final int GUIDKIND_DEFAULT_SOURCE_DISP_IID = 1;
242     public static final int IMPLTYPEFLAG_FDEFAULT = 1;
243     //public static final int IMPLTYPEFLAG_FDEFAULTVTABLE = 2048;
244
public static final int IMPLTYPEFLAG_FRESTRICTED = 4;
245     public static final int IMPLTYPEFLAG_FSOURCE = 2;
246     public static final int LOCALE_SYSTEM_DEFAULT = 1024;
247     public static final int LOCALE_USER_DEFAULT = 2048;
248     //public static final int MEMCTX_TASK = 1;
249
//public static final int OLEACTIVATEAUTO = 3;
250
//public static final int OLEACTIVATEDOUBLECLICK = 2;
251
//public static final int OLEACTIVATEGETFOCUS = 1;
252
//public static final int OLEACTIVATEMANUAL = 0;
253
//public static final int OLEAUTOMATIC = 0;
254
//public static final int OLECHANGED = 0;
255
public static final int OLECLOSE_NOSAVE = 1;
256     //public static final int OLECLOSE_PROMPTSAVE = 2;
257
public static final int OLECLOSE_SAVEIFDIRTY = 0;
258     //public static final int OLECLOSED = 2;
259
//public static final int OLECONTF_EMBEDDINGS = 1;
260
//public static final int OLECONTF_LINKS = 2;
261
//public static final int OLECONTF_ONLYIFRUNNING = 16;
262
//public static final int OLECONTF_ONLYUSER = 8;
263
//public static final int OLECONTF_OTHERS = 4;
264
//public static final int OLEDEACTIVATEMANUAL = 1;
265
//public static final int OLEDEACTIVATEONLOSEFOCUS = 0;
266
//public static final int OLEDECBORDER = 1;
267
//public static final int OLEDECBORDERANDNIBS = 3;
268
//public static final int OLEDECNIBS = 2;
269
//public static final int OLEDECNONE = 0;
270
//public static final int OLEDISPLAYCONTENT = 0;
271
//public static final int OLEDISPLAYICON = 1;
272
//public static final int OLEEITHER = 2;
273
public static final int OLEEMBEDDED = 1;
274     //public static final int OLEFROZEN = 1;
275
public static final int OLEIVERB_DISCARDUNDOSTATE = -6;
276     //public static final int OLEIVERB_HIDE = -3;
277
public static final int OLEIVERB_INPLACEACTIVATE = -5;
278     //public static final int OLEIVERB_OPEN = -2;
279
public static final int OLEIVERB_PRIMARY = 0;
280     //public static final int OLEIVERB_PROPERTIES = -7;
281
//public static final int OLEIVERB_SHOW = -1;
282
//public static final int OLEIVERB_UIACTIVATE = -4;
283
public static final int OLELINKED = 0;
284     //public static final int OLEMANUAL = 2;
285
//public static final int OLEMISC_ACTIVATEWHENVISIBLE = 256;
286
//public static final int OLEMISC_ACTSLIKEBUTTON = 4096;
287
//public static final int OLEMISC_ACTSLIKELABEL = 8192;
288
//public static final int OLEMISC_ALIGNABLE = 32768;
289
//public static final int OLEMISC_ALWAYSRUN = 2048;
290
//public static final int OLEMISC_CANLINKBYOLE1 = 32;
291
//public static final int OLEMISC_CANTLINKINSIDE = 16;
292
//public static final int OLEMISC_IGNOREACTIVATEWHENVISIBLE = 524288;
293
//public static final int OLEMISC_IMEMODE = 262144;
294
//public static final int OLEMISC_INSERTNOTREPLACE = 4;
295
//public static final int OLEMISC_INSIDEOUT = 128;
296
//public static final int OLEMISC_INVISIBLEATRUNTIME = 1024;
297
//public static final int OLEMISC_ISLINKOBJECT = 64;
298
//public static final int OLEMISC_NOUIACTIVATE = 16384;
299
//public static final int OLEMISC_ONLYICONIC = 2;
300
//public static final int OLEMISC_RECOMPOSEONRESIZE = 1;
301
//public static final int OLEMISC_RENDERINGISDEVICEINDEPENDENT = 512;
302
//public static final int OLEMISC_SETCLIENTSITEFIRST = 131072;
303
//public static final int OLEMISC_SIMPLEFRAME = 65536;
304
//public static final int OLEMISC_STATIC = 8;
305
//public static final int OLEMISC_SUPPORTSMULTILEVELUNDO = 2097152;
306
//public static final int OLEMISC_WANTSTOMENUMERGE = 1048576;
307
//public static final int OLENONE = 3;
308
//public static final int OLERENAMED = 3;
309
//public static final int OLERENDER_ASIS = 3;
310
public static final int OLERENDER_DRAW = 1;
311     //public static final int OLERENDER_FORMAT = 2;
312
//public static final int OLERENDER_NONE = 0;
313
//public static final int OLESAVED = 1;
314
//public static final int OLESIZEAUTOSIZE = 2;
315
//public static final int OLESIZECLIP = 0;
316
//public static final int OLESIZESTRETCH = 1;
317
//public static final int OLESIZEZOOM = 3;
318
//public static final int OLEWHICHMK_CONTAINER = 1;
319
//public static final int OLEWHICHMK_OBJFULL = 3;
320
//public static final int OLEWHICHMK_OBJREL = 2;
321
public static final int S_FALSE = 1;
322     public static final int S_OK = 0;
323     public static final int STG_E_FILENOTFOUND = 0x80030002;
324     public static final int STG_S_CONVERTED = 0x00030200;
325     //public static final int STGC_CONSOLIDATE = 8;
326
//public static final int STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4;
327
public static final int STGC_DEFAULT = 0;
328     //public static final int STGC_ONLYIFCURRENT = 2;
329
//public static final int STGC_OVERWRITE = 1;
330
public static final int STGM_CONVERT = 0x00020000;
331     public static final int STGM_CREATE = 0x00001000;
332     public static final int STGM_DELETEONRELEASE = 0x04000000;
333     public static final int STGM_DIRECT = 0x00000000;
334     public static final int STGM_DIRECT_SWMR = 0x00400000;
335     public static final int STGM_FAILIFTHERE = 0x00000000;
336     public static final int STGM_NOSCRATCH = 0x00100000;
337     public static final int STGM_NOSNAPSHOT = 0x00200000;
338     public static final int STGM_PRIORITY = 0x00040000;
339     public static final int STGM_READ = 0x00000000;
340     public static final int STGM_READWRITE = 0x00000002;
341     public static final int STGM_SHARE_DENY_NONE = 0x00000040;
342     public static final int STGM_SHARE_DENY_READ = 0x00000030;
343     public static final int STGM_SHARE_DENY_WRITE = 0x00000020;
344     public static final int STGM_SHARE_EXCLUSIVE = 0x00000010;
345     public static final int STGM_SIMPLE = 0x08000000;
346     public static final int STGM_TRANSACTED = 0x00010000;
347     public static final int STGM_WRITE = 0x00000001;
348     public static final int STGTY_STORAGE = 1;
349     public static final int STGTY_STREAM = 2;
350     public static final int STGTY_LOCKBYTES = 3;
351     public static final int STGTY_PROPERTY = 4;
352     //public static final int TYMED_ENHMF = 64;
353
//public static final int TYMED_FILE = 2;
354
//public static final int TYMED_GDI = 16;
355
public static final int TYMED_HGLOBAL = 1;
356     //public static final int TYMED_ISTORAGE = 8;
357
//public static final int TYMED_ISTREAM = 4;
358
//public static final int TYMED_MFPICT = 32;
359
//public static final int TYMED_NULL = 0;
360
public static final short DISPATCH_METHOD = 0x1;
361     public static final short DISPATCH_PROPERTYGET = 0x2;
362     public static final short DISPATCH_PROPERTYPUT = 0x4;
363     public static final short DISPATCH_PROPERTYPUTREF = 0x8;
364     //public static final short DISPID_CONSTRUCTOR = -6;
365
//public static final short DISPID_DESTRUCTOR = -7;
366
//public static final short DISPID_EVALUATE = -5;
367
//public static final short DISPID_NEWENUM = -4;
368
public static final short DISPID_PROPERTYPUT = -3;
369     //public static final short DISPID_UNKNOWN = -1;
370
//public static final short DISPID_VALUE = 0;
371
public static final short VT_BOOL = 11;
372     public static final short VT_BSTR = 8;
373     public static final short VT_BYREF = 16384;
374     public static final short VT_CY = 6;
375     public static final short VT_DATE = 7;
376     public static final short VT_DISPATCH = 9;
377     public static final short VT_EMPTY = 0;
378     public static final short VT_ERROR = 10;
379     public static final short VT_I1 = 16;
380     public static final short VT_I2 = 2;
381     public static final short VT_I4 = 3;
382     public static final short VT_I8 = 20;
383     public static final short VT_NULL = 1;
384     public static final short VT_R4 = 4;
385     public static final short VT_R8 = 5;
386     public static final short VT_UI1 = 17;
387     public static final short VT_UI2 = 18;
388     public static final short VT_UI4 = 19;
389     public static final short VT_UNKNOWN = 13;
390     public static final short VT_VARIANT = 12;
391     public static final short VARIANT_TRUE = -1;
392     public static final short VARIANT_FALSE = 0;
393
394 private static GUID IIDFromString(String JavaDoc lpsz) {
395     int length = lpsz.length();
396     char[] buffer = new char[length + 1];
397     lpsz.getChars(0, length, buffer, 0);
398     GUID lpiid = new GUID();
399     if (COM.IIDFromString(buffer, lpiid) == COM.S_OK) return lpiid;
400     return null;
401 }
402
403 /** Natives */
404 public static final native int CLSIDFromProgID(char[] lpszProgID, GUID pclsid);
405 public static final native int CLSIDFromString(char[] lpsz, GUID pclsid);
406 public static final native int CoCreateInstance(GUID rclsid, int /*long*/ pUnkOuter, int dwClsContext, GUID riid, int /*long*/[] ppv);
407 public static final native void CoFreeUnusedLibraries();
408 public static final native int CoGetClassObject(GUID rclsid, int dwClsContext, int /*long*/ pServerInfo, GUID riid, int /*long*/[] ppv);
409 public static final native int CoLockObjectExternal(int /*long*/ pUnk, boolean fLock, boolean fLastUnlockReleases);
410 public static final native int /*long*/ CoTaskMemAlloc(int cb);
411 public static final native void CoTaskMemFree(int /*long*/ pv);
412 public static final native int DoDragDrop(int /*long*/ pDataObject, int /*long*/ pDropSource, int dwOKEffect, int[] pdwEffect);
413 public static final native int GetClassFile(char[] szFileName, GUID clsid);
414 public static final native int IIDFromString(char[] lpsz, GUID lpiid);
415 public static final native boolean IsEqualGUID(GUID rguid1, GUID rguid2);
416 public static final native void MoveMemory(int /*long*/ Destination, FORMATETC Source, int Length);
417 public static final native void MoveMemory(int /*long*/ DestinationPtr, GUID Source, int Length);
418 public static final native void MoveMemory(int /*long*/ DestinationPtr, OLEINPLACEFRAMEINFO Source, int Length);
419 public static final native void MoveMemory(int /*long*/ Destination, STATSTG Source, int Length);
420 public static final native void MoveMemory(int /*long*/ Destination, STGMEDIUM Source, int Length);
421 public static final native void MoveMemory(STGMEDIUM Destination, int /*long*/ SourcePtr, int Length);
422 public static final native void MoveMemory(DISPPARAMS Destination, int /*long*/ SourcePtr, int Length);
423 public static final native void MoveMemory(FORMATETC Destination, int /*long*/ Source, int Length);
424 public static final native void MoveMemory(GUID Destination, int /*long*/ SourcePtr, int Length);
425 public static final native void MoveMemory(STATSTG Destination, int /*long*/ Source, int Length);
426 public static final native void MoveMemory(TYPEATTR Destination, int /*long*/ SourcePtr, int Length);
427 public static final native void MoveMemory(RECT Destination, int /*long*/ Source, int Length);
428 public static final native void MoveMemory(FUNCDESC Destination, int /*long*/ Source, int Length);
429 public static final native void MoveMemory(VARDESC Destination, int /*long*/ Source, int Length);
430 public static final native void MoveMemory(VARIANT Destination, int /*long*/ Source, int Length);
431 public static final native int OleCreate(GUID rclsid, GUID riid, int renderopt, FORMATETC pFormatEtc, int /*long*/ pClientSite, int /*long*/ pStg, int /*long*/[] ppvObject);
432 public static final native int OleCreateFromFile(GUID rclsid, char[] lpszFileName, GUID riid, int renderopt, FORMATETC pFormatEtc, int /*long*/ pClientSite, int /*long*/ pStg, int /*long*/[] ppvObj);
433 public static final native int OleCreatePropertyFrame(int /*long*/ hwndOwner,int x, int y, char[] lpszCaption, int cObjects, int /*long*/[] lplpUnk, int cPages, int /*long*/ lpPageClsID, int lcid, int dwReserved, int /*long*/ lpvReserved);
434 public static final native int OleDraw(int /*long*/ pUnk, int dwAspect, int /*long*/ hdcDraw, int /*long*/ lprcBounds);
435 public static final native int OleFlushClipboard();
436 public static final native int OleGetClipboard(int /*long*/[] ppDataObject);
437 public static final native int OleIsCurrentClipboard(int /*long*/ pDataObject);
438 public static final native boolean OleIsRunning(int /*long*/ pObject);
439 public static final native int OleLoad(int /*long*/ pStg, GUID riid, int /*long*/ pClientSite, int /*long*/[] ppvObj);
440 public static final native int OleRun(int /*long*/ pUnknown);
441 public static final native int OleSave(int /*long*/ pPS, int /*long*/ pStg, boolean fSameAsLoad);
442 public static final native int OleSetClipboard(int /*long*/ pDataObject);
443 public static final native int OleSetContainedObject(int /*long*/ pUnk, boolean fContained);
444 public static final native int OleSetMenuDescriptor(int /*long*/ holemenu, int /*long*/ hwndFrame, int /*long*/ hwndActiveObject, int /*long*/ lpFrame, int /*long*/ lpActiveObj);
445 public static final native int OleTranslateColor(int clr, int /*long*/ hpal, int[] pcolorref);
446 public static final native int ProgIDFromCLSID(GUID clsid, int /*long*/[] lplpszProgID);
447 public static final native int RegisterDragDrop(int /*long*/ hwnd, int /*long*/ pDropTarget);
448 public static final native void ReleaseStgMedium(int /*long*/ pmedium);
449 public static final native int RevokeDragDrop(int /*long*/ hwnd);
450 public static final native int StgCreateDocfile(char[] pwcsName, int grfMode, int reserved, int /*long*/[] ppstgOpen);
451 public static final native int StgIsStorageFile(char[] pwcsName);
452 public static final native int StgOpenStorage(char[] pwcsName, int /*long*/ pstgPriority, int grfMode, int /*long*/ snbExclude, int reserved, int /*long*/[] ppstgOpen);
453 public static final native int StringFromCLSID(GUID rclsid, int /*long*/[] ppsz);
454 public static final native int /*long*/ SysAllocString(char [] sz);
455 public static final native void SysFreeString(int /*long*/ bstr);
456 public static final native int SysStringByteLen(int /*long*/ bstr);
457 public static final native int VariantChangeType(int /*long*/ pvargDest, int /*long*/ pvarSrc, short wFlags, short vt);
458 public static final native int VariantClear(int /*long*/ pvarg);
459 public static final native void VariantInit(int /*long*/ pvarg);
460
461 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0);
462 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, char[] arg1);
463
464 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int /*long*/ arg1);
465
466 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int arg1, int arg2, int arg3, int[] arg4);
467 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int arg1, int arg2, int arg3, long[] arg4);
468 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, long arg1, int arg2, int arg3, long[] arg4);
469
470 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int /*long*/ arg1, int arg2, int arg3, int arg4, int /*long*/[] arg5);
471
472 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int[] arg0);
473 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long[] arg0);
474
475 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int[] arg1);
476 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0, int[] arg1);
477 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, long[] arg1);
478
479 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1);
480
481 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int[] arg2);
482 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, long[] arg2);
483 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, long arg1, int[] arg2);
484 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0, int arg1, int[] arg2);
485
486 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int /*long*/ arg2);
487
488 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, DVTARGETDEVICE arg2, SIZE arg3);
489
490 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, GUID arg2, int /*long*/ arg3, int /*long*/[] arg4);
491
492 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, FORMATETC arg1, int /*long*/[] arg2);
493
494 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, GUID arg1);
495
496 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, GUID arg1, int /*long*/ arg2, int /*long*/ arg3);
497
498 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, GUID arg1, int arg2, int arg3, DISPPARAMS arg4, int /*long*/ arg5, EXCEPINFO arg6, int[] arg7);
499
500 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, STATSTG arg1, int /*long*/[] arg2);
501
502 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, MSG arg0);
503
504 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, MSG arg1, int /*long*/ arg2, int arg3, int /*long*/ arg4, RECT arg5);
505
506 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, SIZE arg1);
507
508 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, boolean arg1);
509
510 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, boolean arg0);
511
512 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, CAUUID arg0);
513 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, CONTROLINFO arg0);
514 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, FORMATETC arg0);
515 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, FORMATETC arg0, STGMEDIUM arg1);
516 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, FORMATETC arg0, STGMEDIUM arg1, boolean arg2);
517 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0);
518
519 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0, int /*long*/[] arg1);
520
521 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0, GUID arg1, int /*long*/[] arg2);
522
523 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0, int /*long*/ arg1, int arg2, int arg3, int[] arg4);
524
525 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0, int arg1, int arg2, int /*long*/ arg3, int /*long*/ arg4);
526
527 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, GUID arg0, int arg1, OLECMD arg2, OLECMDTEXT arg3);
528
529 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, LICINFO arg0);
530
531 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, RECT arg0, int /*long*/ arg1, boolean arg2);
532
533 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, RECT arg0, RECT arg1);
534 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, RECT arg0);
535
536 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int /*long*/[] arg1, int /*long*/[] arg2, int[] arg3, int /*long*/[] arg4);
537
538 public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int /*long*/[] arg1, int arg2, int[] arg3);
539
540 public static final native int WriteClassStg(int /*long*/ pStg, GUID rclsid);
541
542 /** Accessibility constants */
543 public static final int CHILDID_SELF = 0;
544 public static final int CO_E_OBJNOTCONNECTED = 0x800401FD;
545 //public static final int ROLE_SYSTEM_TITLEBAR = 0x1;
546
public static final int ROLE_SYSTEM_MENUBAR = 0x2;
547 public static final int ROLE_SYSTEM_SCROLLBAR = 0x3;
548 //public static final int ROLE_SYSTEM_GRIP = 0x4;
549
//public static final int ROLE_SYSTEM_SOUND = 0x5;
550
//public static final int ROLE_SYSTEM_CURSOR = 0x6;
551
//public static final int ROLE_SYSTEM_CARET = 0x7;
552
//public static final int ROLE_SYSTEM_ALERT = 0x8;
553
public static final int ROLE_SYSTEM_WINDOW = 0x9;
554 public static final int ROLE_SYSTEM_CLIENT = 0xa;
555 public static final int ROLE_SYSTEM_MENUPOPUP = 0xb;
556 public static final int ROLE_SYSTEM_MENUITEM = 0xc;
557 public static final int ROLE_SYSTEM_TOOLTIP = 0xd;
558 //public static final int ROLE_SYSTEM_APPLICATION = 0xe;
559
//public static final int ROLE_SYSTEM_DOCUMENT = 0xf;
560
//public static final int ROLE_SYSTEM_PANE = 0x10;
561
//public static final int ROLE_SYSTEM_CHART = 0x11;
562
public static final int ROLE_SYSTEM_DIALOG = 0x12;
563 //public static final int ROLE_SYSTEM_BORDER = 0x13;
564
//public static final int ROLE_SYSTEM_GROUPING = 0x14;
565
public static final int ROLE_SYSTEM_SEPARATOR = 0x15;
566 public static final int ROLE_SYSTEM_TOOLBAR = 0x16;
567 //public static final int ROLE_SYSTEM_STATUSBAR = 0x17;
568
public static final int ROLE_SYSTEM_TABLE = 0x18;
569 public static final int ROLE_SYSTEM_COLUMNHEADER = 0x19;
570 public static final int ROLE_SYSTEM_ROWHEADER = 0x1a;
571 //public static final int ROLE_SYSTEM_COLUMN = 0x1b;
572
//public static final int ROLE_SYSTEM_ROW = 0x1c;
573
public static final int ROLE_SYSTEM_CELL = 0x1d;
574 public static final int ROLE_SYSTEM_LINK = 0x1e;
575 //public static final int ROLE_SYSTEM_HELPBALLOON = 0x1f;
576
//public static final int ROLE_SYSTEM_CHARACTER = 0x20;
577
public static final int ROLE_SYSTEM_LIST = 0x21;
578 public static final int ROLE_SYSTEM_LISTITEM = 0x22;
579 public static final int ROLE_SYSTEM_OUTLINE = 0x23;
580 public static final int ROLE_SYSTEM_OUTLINEITEM = 0x24;
581 public static final int ROLE_SYSTEM_PAGETAB = 0x25;
582 //public static final int ROLE_SYSTEM_PROPERTYPAGE = 0x26;
583
//public static final int ROLE_SYSTEM_INDICATOR = 0x27;
584
//public static final int ROLE_SYSTEM_GRAPHIC = 0x28;
585
public static final int ROLE_SYSTEM_STATICTEXT = 0x29;
586 public static final int ROLE_SYSTEM_TEXT = 0x2a;
587 public static final int ROLE_SYSTEM_PUSHBUTTON = 0x2b;
588 public static final int ROLE_SYSTEM_CHECKBUTTON = 0x2c;
589 public static final int ROLE_SYSTEM_RADIOBUTTON = 0x2d;
590 public static final int ROLE_SYSTEM_COMBOBOX = 0x2e;
591 //public static final int ROLE_SYSTEM_DROPLIST = 0x2f;
592
public static final int ROLE_SYSTEM_PROGRESSBAR = 0x30;
593 //public static final int ROLE_SYSTEM_DIAL = 0x31;
594
//public static final int ROLE_SYSTEM_HOTKEYFIELD = 0x32;
595
public static final int ROLE_SYSTEM_SLIDER = 0x33;
596 //public static final int ROLE_SYSTEM_SPINBUTTON = 0x34;
597
//public static final int ROLE_SYSTEM_DIAGRAM = 0x35;
598
//public static final int ROLE_SYSTEM_ANIMATION = 0x36;
599
//public static final int ROLE_SYSTEM_EQUATION = 0x37;
600
//public static final int ROLE_SYSTEM_BUTTONDROPDOWN = 0x38;
601
//public static final int ROLE_SYSTEM_BUTTONMENU = 0x39;
602
//public static final int ROLE_SYSTEM_BUTTONDROPDOWNGRID = 0x3a;
603
//public static final int ROLE_SYSTEM_WHITESPACE = 0x3b;
604
public static final int ROLE_SYSTEM_PAGETABLIST = 0x3c;
605 //public static final int ROLE_SYSTEM_CLOCK = 0x3d;
606
public static final int STATE_SYSTEM_NORMAL = 0;
607 //public static final int STATE_SYSTEM_UNAVAILABLE = 0x1;
608
public static final int STATE_SYSTEM_SELECTED = 0x2;
609 public static final int STATE_SYSTEM_FOCUSED = 0x4;
610 public static final int STATE_SYSTEM_PRESSED = 0x8;
611 public static final int STATE_SYSTEM_CHECKED = 0x10;
612 //public static final int STATE_SYSTEM_MIXED = 0x20;
613
//public static final int STATE_SYSTEM_INDETERMINATE = STATE_SYSTEM_MIXED;
614
public static final int STATE_SYSTEM_READONLY = 0x40;
615 public static final int STATE_SYSTEM_HOTTRACKED = 0x80;
616 //public static final int STATE_SYSTEM_DEFAULT = 0x100;
617
public static final int STATE_SYSTEM_EXPANDED = 0x200;
618 public static final int STATE_SYSTEM_COLLAPSED = 0x400;
619 public static final int STATE_SYSTEM_BUSY = 0x800;
620 //public static final int STATE_SYSTEM_FLOATING = 0x1000;
621
//public static final int STATE_SYSTEM_MARQUEED = 0x2000;
622
//public static final int STATE_SYSTEM_ANIMATED = 0x4000;
623
public static final int STATE_SYSTEM_INVISIBLE = 0x8000;
624 public static final int STATE_SYSTEM_OFFSCREEN = 0x10000;
625 public static final int STATE_SYSTEM_SIZEABLE = 0x20000;
626 //public static final int STATE_SYSTEM_MOVEABLE = 0x40000;
627
//public static final int STATE_SYSTEM_SELFVOICING = 0x80000;
628
public static final int STATE_SYSTEM_FOCUSABLE = 0x100000;
629 public static final int STATE_SYSTEM_SELECTABLE = 0x200000;
630 public static final int STATE_SYSTEM_LINKED = 0x400000;
631 //public static final int STATE_SYSTEM_TRAVERSED = 0x800000;
632
public static final int STATE_SYSTEM_MULTISELECTABLE = 0x1000000;
633 //public static final int STATE_SYSTEM_EXTSELECTABLE = 0x2000000;
634
//public static final int STATE_SYSTEM_ALERT_LOW = 0x4000000;
635
//public static final int STATE_SYSTEM_ALERT_MEDIUM = 0x8000000;
636
//public static final int STATE_SYSTEM_ALERT_HIGH = 0x10000000;
637
//public static final int STATE_SYSTEM_PROTECTED = 0x20000000;
638
//public static final int STATE_SYSTEM_VALID = 0x3fffffff;
639

640 /** Accessibility natives */
641 public static final native int AccessibleObjectFromWindow (int /*long*/ hwnd, int dwObjectID, GUID riid, int /*long*/[] ppvObject);
642 public static final native int CreateStdAccessibleObject (int /*long*/ hwnd, int idObject, GUID riidInterface, int /*long*/[] ppvObject);
643 public static final native int /*long*/ LresultFromObject (GUID riid, int /*long*/ wParam, int /*long*/ pAcc);
644 /*USED*/public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int arg2, int arg3);
645 /*USED*/public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4);
646 /*USED,NEW*/public static final native int VtblCall(int fnNumber, long ppVtbl, int arg0, int arg1, int arg2, int arg3, long arg4);
647 /*USED*/public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int /*long*/ arg5);
648 /*USED,NEW*/public static final native int VtblCall(int fnNumber, long ppVtbl, long arg0, int arg1, int arg2, int arg3, int arg4, int /*long*/ arg5);
649 /*USED*/public static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int arg4, int arg5, int arg6, int arg7);
650
651 /** Custom accessibility natives */
652 public static final native int VtblCall_VARIANT(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0);
653 public static final native int VtblCall_VARIANTP(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1);
654 public static final native int VtblCall_IVARIANT(int fnNumber, int /*long*/ ppVtbl, int arg0, int /*long*/ arg1);
655 public static final native int VtblCall_IVARIANTP(int fnNumber, int /*long*/ ppVtbl, int arg0, int /*long*/ arg1, int /*long*/ arg2);
656 public static final native int VtblCall_PVARIANTP(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2);
657 public static final native int VtblCall_PPPPVARIANT(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4);
658 public static final native int /*long*/ get_accChild_CALLBACK(int /*long*/ func);
659 public static final native int /*long*/ get_accName_CALLBACK(int /*long*/ func);
660 public static final native int /*long*/ get_accValue_CALLBACK(int /*long*/ func);
661 public static final native int /*long*/ get_accDescription_CALLBACK(int /*long*/ func);
662 public static final native int /*long*/ get_accRole_CALLBACK(int /*long*/ func);
663 public static final native int /*long*/ get_accState_CALLBACK(int /*long*/ func);
664 public static final native int /*long*/ get_accHelp_CALLBACK(int /*long*/ func);
665 public static final native int /*long*/ get_accHelpTopic_CALLBACK(int /*long*/ func);
666 public static final native int /*long*/ get_accKeyboardShortcut_CALLBACK(int /*long*/ func);
667 public static final native int /*long*/ get_accDefaultAction_CALLBACK(int /*long*/ func);
668 public static final native int /*long*/ accSelect_CALLBACK(int /*long*/ func);
669 public static final native int /*long*/ accLocation_CALLBACK(int /*long*/ func);
670 public static final native int /*long*/ accNavigate_CALLBACK(int /*long*/ func);
671 public static final native int /*long*/ accDoDefaultAction_CALLBACK(int /*long*/ func);
672 public static final native int /*long*/ put_accName_CALLBACK(int /*long*/ func);
673 public static final native int /*long*/ put_accValue_CALLBACK(int /*long*/ func);
674
675 /* sizeof's */
676 public static final native int CAUUID_sizeof();
677 public static final native int CONTROLINFO_sizeof();
678 public static final native int COSERVERINFO_sizeof();
679 public static final native int DISPPARAMS_sizeof();
680 public static final native int DVTARGETDEVICE_sizeof();
681 public static final native int EXCEPINFO_sizeof();
682 public static final native int FORMATETC_sizeof();
683 public static final native int FUNCDESC_sizeof();
684 public static final native int GUID_sizeof();
685 public static final native int LICINFO_sizeof();
686 public static final native int OLECMD_sizeof();
687 public static final native int OLEINPLACEFRAMEINFO_sizeof();
688 public static final native int STATSTG_sizeof();
689 public static final native int STGMEDIUM_sizeof();
690 public static final native int TYPEATTR_sizeof();
691 public static final native int VARDESC_sizeof();
692 public static final native int VARIANT_sizeof();
693 }
694
Popular Tags