Changeset 536
- Timestamp:
- Jul 11, 2008, 1:24:57 AM (16 years ago)
- Location:
- trunk/ab5.0/ablib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/build_batch/build_basic_static_libaray_full.bat
r515 r536 1 1 call ".\build_basic_static_library(32bit - debug).bat" 2 if errorlevel 1 goto exit 2 3 call ".\build_basic_static_library(32bit - release).bat" 4 if errorlevel 1 goto exit 3 5 call ".\build_basic_static_library(64bit - debug).bat" 6 if errorlevel 1 goto exit 4 7 call ".\build_basic_static_library(64bit - release).bat" 8 :exit 5 9 pause -
trunk/ab5.0/ablib/build_batch/build_basic_static_libaray_x86_only.bat
r515 r536 1 @echo off 1 2 call ".\build_basic_static_library(32bit - debug).bat" 2 call ".\build_basic_static_library(32bit - release).bat"3 if not errorlevel 1 call ".\build_basic_static_library(32bit - release).bat" 3 4 pause -
trunk/ab5.0/ablib/src/Classes/System/Runtime/InteropServices/GCHandle.ab
r388 r536 8 8 Public 9 9 Function Target() As Object 10 Dim pobj = VarPtr(handle) As *Object 11 Return pobj[0] 10 Target = _System_PtrObj(handle) 12 11 End Function 13 12 14 13 Sub Target(obj As Object) 14 If handle <> 0 Then 15 Dim i = allocated.IndexOf(Target()) 16 'assert(i <> -1) 17 allocated[i] = obj 18 End If 15 19 allocated.Add(obj) 16 20 handle = ObjPtr(obj) -
trunk/ab5.0/ablib/src/Classes/System/Threading/Thread.ab
r532 r536 19 19 20 20 Enum ThreadState 21 'スレッド状態に AbortRequested が含まれ、そのスレッドは停止していますが、状態はまだ Stopped に変わっていません。 21 'スレッド状態に AbortRequested が含まれ、そのスレッドは停止していますが、状態はまだ Stopped に変わっていません。 22 22 Aborted 23 'スレッド上で Thread.Abort メソッドを呼び出しますが、そのスレッドの終了を試みる保留中の System.Threading.ThreadAbortException をスレッドが受け取っていません。 23 'スレッド上で Thread.Abort メソッドを呼び出しますが、そのスレッドの終了を試みる保留中の System.Threading.ThreadAbortException をスレッドが受け取っていません。 24 24 AbortRequested 25 'スレッドは、フォアグラウンド スレッドではなく、バックグランド スレッドとして実行します。この状態は、Thread.IsBackground プロパティを設定して制御されます。 25 'スレッドは、フォアグラウンド スレッドではなく、バックグランド スレッドとして実行します。この状態は、Thread.IsBackground プロパティを設定して制御されます。 26 26 Background 27 'スレッドをブロックせずに起動します。保留中の ThreadAbortException もありません。 27 'スレッドをブロックせずに起動します。保留中の ThreadAbortException もありません。 28 28 Running 29 'スレッドを停止します。 29 'スレッドを停止します。 30 30 Stopped 31 'スレッドの停止を要求します。これは、内部でだけ使用します。 31 'スレッドの停止を要求します。これは、内部でだけ使用します。 32 32 StopRequested 33 'スレッドを中断します。 33 'スレッドを中断します。 34 34 Suspended 35 'スレッドの中断を要求します。 35 'スレッドの中断を要求します。 36 36 SuspendRequested 37 'スレッド上に Thread.Start メソッドを呼び出しません。 37 'スレッド上に Thread.Start メソッドを呼び出しません。 38 38 Unstarted 39 'スレッドがブロックされています。これは、Thread.Sleep または Thread.Join の呼び出し、ロックの要求 (たとえば、Monitor.Enter や Monitor.Wait の呼び出しによる)、または ManualResetEvent などのスレッド同期オブジェクトの待機の結果である可能性があります。 39 'スレッドがブロックされています。これは、Thread.Sleep または Thread.Join の呼び出し、ロックの要求 (たとえば、Monitor.Enter や Monitor.Wait の呼び出しによる)、または ManualResetEvent などのスレッド同期オブジェクトの待機の結果である可能性があります。 40 40 WaitSleepJoin 41 41 End Enum … … 144 144 End If 145 145 End Function 146 146 147 147 'Priority Property 148 148 Sub Priority(value As ThreadPriority) … … 177 177 178 178 Sub Start() 179 Dim ThreadId As DWord180 m_hThread= _beginthreadex(NULL,0,AddressOf(_run),VarPtr(This),CREATE_SUSPENDED,m_dwThreadId)179 Dim pfn = AddressOf(_run) As LONG_PTR 180 m_hThread=CreateThread(NULL,0,pfn As LPTHREAD_START_ROUTINE,VarPtr(This),CREATE_SUSPENDED,m_dwThreadId) 181 181 SetThreadPriority(m_hThread,m_Priority) 182 182 This.Resume() … … 216 216 /*------------------------ クラス内部用 --------------------------*/ 217 217 Private 218 Function Cdecl_run() As Long218 Function _run() As Long 219 219 '------------ 220 220 ' 前処理 -
trunk/ab5.0/ablib/src/api_window.sbp
r521 r536 60 60 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageW" 61 61 Const _FuncName_SendMessage = "SendMessageW" 62 Const _FuncName_SendMessageCallback = "SendMessageCallbackW" 63 Const _FuncName_SendMessageTimeout = "SendMessageTimeoutW" 62 64 Const _FuncName_SendNotifyMessage = "SendNotifyMessageW" 63 65 Const _FuncName_SetDlgItemText = "SetDlgItemTextW" … … 137 139 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA" 138 140 Const _FuncName_SendMessage = "SendMessageA" 141 Const _FuncName_SendMessageCallback = "SendMessageCallbackA" 142 Const _FuncName_SendMessageTimeout = "SendMessageTimeoutA" 139 143 Const _FuncName_SendNotifyMessage = "SendNotifyMessageA" 140 144 Const _FuncName_SetDlgItemText = "SetDlgItemTextA" … … 1194 1198 Const MB_YESNO = &H00000004 1195 1199 Const MB_RETRYCANCEL = &H00000005 1200 Const MB_CANCELTRYCONTINUE = &H00000006 1196 1201 Const MB_ICONHAND = &H00000010 1197 1202 Const MB_ICONQUESTION = &H00000020 … … 1218 1223 Const MB_RTLREADING = &H00100000 1219 1224 Const MB_SERVICE_NOTIFICATION = &H00200000 1225 1226 Const MB_TYPEMASK = &h0000000F 1227 Const MB_ICONMASK = &h000000F0 1228 Const MB_DEFMASK = &h00000F00 1229 Const MB_MODEMASK = &h00003000 1230 Const MB_MISCMASK = &h0000C000 1220 1231 #ifdef UNICODE 1221 1232 Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long … … 1290 1301 Declare Function SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 1291 1302 Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 1303 1304 TypeDef SENDASYNCPROC = *Sub(hwnd As HWND, uMsg As DWord, dwData As ULONG_PTR, lResult As LRESULT) 1305 Declare Function SendMessageCallback Lib "user32" Alias _FuncName_SendMessageCallback (hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM, lpResultCallBack As SENDASYNCPROC, dwData As ULONG_PTR) As BOOL 1306 Const SMTO_NORMAL = &h0000 1307 Const SMTO_BLOCK = &h0001 1308 Const SMTO_ABORTIFHUNG = &h0002 1309 '#if WINVER >= &h0500 1310 'Const SMTO_NOTIMEOUTIFNOTHUNG = &h0008 1311 '#endif 1312 '#if WINVER >= &h0600 1313 'Const SMTO_ERRORONEXIT = &h0020 1314 '#endif 1315 Declare Function SendMessageTimeout Lib "user32" Alias _FuncName_SendMessageTimeout (hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM, fuFlags As DWord, uTimeout As DWord, ByRef dwResult As ULONG_PTR) As LRESULT 1292 1316 Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 1293 1317 Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND … … 1825 1849 #endif 1826 1850 1827 /*#ifdef(WINVER >= 0x0500)1851 /*#ifdef(WINVER >= &h0500) 1828 1852 Declare Function EnumDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL 1829 1853 Declare Function EnumDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL … … 1843 1867 Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL 1844 1868 #endif 1845 #endif */ /* WINVER >= 0x0500 */1869 #endif */ /* WINVER >= &h0500 */ 1846 1870 #endif ' _INC_GDI 1847 1871 -
trunk/ab5.0/ablib/src/basic/function.sbp
r514 r536 588 588 Return "False" 589 589 End If 590 End Function 591 592 Function Str$(s As String) As String 593 Str$ = s 590 594 End Function 591 595 -
trunk/ab5.0/ablib/src/ole2.ab
r497 r536 5 5 #require <objbase.sbp> 6 6 #require <oleauto.ab> 7 #ifdef __UNDEFINED '#165が解決するまでの暫定 7 8 8 ' View OBJECT Error Codes 9 9 … … 53 53 54 54 /* helper functions */ 55 Declare Function ReadClassStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef clsid As CLSID) As HRESULT56 Declare Function WriteClassStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage, /*IN*/ ByRef clsid As CLSID) As HRESULT57 Declare Function ReadClassStm Lib "ole32.dll" (/*IN*/ ByVal stm AsIStream, /*OUT*/ ByRef clsid As CLSID) As HRESULT58 Declare Function WriteClassStm Lib "ole32.dll" (/*IN*/ ByVal stm AsIStream, /*IN*/ ByRef clsid As CLSID) As HRESULT59 Declare Function WriteFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage, /*IN*/ ByVal cf As CLIPFORMAT, /*IN*/ ByVal pszUserType As *OLECHAR) As HRESULT60 Declare Function ReadFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef cf As CLIPFORMAT, /*OUT*/ ByRef rpszUserType As *OLECHAR) As HRESULT55 Declare Function ReadClassStg Lib "ole32.dll" (/*IN*/ ByVal pStg As *IStorage, /*OUT*/ ByRef clsid As CLSID) As HRESULT 56 Declare Function WriteClassStg Lib "ole32.dll" (/*IN*/ ByVal pStg As *IStorage, /*IN*/ ByRef clsid As CLSID) As HRESULT 57 Declare Function ReadClassStm Lib "ole32.dll" (/*IN*/ ByVal pStm As *IStream, /*OUT*/ ByRef clsid As CLSID) As HRESULT 58 Declare Function WriteClassStm Lib "ole32.dll" (/*IN*/ ByVal pStm As *IStream, /*IN*/ ByRef clsid As CLSID) As HRESULT 59 Declare Function WriteFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal pstg As *IStorage, /*IN*/ ByVal cf As CLIPFORMAT, /*IN*/ ByVal pszUserType As *OLECHAR) As HRESULT 60 Declare Function ReadFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal pstg As *IStorage, /*OUT*/ ByRef cf As CLIPFORMAT, /*OUT*/ ByRef rpszUserType As *OLECHAR) As HRESULT 61 61 62 62 … … 70 70 the data object */ 71 71 72 Declare Function OleQueryLinkFromData Lib "ole32" (/*IN*/ ByVal srcDataObject AsIDataObject) As HRESULT73 Declare Function OleQueryCreateFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObject AsIDataObject) As HRESULT72 Declare Function OleQueryLinkFromData Lib "ole32" (/*IN*/ ByVal pSrcDataObject As *IDataObject) As HRESULT 73 Declare Function OleQueryCreateFromData Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObject As *IDataObject) As HRESULT 74 74 75 75 76 76 /* Object creation APIs */ 77 77 78 Declare Function OleCreate Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByRef riid As IID, /*IN*/ ByVal renderopt As DWord, 79 /*IN*/ ByVal pFormatEtc As *FORMATETC, /*IN*/ ByVal clientSite As IOleClientSite, 80 /*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT78 Declare Function OleCreate Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByRef riid As IID, /*IN*/ ByVal renderopt As DWord, _ 79 /*IN*/ ByVal pFormatEtc As *FORMATETC, /*IN*/ ByVal pClientSite As *IOleClientSite, _ 80 /*IN*/ ByVal pStg As *IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT 81 81 82 82 Declare Function OleCreateEx Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByRef riid As IID, /*IN*/ ByVal dwFlags As DWord, 83 84 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,85 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,86 /*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT87 88 Declare Function OleCreateFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj AsIDataObject, /*IN*/ ByRef riid As IID,89 90 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg AsIStorage,91 92 93 Declare Function OleCreateFromDataEx Lib "ole32.dll" (/*IN*/ ByVal srcDataObj AsIDataObject, /*IN*/ ByRef riid As IID,94 95 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,96 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,97 /*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT98 99 Declare Function OleCreateLinkFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj AsIDataObject, /*IN*/ ByRef riid As IID,100 101 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg AsIStorage,102 103 104 Declare Function OleCreateLinkFromDataEx Lib "ole32.dll" (/*IN*/ ByVal srcDataObj AsIDataObject, /*IN*/ ByRef riid As IID,105 106 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,107 /*OUT IN*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,108 /*IN*/ ByVal stg AsIStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT109 110 Declare Function OleCreateStaticFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj AsIDataObject, /*IN*/ ByRef riid As IID,111 112 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg AsIStorage,113 114 115 116 Declare Function OleCreateLink Lib "ole32.dll" (/*IN*/ ByVal mkLinkSrc AsIMoniker, /*IN*/ ByRef riid As IID,117 118 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal dataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT119 120 Declare Function OleCreateLinkEx Lib "ole32.dll" (/*IN*/ ByVal mkLinkSrc AsIMoniker, /*IN*/ ByRef riid As IID,121 122 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,123 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,124 /*IN*/ ByVal dataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT83 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 84 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 85 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 86 /*IN*/ ByVal pStg As *IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT 87 88 Declare Function OleCreateFromData Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObj As *IDataObject, /*IN*/ ByRef riid As IID, 89 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 90 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pStg As *IStorage, 91 /*OUT*/ ByRef ppvObj As Any) As HRESULT 92 93 Declare Function OleCreateFromDataEx Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObj As *IDataObject, /*IN*/ ByRef riid As IID, 94 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 95 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 96 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 97 /*IN*/ ByVal pStg As *IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT 98 99 Declare Function OleCreateLinkFromData Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObj As *IDataObject, /*IN*/ ByRef riid As IID, 100 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 101 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pStg As *IStorage, 102 /*OUT*/ ByRef ppvObj As Any) As HRESULT 103 104 Declare Function OleCreateLinkFromDataEx Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObj As *IDataObject, /*IN*/ ByRef riid As IID, 105 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 106 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 107 /*OUT IN*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 108 /*IN*/ ByVal pStg As *IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT 109 110 Declare Function OleCreateStaticFromData Lib "ole32.dll" (/*IN*/ ByVal pSrcDataObj As *IDataObject, /*IN*/ ByRef riid As IID, 111 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 112 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pStg As *IStorage, 113 /*OUT*/ ByRef ppvObj As Any) As HRESULT 114 115 116 Declare Function OleCreateLink Lib "ole32.dll" (/*IN*/ ByVal pmkLinkSrc As *IMoniker, /*IN*/ ByRef riid As IID, 117 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 118 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 119 120 Declare Function OleCreateLinkEx Lib "ole32.dll" (/*IN*/ ByVal pmkLinkSrc As *IMoniker, /*IN*/ ByRef riid As IID, 121 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 122 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 123 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 124 /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 125 125 126 126 Declare Function OleCreateLinkToFile Lib "ole32.dll" (/*IN*/ ByVal lpszFileName As LPCOLESTR, /*IN*/ ByRef riid As IID, 127 128 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByValdataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT127 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 128 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 129 129 130 130 Declare Function OleCreateLinkToFileEx Lib "ole32.dll" (/*IN*/ ByVal lpszFileName As LPCOLESTR, /*IN*/ ByRef riid As IID, 131 132 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,133 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,134 /*IN*/ ByVal dataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT131 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 132 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 133 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 134 /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 135 135 136 136 Declare Function OleCreateFromFile Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszFileName As LPOLESTR, /*IN*/ ByRef riid As IID, 137 138 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal dataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT137 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC, 138 /*IN*/ ByVal pClientSite As *IOleClientSite, /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 139 139 140 140 Declare Function OleCreateFromFileEx Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszFileName As LPOLESTR, /*IN*/ ByRef riid As IID, 141 142 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink AsIAdviseSink,143 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite AsIOleClientSite,144 /*IN*/ ByVal dataObj AsIDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT145 146 Declare Function OleLoad Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*IN*/ ByRef riid As IID, /*IN*/ ByVal clientSite AsIOleClientSite,147 148 149 Declare Function OleSave Lib "ole32.dll" (/*IN*/ ByVal p s As IPersistStorage, /*IN*/ ByVal stg AsIStorage, /*IN*/ fSameAsLoad As BOOL) As HRESULT150 151 Declare Function OleLoadFromStream Lib "ole32.dll" ( /*IN*/ ByVal stm AsIStream, /*IN*/ ByRef iidInterface As IID, /*OUT*/ ByRef ppvObj As Any) As HRESULT152 Declare Function OleSaveToStream Lib "ole32.dll" ( /*IN*/ ByVal p stm As IPersistStream, /*IN*/ ByVal stm AsIStream) As HRESULT153 154 155 Declare Function OleSetContainedObject Lib "ole32.dll" (/*IN*/ ByVal unknown AsIUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT156 Declare Function OleNoteObjectVisible Lib "ole32.dll" (/*IN*/ ByVal unknown AsIUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT141 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord, 142 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal pAdviseSink As *IAdviseSink, 143 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal pClientSite As *IOleClientSite, 144 /*IN*/ ByVal pDataObj As *IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT 145 146 Declare Function OleLoad Lib "ole32.dll" (/*IN*/ ByVal pStg As *IStorage, /*IN*/ ByRef riid As IID, /*IN*/ ByVal pClientSite As *IOleClientSite, 147 /*OUT*/ ByRef ppvObj As Any) As HRESULT 148 149 Declare Function OleSave Lib "ole32.dll" (/*IN*/ ByVal pPS As *IPersistStorage, /*IN*/ ByVal pStg As *IStorage, /*IN*/ fSameAsLoad As BOOL) As HRESULT 150 151 Declare Function OleLoadFromStream Lib "ole32.dll" ( /*IN*/ ByVal pStm As *IStream, /*IN*/ ByRef iidInterface As IID, /*OUT*/ ByRef ppvObj As Any) As HRESULT 152 Declare Function OleSaveToStream Lib "ole32.dll" ( /*IN*/ ByVal pPStm As *IPersistStream, /*IN*/ ByVal pStm As *IStream) As HRESULT 153 154 155 Declare Function OleSetContainedObject Lib "ole32.dll" (/*IN*/ ByVal pUnknown As *IUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT 156 Declare Function OleNoteObjectVisible Lib "ole32.dll" (/*IN*/ ByVal pUnknown As *IUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT 157 157 158 158 159 159 /* Drag/Drop APIs */ 160 160 161 Declare Function RegisterDragDrop Lib "ole32.dll" (/*IN*/ ByVal hwnd As HWND, /*IN*/ ByVal dropTarget AsIDropTarget) As HRESULT161 Declare Function RegisterDragDrop Lib "ole32.dll" (/*IN*/ ByVal hwnd As HWND, /*IN*/ ByVal pDropTarget As *IDropTarget) As HRESULT 162 162 Declare Function RevokeDragDrop Lib "ole32.dll" (/*IN*/ ByVal hwnd As HWND) As HRESULT 163 Declare Function DoDragDrop Lib "ole32.dll" (/*IN*/ ByVal dataObj As IDataObject, /*IN*/ ByVal dropSource AsIDropSource,164 163 Declare Function DoDragDrop Lib "ole32.dll" (/*IN*/ ByVal pDataObj As *IDataObject, /*IN*/ ByVal pDropSource As *IDropSource, 164 /*IN*/ ByVal dwOKEffects As DWord, /*OUT*/ ByRef dwEffect As DWord) As HRESULT 165 165 166 166 /* Clipboard APIs */ 167 167 168 Declare Function OleSetClipboard Lib "ole32.dll" (/*IN*/ ByVal dataObj AsIDataObject) As HRESULT169 Declare Function OleGetClipboard Lib "ole32.dll" (/*OUT*/ ByRef dataObj AsIDataObject) As HRESULT168 Declare Function OleSetClipboard Lib "ole32.dll" (/*IN*/ ByVal pDataObj As *IDataObject) As HRESULT 169 Declare Function OleGetClipboard Lib "ole32.dll" (/*OUT*/ ByRef pDataObj As *IDataObject) As HRESULT 170 170 Declare Function OleFlushClipboard Lib "ole32.dll" () As HRESULT 171 Declare Function OleIsCurrentClipboard Lib "ole32.dll" (/*IN*/ ByVal dataObj AsIDataObject) As HRESULT171 Declare Function OleIsCurrentClipboard Lib "ole32.dll" (/*IN*/ ByVal pDataObj As *IDataObject) As HRESULT 172 172 173 173 … … 186 186 End Type 187 187 Declare Function OleCreateMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal hmenuCombined As HMENU, 188 188 /*IN*/ ByRef MenuWidths As OLEMENUGROUPWIDTHS) As HOLEMENU 189 189 Declare Function OleSetMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal holemenu As HOLEMENU, /*IN*/ ByVal hwndFrame As HWND, 190 191 /*IN*/ ByVal frame AsIOleInPlaceFrame,192 /*IN*/ ByVal activeObj AsIOleInPlaceActiveObject) As HRESULT190 /*IN*/ ByVal hwndActiveObject As HWND, 191 /*IN*/ ByVal pFrame As *IOleInPlaceFrame, 192 /*IN*/ ByVal pActiveObj As *IOleInPlaceActiveObject) As HRESULT 193 193 Declare Function OleDestroyMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal holemenu As HOLEMENU) As HRESULT 194 194 195 Declare Function OleTranslateAccelerator Lib "ole32.dll" (/*IN*/ ByVal frame AsIOleInPlaceFrame,196 195 Declare Function OleTranslateAccelerator Lib "ole32.dll" (/*IN*/ ByVal pFrame As *IOleInPlaceFrame, 196 /*IN*/ ByRef FrameInfo As OLEINPLACEFRAMEINFO, /*IN*/ ByRef msg As MSG) As HRESULT 197 197 198 198 199 199 /* Helper APIs */ 200 200 Declare Function OleDuplicateData Lib "ole32.dll" (/*IN*/ ByVal hSrc As HANDLE, /*IN*/ ByVal cfFormat As CLIPFORMAT, 201 202 203 Declare Function OleDraw Lib "ole32.dll" (/*IN*/ ByVal unknown AsIUnknown, /*IN*/ ByVal dwAspect As DWord, /*IN*/ ByVal hdcDraw As HDC,204 205 206 Declare Function OleRun Lib "ole32.dll" (/*IN*/ ByVal unknown AsIUnknown) As HRESULT207 Declare Function OleIsRunning Lib "ole32.dll" (/*IN*/ ByVal object AsIOleObject) As BOOL208 Declare Function OleLockRunning Lib "ole32.dll" (/*IN*/ ByVal unknown AsIUnknown, /*IN*/ ByVal fLock As BOOL, /*IN*/ ByVal fLastUnlockCloses As BOOL) As HRESULT201 /*IN*/ ByVal uiFlags As DWord) As HANDLE 202 203 Declare Function OleDraw Lib "ole32.dll" (/*IN*/ ByVal pUnknown As *IUnknown, /*IN*/ ByVal dwAspect As DWord, /*IN*/ ByVal hdcDraw As HDC, 204 /*IN*/ ByRef rcBounds As RECT) As HRESULT 205 206 Declare Function OleRun Lib "ole32.dll" (/*IN*/ ByVal pUnknown As *IUnknown) As HRESULT 207 Declare Function OleIsRunning Lib "ole32.dll" (/*IN*/ ByVal pObject As *IOleObject) As BOOL 208 Declare Function OleLockRunning Lib "ole32.dll" (/*IN*/ ByVal pUnknown As *IUnknown, /*IN*/ ByVal fLock As BOOL, /*IN*/ ByVal fLastUnlockCloses As BOOL) As HRESULT 209 209 Declare Sub ReleaseStgMedium Lib "ole32.dll" (/*IN*/ ByRef medium As STGMEDIUM) 210 Declare Function CreateOleAdviseHolder Lib "ole32.dll" (/*OUT*/ ByRef oaHolder AsIOleAdviseHolder) As HRESULT211 212 Declare Function OleCreateDefaultHandler Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal unkOuter AsIUnknown,213 214 215 Declare Function OleCreateEmbeddingHelper Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal ukOuter AsIUnknown,216 /*IN*/ ByVal flags As DWord, /*IN*/ ByVal cf AsIClassFactory,217 210 Declare Function CreateOleAdviseHolder Lib "ole32.dll" (/*OUT*/ ByRef pOAHolder As *IOleAdviseHolder) As HRESULT 211 212 Declare Function OleCreateDefaultHandler Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal pUnkOuter As *IUnknown, 213 /*IN*/ ByRef riid As IID, /*OUT*/ ByRef pObj As Any) As HRESULT 214 215 Declare Function OleCreateEmbeddingHelper Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal pUnkOuter As *IUnknown, 216 /*IN*/ ByVal flags As DWord, /*IN*/ ByVal pCF As *IClassFactory, 217 /*IN*/ ByRef riid As IID, /*OUT*/ ByRef pObj As Any) As HRESULT 218 218 219 219 Declare Function IsAccelerator Lib "ole32.dll" (/*IN*/ ByVal hAccel As HACCEL, /*IN*/ ByVal cAccelEntries As Long, /*IN*/ ByRef msg As MSG, 220 220 /*OUT*/ ByVal pwCmd As *Word) As BOOL 221 221 /* Icon extraction Helper APIs */ 222 222 … … 224 224 225 225 Declare Function OleGetIconOfClass Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszLabel As LPOLESTR, 226 226 /*IN*/ ByVal fUseTypeAsLabel As BOOL) As HGLOBAL 227 227 228 228 Declare Function OleMetafilePictFromIconAndLabel Lib "ole32.dll" (/*IN*/ ByVal hIcon As HICON, /*IN*/ ByVal lpszLabel As LPOLESTR, 229 229 /*IN*/ ByVal lpszSourceFile As LPOLESTR, /*IN*/ ByVal iIconIndex As DWord) As HGLOBAL 230 230 231 231 … … 234 234 235 235 Declare Function OleRegGetUserType Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwFormOfType As DWord, 236 236 /*OUT*/ ByVal pszUserType As LPOLESTR) As HRESULT 237 237 238 238 Declare Function OleRegGetMiscStatus Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwAspect As DWord, 239 239 /*OUT*/ ByRef dwStatus As DWord) As HRESULT 240 240 241 241 Declare Function OleRegEnumFormatEtc Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwDirection As DWord, 242 242 /*OUT*/ ByRef penum As *IEnumFORMATETC) As HRESULT 243 243 244 244 Declare Function OleRegEnumVerbs Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*OUT*/ ByRef penum As *IEnumOLEVERB) As HRESULT … … 256 256 257 257 258 Declare Function OleConvertOLESTREAMToIStorage Lib "ole32.dll" ( 259 260 /*OUT*/ ByVal stg AsIStorage,261 262 263 Declare Function OleConvertIStorageToOLESTREAM Lib "ole32.dll" ( 264 /*IN*/ ByVal stg AsIStorage,265 258 Declare Function OleConvertOLESTREAMToIStorage Lib "ole32.dll" ( _ 259 /*IN*/ ByVal lpolestream As LPOLESTREAM, 260 /*OUT*/ ByVal pstg As *IStorage, 261 /*IN*/ ByRef td As DVTARGETDEVICE) As HRESULT 262 263 Declare Function OleConvertIStorageToOLESTREAM Lib "ole32.dll" ( _ 264 /*IN*/ ByVal pstg As *IStorage, 265 /*OUT*/ ByVal lpolestream As LPOLESTREAM) As HRESULT 266 266 267 267 … … 269 269 Declare Function GetHGlobalFromILockBytes Lib "ole32.dll" (/*IN*/ ByVal plkbyt As *ILockBytes, /*OUT*/ ByRef hglobal As HGLOBAL) As HRESULT 270 270 Declare Function CreateILockBytesOnHGlobal Lib "ole32.dll" (/*IN*/ ByVal hGlobal As HGLOBAL, /*IN*/ ByVal fDeleteOnRelease As BOOL, 271 /*OUT*/ ByRef lkbyt AsILockBytes) As HRESULT271 /*OUT*/ ByRef pplkbyt As *ILockBytes) As HRESULT 272 272 273 273 Declare Function GetHGlobalFromStream Lib "ole32.dll" (/*IN*/ ByVal pstm As *IStream, /*OUT*/ ByRef hglobal As HGLOBAL) As HRESULT 274 274 Declare Function CreateStreamOnHGlobal Lib "ole32.dll" (/*IN*/ ByVal hGlobal As HGLOBAL, /*IN*/ ByVal fDeleteOnRelease As BOOL, 275 /*OUT*/ ByRef stm AsIStream) As HRESULT275 /*OUT*/ ByRef pstm As *IStream) As HRESULT 276 276 277 277 278 278 /* ConvertTo APIS */ 279 279 280 Declare Function OleDoAutoConvert Lib "ole32.dll" (/*IN*/ ByRef stg AsIStorage, /*OUT*/ ByRef ClsidNew As CLSID) As HRESULT280 Declare Function OleDoAutoConvert Lib "ole32.dll" (/*IN*/ ByRef pStg As *IStorage, /*OUT*/ ByRef ClsidNew As CLSID) As HRESULT 281 281 Declare Function OleGetAutoConvert Lib "ole32.dll" (/*IN*/ ByRef clsidOld As CLSID, /*OUT*/ ByRef ClsidNew As CLSID) As HRESULT 282 282 Declare Function OleSetAutoConvert Lib "ole32.dll" (/*IN*/ ByRef clsidOld As CLSID, /*IN*/ ByRef ClsidNew As CLSID) As HRESULT 283 Declare Function GetConvertStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage) As HRESULT284 Declare Function SetConvertStg Lib "ole32.dll" (/*IN*/ ByVal stg AsIStorage, /*IN*/ fConvert As BOOL) As HRESULT283 Declare Function GetConvertStg Lib "ole32.dll" (/*IN*/ ByVal pStg As *IStorage) As HRESULT 284 Declare Function SetConvertStg Lib "ole32.dll" (/*IN*/ ByVal pStg As *IStorage, /*IN*/ fConvert As BOOL) As HRESULT 285 285 286 286 287 287 Declare Function OleConvertIStorageToOLESTREAMEx Lib "ole32.dll" ( _ 288 /*IN*/ ByVal stg AsIStorage, ' Presentation data to OLESTREAM289 290 291 292 293 294 288 /*IN*/ ByVal pstg As *IStorage, ' Presentation data to OLESTREAM 289 /*IN*/ ByVal cfFormat As CLIPFORMAT, ' format 290 /*IN*/ ByVal lWidth As Long, ' width 291 /*IN*/ ByVal lHeight As Long, ' height 292 /*IN*/ ByVal dwSize As DWORD, ' size in bytes 293 /*IN*/ ByRef medium As STGMEDIUM, ' bits 294 /*OUT*/ ByVal polestm As LPOLESTREAM) As HRESULT 295 295 296 296 Declare Function OleConvertOLESTREAMToIStorageEx Lib "ole32.dll" ( _ 297 298 299 300 301 302 303 297 /*IN*/ ByVal polestm As LPOLESTREAM, 298 /*OUT*/ ByVal pstg As *IStorage,' Presentation data from OLESTREAM 299 /*OUT*/ ByRef pcfFormat As CLIPFORMAT, ' format 300 /*OUT*/ ByRef plwWidth As Long, ' width 301 /*OUT*/ ByRef plHeight As Long, ' height 302 /*OUT*/ ByRef pdwSize As DWord, ' size in bytes 303 /*OUT*/ ByRef medium As STGMEDIUM) As HRESULT ' bits 304 304 305 305 ' olectl.h 306 Declare Function OleLoadPicture Lib "olepro32" (stream As IStream, lSize As Long, fRunmode As BOOL, ByRef riid As IID, ppvObj As VoidPtr) As HRESULT 307 #endif '__UNDEFINED 306 Declare Function OleLoadPicture Lib "olepro32" (pStream As *IStream, lSize As Long, fRunmode As BOOL, ByRef riid As IID, ppvObj As VoidPtr) As HRESULT
Note:
See TracChangeset
for help on using the changeset viewer.