Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/ole/win32/COMAPI.d @ 38:2e09b0e6857a
work on phobosfication
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 11:18:25 +0100 |
parents | 6dd524f61e62 |
children | 0ecb2b338560 |
comparison
equal
deleted
inserted
replaced
37:46c5f8f56b41 | 38:2e09b0e6857a |
---|---|
9 module org.eclipse.swt.internal.ole.win32.COMAPI; | 9 module org.eclipse.swt.internal.ole.win32.COMAPI; |
10 | 10 |
11 | 11 |
12 //private import std.c.windows.windows; | 12 //private import std.c.windows.windows; |
13 //private import std.c.windows.com; | 13 //private import std.c.windows.com; |
14 private import org.eclipse.swt.internal.win32.WINTYPES; | 14 import org.eclipse.swt.internal.win32.WINTYPES; |
15 private import org.eclipse.swt.internal.ole.win32.COMTYPES; | 15 import org.eclipse.swt.internal.ole.win32.COMTYPES; |
16 private import org.eclipse.swt.internal.ole.win32.OBJIDL; | 16 import org.eclipse.swt.internal.ole.win32.OBJIDL; |
17 private import org.eclipse.swt.internal.ole.win32.OLEIDL; | 17 import org.eclipse.swt.internal.ole.win32.OLEIDL; |
18 private import org.eclipse.swt.internal.ole.win32.OAIDL; | 18 import org.eclipse.swt.internal.ole.win32.OAIDL; |
19 private import org.eclipse.swt.internal.ole.win32.extras; | 19 import org.eclipse.swt.internal.ole.win32.extras; |
20 | 20 |
21 extern(Windows){ | 21 extern(Windows){ |
22 | 22 |
23 WINOLEAPI CreateStreamOnHGlobal( | 23 WINOLEAPI CreateStreamOnHGlobal( |
24 HGLOBAL hGlobal, //Memory handle for the stream object | 24 HGLOBAL hGlobal, //Memory handle for the stream object |
37 ); | 37 ); |
38 STDAPI CoCreateInstance( | 38 STDAPI CoCreateInstance( |
39 REFCLSID rclsid, | 39 REFCLSID rclsid, |
40 LPUNKNOWN pUnkOuter, | 40 LPUNKNOWN pUnkOuter, |
41 DWORD dwClsContext, | 41 DWORD dwClsContext, |
42 REFIID riid, | 42 REFCIID riid, |
43 LPVOID * ppv | 43 LPVOID * ppv |
44 ); | 44 ); |
45 void CoFreeUnusedLibraries(); | 45 void CoFreeUnusedLibraries(); |
46 STDAPI CoGetClassObject( | 46 STDAPI CoGetClassObject( |
47 REFCLSID rclsid, | 47 REFCLSID rclsid, |
48 DWORD dwClsContext, | 48 DWORD dwClsContext, |
49 COSERVERINFO * pServerInfo, | 49 COSERVERINFO * pServerInfo, |
50 REFIID riid, | 50 REFCIID riid, |
51 LPVOID * ppv | 51 LPVOID * ppv |
52 ); | 52 ); |
53 STDAPI CoLockObjectExternal( | 53 STDAPI CoLockObjectExternal( |
54 LPUNKNOWN pUnk, | 54 LPUNKNOWN pUnk, |
55 BOOL fLock, | 55 BOOL fLock, |
72 WINOLEAPI GetClassFile( | 72 WINOLEAPI GetClassFile( |
73 LPCWSTR szFileName, | 73 LPCWSTR szFileName, |
74 CLSID * pclsid | 74 CLSID * pclsid |
75 ); | 75 ); |
76 WINOLEAPI IIDFromString( | 76 WINOLEAPI IIDFromString( |
77 LPOLESTR lpsz, | 77 LPCOLESTR lpsz, |
78 LPIID lpiid | 78 LPIID lpiid |
79 ); | 79 ); |
80 BOOL IsEqualGUID( | 80 BOOL IsEqualGUID( |
81 REFGUID rguid1, | 81 REFCGUID rguid1, |
82 REFGUID rguid2 | 82 REFCGUID rguid2 |
83 ); | 83 ); |
84 WINOLEAPI OleCreate( | 84 WINOLEAPI OleCreate( |
85 REFCLSID rclsid, //CLSID of embedded object to be created | 85 REFCLSID rclsid, //CLSID of embedded object to be created |
86 REFIID riid, //Reference to the identifier of the interface | 86 REFCIID riid, //Reference to the identifier of the interface |
87 // used to communicate with new object | 87 // used to communicate with new object |
88 DWORD renderopt, //RENDEROPT value indicating cached capabilities | 88 DWORD renderopt, //RENDEROPT value indicating cached capabilities |
89 FORMATETC * pFormatEtc, | 89 FORMATETC * pFormatEtc, |
90 //Pointer to a FORMATETC structure | 90 //Pointer to a FORMATETC structure |
91 IOleClientSite * pClientSite, | 91 IOleClientSite * pClientSite, |
96 ); | 96 ); |
97 WINOLEAPI OleCreateFromFile( | 97 WINOLEAPI OleCreateFromFile( |
98 REFCLSID rclsid, //Reserved. Must be CLSID_NULL | 98 REFCLSID rclsid, //Reserved. Must be CLSID_NULL |
99 LPCOLESTR lpszFileName, //Pointer to full path of file used to | 99 LPCOLESTR lpszFileName, //Pointer to full path of file used to |
100 // create object | 100 // create object |
101 REFIID riid, //Reference to the identifier of the | 101 REFCIID riid, //Reference to the identifier of the |
102 // interface to be used to communicate with | 102 // interface to be used to communicate with |
103 // new object | 103 // new object |
104 DWORD renderopt, //Value from OLERENDER | 104 DWORD renderopt, //Value from OLERENDER |
105 LPFORMATETC pFormatEtc, //Pointer to the FORMATETC structure | 105 LPFORMATETC pFormatEtc, //Pointer to the FORMATETC structure |
106 LPOLECLIENTSITE pClientSite, | 106 LPOLECLIENTSITE pClientSite, |
237 WINOLEAPI StringFromCLSID( | 237 WINOLEAPI StringFromCLSID( |
238 REFCLSID rclsid, | 238 REFCLSID rclsid, |
239 LPOLESTR * ppsz | 239 LPOLESTR * ppsz |
240 ); | 240 ); |
241 BSTR SysAllocString( | 241 BSTR SysAllocString( |
242 OLECHAR * sz | 242 LPCOLESTR sz |
243 ); | 243 ); |
244 VOID SysFreeString( | 244 VOID SysFreeString( |
245 BSTR bstr | 245 BSTR bstr |
246 ); | 246 ); |
247 UINT SysStringByteLen( | 247 UINT SysStringByteLen( |