- Timestamp:
- Jul 26, 2007, 5:43:54 PM (17 years ago)
- Location:
- Include
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/ActiveBasic/Math/Math.ab
r276 r285 13 13 Function CopySign(x As Single, y As Single) As Single 14 14 SetDWord(VarPtr(CopySign), (GetDWord(VarPtr(x)) And &h7fffffff) Or (GetDWord(VarPtr(y)) And &h80000000)) 15 End Function 16 17 Function Hypot(x As Double, y As Double) As Double 18 If x = 0 Then 19 Hypot = Abs(y) 20 Else If y = 0 Then 21 Hypot = Abs(x) 22 Else 23 Dim ax = Abs(x) 24 Dim ay = Abs(y) 25 If ay > ax Then 26 Dim t = x / y 27 Hypot = ay * Sqr(1 + t * t) 28 Else 29 Dim t = y / x 30 Hypot = ax * Sqr(1 + t * t) 31 End If 32 End If 15 33 End Function 16 34 … … 39 57 40 58 Function IsInf(x As Double) As Boolean 41 Dim p As *DWord, nan As Double 42 p = VarPtr(x) As *DWord 59 Dim p = VarPtr(x) As *DWord 43 60 p[1] And= &h7fffffff 44 nan= ActiveBasic.Math.Detail.GetInf(False)45 IsInf = (memcmp(p As *Byte, VarPtr( nan), SizeOf (Double)) = 0)61 Dim inf = ActiveBasic.Math.Detail.GetInf(False) 62 IsInf = (memcmp(p As *Byte, VarPtr(inf), SizeOf (Double)) = 0) 46 63 End Function 47 64 48 65 Function IsFinite(x As Double) As Boolean 49 Dim p As *DWord, nan As Double 50 p = VarPtr(x) As *DWord 51 ' p[1] And= &h7ffe0000 66 Dim p = VarPtr(x) As *DWord 52 67 p[1] And= &H7FF00000 53 p[0] = 0 54 nan = ActiveBasic.Math.Detail.GetInf(/*x,*/ False) 55 IsFinite = (memcmp(p As BytePtr, VarPtr(nan), SizeOf (Double)) = 0) 68 IsFinite = p[1] And &H7FF00000 = &H7FF00000 56 69 End Function 57 70 … … 82 95 83 96 Function GetNaN() As Double 84 Dim p As *DWord 85 p = VarPtr(GetNaN) As *DWord 97 Dim p = VarPtr(GetNaN) As *DWord 86 98 p[0] = 0 87 99 p[1] = &H7FF80000 … … 104 116 While i >= 1 105 117 Dim t = (i * x) As Double 106 s = t / (2 + t / (2 * i + 1 + s))118 s = t * (2 * i + 1 + s) / (2 + t) 107 119 i-- 108 120 Wend … … 111 123 112 124 Function _Support_tan(x As Double, ByRef k As Long) As Double 113 Dim i As Long114 Dim t As Double, x2 As Double115 116 125 If x>=0 Then 117 126 k=Fix(x/(_System_PI/2)+0.5) … … 122 131 x=(x-(CDbl(3217)/CDbl(2048))*k)+4.4544551033807686783083602485579e-6*k 123 132 124 x2=x*x125 t=0133 Dim x2 = x * x 134 Dim t = 0 As Double 126 135 136 Dim i As Long 127 137 For i=19 To 3 Step -2 128 138 t=x2/(i-t) -
Include/Classes/System/IO/DirectoryInfo.ab
r271 r285 45 45 46 46 ' 終端の '\' を除去 47 If dirPath[dirPath.Length-1] = Asc("\ \") Then48 dirPath = dirPath.Sub String(0, dirPath.Length-1)47 If dirPath[dirPath.Length-1] = Asc("\") Then 48 dirPath = dirPath.Substring(0, dirPath.Length-1) 49 49 End If 50 50 … … 55 55 op.hwnd = NULL 56 56 op.wFunc = FO_DELETE 57 op.pFrom = dirPath.Chars57 op.pFrom = ToTCStr(dirPath) 58 58 op.pTo = NULL 59 59 op.fFlags = FOF_NOCONFIRMATION or FOF_NOERRORUI or FOF_SILENT -
Include/Classes/System/IO/DriveInfo.ab
r271 r285 40 40 Function DriveFormat() As String 41 41 Dim systemName[15] As TCHAR 42 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, systemName, Len (systemName)) Then42 If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, systemName, Len (systemName)) Then 43 43 Return systemName 44 44 Else … … 52 52 53 53 Function IsReady() As Boolean 54 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, NULL, NULL) Then54 If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, NULL, 0) Then 55 55 Return True 56 56 Else -
Include/Classes/System/IO/Path.ab
r281 r285 72 72 73 73 Dim tempFileName[ELM(MAX_PATH)] As TCHAR 74 __GetTempFileName(tempPath, "ABT", 0, tempFileName)75 free(tempPath)76 Return tempFileName74 Dim len = __GetTempFileName(tempPath, "ABT", 0, tempFileName) 75 _System_free(tempPath) 76 Return New String(tempFileName, len As Long) 77 77 End Function 78 78 -
Include/Classes/System/Math.ab
r268 r285 172 172 End If 173 173 End If 174 Dim i As Long, k As Long 175 Dim x2 As Double, w As Double 176 174 Dim k As Long 177 175 If x >= 0 Then 178 176 k = Fix(x / _System_LOG2 + 0.5) … … 183 181 x -= k * _System_LOG2 184 182 185 x2 = x * x186 w = x2 / 22187 188 i = 18183 Dim x2 = x * x 184 Dim w = x2 / 22 185 186 Dim i = 18 189 187 While i >= 6 190 188 w = x2 / (w + i) -
Include/Classes/System/String.ab
r272 r285 506 506 Clone = This 507 507 End Function 508 508 509 Static Function Copy(s As String) As String 509 510 Copy = New String(s.Chars, s.m_Length) … … 520 521 Dim size = m_Length 521 522 #endif 522 Return _System_GetHashFromWordArray(Chars As *Word, size) 523 Return _System_GetHashFromWordArray(Chars As *Word, size) Xor size 523 524 End Function 524 525 … … 541 542 542 543 Function PadRight(total As Long) As String 543 Pad Left(total, &h30 As StrChar)544 PadRight(total, &h30 As StrChar) 544 545 End Function 545 546 -
Include/Classes/System/Windows/Forms/Control.ab
r282 r285 309 309 ' EndInvokeがDeleteする 310 310 Dim asyncResult = New System.Windows.Forms.Detail.AsyncResultForInvoke(CreateEvent(0, FALSE, FALSE, 0)) 311 ' OnControlBeginInvokeがDeleteする312 311 Dim asyncInvokeData = New System.Windows.Forms.Detail.AsyncInvokeData 313 312 With asyncInvokeData -
Include/OAIdl.ab
r268 r285 16 16 #define __IOleAutomationTypes_INTERFACE_DEFINED__ 17 17 18 TypeDef VARTYPE = Word ' WTypes.ab19 TypeDef VARIANT_BOOL = Integer ' WTypes.ab20 Const VARIANT_TRUE = (-1 As VARIANT_BOOL) ' WTypes.ab21 Const VARIANT_FALSE = (0 As VARIANT_BOOL) ' WTypes.ab22 18 TypeDef SCODE = Long 23 TypeDef CY = Int6424 'Type /*Class*/ CY ' WTypes.ab25 'Public26 ' int64 As Int6427 /*28 Function Lo() As DWord29 Return GetDWord(VarPtr(int64))30 End Function31 32 Sub Lo(lo As DWord)33 SetDWord(VarPtr(int64), lo)34 End Sub35 36 Function Hi() As Long37 Return GetDWord(VarPtr(int64) + SizeOf (DWord)) As Long38 End Function39 40 Sub Lo(lo As Long)41 SetDWord(VarPtr(int64) + SizeOf (DWord, lo As DWord))42 End Sub43 */44 'End Type'Class45 46 Const DECIMAL_NEG = (&h80 As Byte) 'WTypes.ab47 48 Type /*Class*/ DECIMAL 'WTypes.ab49 'Public50 wReserved As Word51 signscale As Word52 Hi32 As DWord53 Lo64 As QWord54 /*55 Function scale() As Byte56 Return GetByte(VarPtr(signscale))57 End Function58 59 Sub scale(s As Byte)60 SetByte(VarPtr(signscale), s)61 End Sub62 63 Function sign() As Byte64 Return GetByte(VarPtr(signscale) + SizeOf (Byte))65 End Function66 67 Sub sign(s As Byte)68 SetByte(VarPtr(signscale) + SizeOf (Byte), s)69 End Sub70 71 Function Lo32() As DWord72 Return GetDWord(VarPtr(Lo64) As *DWord)73 End Function74 75 Sub Lo32(l As DWord)76 SetDWord(VarPtr(Lo64) As *DWord, l)77 End Sub78 79 Function Mid32() As DWord80 Return GetDWord(VarPtr(Lo64) As *DWord)81 End Function82 83 Sub Mid32(m As DWord)84 SetDWord(VarPtr(Lo64) As *DWord + SizeOf (DWord), m)85 End Sub86 */87 End Type ' Class88 89 TypeDef DATE = Double ' WTypes.ab90 19 91 20 /* interface IOleAutomationTypes */ … … 157 86 Const FADF_VARIANT = &h800 158 87 Const FADF_RESERVED = &hf008 159 160 Const Enum VARENUM 'WTypes.idl161 VT_EMPTY = 0162 VT_NULL = 1163 VT_I2 = 2164 VT_I4 = 3165 VT_R4 = 4166 VT_R8 = 5167 VT_CY = 6168 VT_DATE = 7169 VT_BSTR = 8170 VT_DISPATCH = 9171 VT_ERROR = 10172 VT_BOOL = 11173 VT_VARIANT = 12174 VT_UNKNOWN = 13175 VT_DECIMAL = 14176 VT_I1 = 16177 VT_UI1 = 17178 VT_UI2 = 18179 VT_UI4 = 19180 VT_I8 = 20181 VT_UI8 = 21182 VT_INT = 22183 VT_UINT = 23184 VT_VOID = 24185 VT_HRESULT = 25186 VT_PTR = 26187 VT_SAFEARRAY = 27188 VT_CARRAY = 28189 VT_USERDEFINED = 29190 VT_LPSTR = 30191 VT_LPWSTR = 31192 VT_RECORD = 36193 VT_INT_PTR = 37194 VT_UINT_PTR = 38195 VT_FILETIME = 64196 VT_BLOB = 65197 VT_STREAM = 66198 VT_STORAGE = 67199 VT_STREAMED_OBJECT = 68200 VT_STORED_OBJECT = 69201 VT_BLOB_OBJECT = 70202 VT_CF = 71203 VT_CLSID = 72204 VT_VERSIONED_STREAM = 73205 VT_BSTR_BLOB = &hfff206 VT_VECTOR = &h1000207 VT_ARRAY = &h2000208 VT_BYREF = &h4000209 VT_RESERVED = &h8000210 VT_ILLEGAL = &hffff211 VT_ILLEGALMASKED = &hfff212 VT_TYPEMASK = &hfff213 End Enum214 88 215 89 Type /*Class*/ VARIANT -
Include/objbase.sbp
r175 r285 1 1 ' objbase.sbp 2 3 2 4 3 #ifndef _INC_OBJBASE 5 4 #define _INC_OBJBASE 6 7 Type CSPLATFORM 'wtypes.sbp8 dwPlatformId As DWord9 dwVersionHi As DWord10 dwVersionLo As DWord11 dwProcessorArch As DWord12 End Type13 14 Type QUERYCONTEXT 'wtypes.sbp15 dwContext As DWord16 latform As CSPLATFORM17 Locale As LCID18 dwVersionHi As DWord19 dwVersionLo As DWord20 End Type21 5 22 6 TypeDef RPC_AUTH_IDENTITY_HANDLE = VoidPtr 'Declared in Rpcdce.sbp; include Rpc.sbp. … … 95 79 'typedef interface IRpcChannelBuffer IRpcChannelBuffer; 96 80 97 #include <unknwn.sbp> 98 #include <objidl.sbp> 81 #require <wtypes.ab> 82 #require <unknwn.sbp> 83 #require <objidl.sbp> 99 84 100 85 '------------------- … … 102 87 '------------------- 103 88 104 Const CLSCTX_INPROC_SERVER = &H01105 Const CLSCTX_INPROC_HANDLER = &H02106 Const CLSCTX_LOCAL_SERVER = &H4107 Const CLSCTX_INPROC_SERVER16 = &H8108 Const CLSCTX_REMOTE_SERVER = &H10109 Const CLSCTX_INPROC_HANDLER16 = &H20110 Const CLSCTX_INPROC_SERVERX86 = &H40111 Const CLSCTX_INPROC_HANDLERX86 = &H80112 Const CLSCTX_ESERVER_HANDLER = &H100113 114 89 Const CLSCTX_INPROC = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER 90 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 91 #ifdef _WIN32_DCOM 115 92 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 116 93 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 94 #else 95 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER 96 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER 97 #endif 117 98 118 99 Const Enum REGCLS … … 124 105 End Enum 125 106 126 Type COAUTHIDENTITY127 User As *Word128 UserLength As DWord129 Domain As *Word130 DomainLength As DWord131 Password As *Word132 PasswordLength As DWord133 Flags As DWord134 End Type135 Type COAUTHINFO136 dwAuthnSvc As DWord137 dwAuthzSvc As DWord138 pwszServerPrincName As LPWSTR139 dwAuthnLevel As DWord140 dwImpersonationLevel As DWord141 pAuthIdentityData As *COAUTHIDENTITY142 dwCapabilities As DWord143 End Type144 Type COSERVERINFO145 dwReserved1 As DWord146 pwszName As LPWSTR147 pAuthInfo As *COAUTHINFO148 dwReserved2 As DWord149 End Type150 107 Declare Function CoInitialize Lib "ole32" (pvReserved As VoidPtr) As HRESULT 151 108 Declare Sub CoUninitialize Lib "ole32" () 152 'Declare Sub CoGetMalloc Lib "ole32" (dwMemContext As DWord, ByRef pMalloc As *IMalloc) As HRESULT109 'Declare Sub CoGetMalloc Lib "ole32" (dwMemContext As DWord, ByRef pMalloc As IMalloc) As HRESULT 153 110 Declare Function CoGetCurrentProcess Lib "ole32" () As DWord 154 111 'Declare Function CoRegisterMallocSpy Lib "ole32" (pMallocSpy As *IMallocSpy) As HRESULT … … 584 541 Inherits IUnknown 585 542 End Interface 586 '# include <urlmon.sbp>587 '# include <propidl.sbp>543 '#require <urlmon.sbp> 544 '#require <propidl.sbp> 588 545 589 546 ' Standard Progress Indicator impolementation -
Include/objidl.sbp
r223 r285 4 4 TypeDef SNB = **OLECHAR 5 5 6 ' IMarshal 6 Type COSERVERINFO 7 dwReserved1 As DWord 8 pwszName As LPWSTR 9 pAuthInfo As *COAUTHINFO 10 dwReserved2 As DWord 11 End Type 12 13 /* interface IMarshal */ 14 /* [uuid][object][local] */ 15 16 TypeDef LPMARSHAL = /* [unique] */ *IMarshal 17 18 Dim IID_IMarshal = [&h00000003, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 19 Interface IMarshal 20 Inherits IUnknown 21 22 Function GetUnmarshalClass( 23 /* [in] */ ByRef iid As IID, 24 /* [unique][in] */ pv As VoidPtr, 25 /* [in] */ dwDestContext As DWord, 26 /* [unique][in] */ pvDestContext As VoidPtr, 27 /* [in] */ mshlflags As DWord, 28 /* [out] */ ByRef Cid As CLSID) As HRESULT 29 Function GetMarshalSizeMax( 30 /* [in] */ ByRef iid As IID, 31 /* [unique][in] */ pv As VoidPtr, 32 /* [in] */ dwDestContext As DWord, 33 /* [unique][in] */ pvDestContext As VoidPtr, 34 /* [in] */ mshlflags As DWord, 35 /* [out] */ ByRef Size As DWord) As HRESULT 36 Function MarshalInterface( 37 /* [unique][in] */ pStm As IStream, 38 /* [in] */ ByRef iid As IID, 39 /* [unique][in] */ pv As VoidPtr, 40 /* [in] */ dwDestContext As DWord, 41 /* [unique][in] */ pvDestContext As VoidPtr, 42 /* [in] */ mshlflags As DWord) As HRESULT 43 Function UnmarshalInterface( 44 /* [unique][in] */ pStm As IStream, 45 /* [in] */ ByRef iid As IID, 46 /* [out] */ ByRef ppv As VoidPtr) As HRESULT 47 Function ReleaseMarshalData( 48 /* [unique][in] */ pStm As *IStream) As HRESULT 49 Function DisconnectObject( 50 /* [in] */ dwReserved As DWord) As HRESULT 51 End Interface 7 52 8 53 ' IMarshal2 9 54 55 Dim IID_IMalloc = [&h00000002, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 10 56 Interface IMalloc 11 57 Inherits IUnknown 12 58 13 Function Alloc(cb As SIZE_T) As VoidPtr 14 Function Realloc(pv As VoidPtr, cb As SIZE_T) As VoidPtr 15 Sub Free(pv As VoidPtr) 59 Function Alloc( 60 /* [in] */ cb As SIZE_T) As VoidPtr 61 Function Realloc( 62 /* [in] */ pv As VoidPtr, 63 /* [in] */ cb As SIZE_T) As VoidPtr 64 Sub Free( 65 /* [in] */ pv As VoidPtr) 16 66 Function GetSize(pv As VoidPtr) As SIZE_T 17 67 Function DidAlloc(pv As VoidPtr) As Long … … 67 117 End Type 68 118 119 Type BIND_OPTS3 120 ' Inherits BIND_OPTS 121 cbStruct As DWord 122 grfFlags As DWord 123 grfMode As DWord 124 dwTickCountDeadline As DWord 125 126 dwTrackFlags As DWord 127 dwClassContext As DWord 128 locale As LCID 129 pServerInfo As *COSERVERINFO 130 131 hwnd As HWND 132 End Type 133 134 Const Enum BIND_FLAGS 135 BIND_MAYBOTHERUSER 136 BIND_JUSTTESTEXISTENCE 137 End Enum 138 139 Dim IID_IBindCtx = [&h0000000E, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 69 140 Interface IBindCtx 70 141 Inherits IUnknown 142 143 Function RegisterObjectBound( 144 /* [unique][in] */ punk As IUnknown) As HRESULT 145 Function RevokeObjectBound( 146 /* [unique][in] */ punk As IUnknown) As HRESULT 147 Function ReleaseBoundObjects() As HRESULT 148 /* [local] */ Function SetBindOptions( 149 /* [in] */ ByRef bindopts As BIND_OPTS) As HRESULT 150 /* [local] */ Function GetBindOptions( 151 /* [out][in] */ ByRef bindopts As BIND_OPTS) As HRESULT 152 Function GetRunningObjectTable( 153 /* [out] */ ByRef rot As IRunningObjectTable) As HRESULT 154 Function RegisterObjectParam( 155 /* [in] */ pszKey As LPOLESTR, 156 /* [unique][in] */ unk As IUnknown) As HRESULT 157 Function GetObjectParam( 158 /* [in] */ pszKey As LPOLESTR, 159 /* [out] */ ByRef unk As IUnknown) As HRESULT 160 Function EnumObjectParam( 161 /* [out] */ ByRef enumstr As IEnumString) As HRESULT 162 Function RevokeObjectParam( 163 /* [in] */ pszKey As LPOLESTR) As HRESULT 71 164 End Interface 72 165 … … 92 185 93 186 Function Load( 94 /* [unique][in] */ pStm As *IStream) As HRESULT187 /* [unique][in] */ Stm As IStream) As HRESULT 95 188 96 189 Function Save( 97 /* [unique][in] */ pStm As *IStream,190 /* [unique][in] */ Stm As IStream, 98 191 /* [in] */ fClearDirty As BOOL) As HRESULT 99 192 … … 106 199 End Interface 107 200 108 ' IEnumString 201 Dim IID_IEnumString = [&h00000101, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 202 Interface IEnumString 203 Inherits IUnknown 204 205 /* [local] */ Function Next_( 206 /* [in] */ celt As DWord, 207 /* [length_is][size_is][out] */ ByRef rgelt As LPOLESTR, 208 /* [out] */ ByRef celtFetched As DWord) As HRESULT 209 Function Skip( 210 /* [in] */ celt As DWord) As HRESULT 211 Function Reset() As HRESULT 212 Function Clone( 213 /* [out] */ ByRef enumstr As IEnumString) As HRESULT 214 End Interface 109 215 110 216 Dim IID_ISequentialStream = [&h0c733a30, &h2a1c, &h11ce, [&had, &he5, &h00, &haa, &h00, &h44, &h77, &h3d]] As IID … … 112 218 Inherits IUnknown 113 219 114 Function Read(pv As VoidPtr, cb As DWord, pcbRead As *DWord) As HRESULT115 Function Write(pv As VoidPtr, cb As DWord, pcbWritten As *DWord) As HRESULT220 Function Read(pv As VoidPtr, cb As DWord, ByRef cbRead As DWord) As HRESULT 221 Function Write(pv As VoidPtr, cb As DWord, ByRef cbWritten As DWord) As HRESULT 116 222 End Interface 117 223 … … 161 267 Function UnlockRegion(libOffset As ULARGE_INTEGER, cb As ULARGE_INTEGER, dwLockType As DWord) As HRESULT 162 268 Function Stat(pstatstg As *STATSTG, grfStatFlag As DWord) As HRESULT 163 Function Clone(ByRef ppstm As *IStream) As HRESULT269 Function Clone(ByRef stm As IStream) As HRESULT 164 270 End Interface 165 271 TypeDef LPSTREAM = *IStream … … 173 279 174 280 /* interface IStorage */ 175 /* [unique][uuid][object] */ 281 /* [unique][uuid][object] */ 176 282 177 283 TypeDef LPSTORAGE = /* [unique] */ *IStorage … … 197 303 /* [in] */ reserved1 As DWord, 198 304 /* [in] */ reserved2 As DWord, 199 /* [out] */ ByRef pstm As *IStream) As HRESULT305 /* [out] */ ByRef stm As IStream) As HRESULT 200 306 /* [local] */ Function OpenStream( 201 307 /* [string][in] */ pwcsName As *OLECHAR, … … 203 309 /* [in] */ grfMode As DWord, 204 310 /* [in] */ reserved2 As DWord, 205 /* [out] */ ByRef pstm As *IStream) As HRESULT311 /* [out] */ ByRef stm As IStream) As HRESULT 206 312 Function CreateStorage( 207 313 /* [string][in] */ pwcsName As *OLECHAR, … … 209 315 /* [in] */ reserved1 As DWord, 210 316 /* [in] */ reserved2 As DWord, 211 /* [out] */ ByRef pstg As *IStorage) As HRESULT317 /* [out] */ ByRef stg As IStorage) As HRESULT 212 318 Function OpenStorage( 213 319 /* [string][unique][in] */ pwcsName As *OLECHAR, … … 216 322 /* [unique][in] */ snbExclude As SNB, 217 323 /* [in] */ reserved As DWord, 218 /* [out] */ ByRef pstg As *IStorage) As HRESULT324 /* [out] */ ByRef stg As IStorage) As HRESULT 219 325 /* [local] */ Function CopyTo( 220 326 /* [in] */ ciidExclude As DWord, 221 /* [size_is][unique][in] */ ByRefrgiidExclude As * /*Const*/ IID,327 /* [size_is][unique][in] */ rgiidExclude As * /*Const*/ IID, 222 328 /* [unique][in] */ snbExclude As SNB, 223 /* [unique][in] */ pstgDest As *IStorage) As HRESULT329 /* [unique][in] */ stgDest As IStorage) As HRESULT 224 330 Function MoveElementTo( 225 331 /* [string][in] */ pwcsName As *OLECHAR, 226 /* [unique][in] */ pstgDest As *IStorage,332 /* [unique][in] */ stgDest As IStorage, 227 333 /* [string][in] */ pwcsNewName As *OLECHAR, 228 334 /* [in] */ grfFlags As DWord) As HRESULT … … 234 340 /* [size_is][unique][in] */ reserved2 As VoidPtr, 235 341 /* [in] */ reserved3 As DWord, 236 /* [out] */ ByRef penum As *IEnumSTATSTG) As HRESULT342 /* [out] */ ByRef enum_ As IEnumSTATSTG) As HRESULT 237 343 Function DestroyElement( 238 344 /* [string][in] */ pwcsName As *OLECHAR) As HRESULT … … 241 347 /* [string][in] */ pwcsNewName As *OLECHAR) As HRESULT 242 348 Function SetElementTimes( 243 244 245 246 349 /* [string][unique][in] */ pwcsName As *OLECHAR, 350 /* [unique][in] */ ByRef ctime As /*Const*/ FILETIME, 351 /* [unique][in] */ ByRef atime As /*Const*/ FILETIME, 352 /* [unique][in] */ ByRef mtime As /*Const*/ FILETIME) As HRESULT 247 353 Function SetClass( 248 354 /* [in] */ ByRef clsid As CLSID) As HRESULT 249 355 Function SetStateBits( 250 251 356 /* [in] */ grfStateBits As DWord, 357 /* [in] */ grfMask As DWord) As HRESULT 252 358 Function Stat( 253 254 359 /* [out] */ ByRef statstg As STATSTG, 360 /* [in] */ grfStatFlag As DWord) As HRESULT 255 361 End Interface 256 362 … … 289 395 End Type 290 396 291 TypeDef CLIPFORMAT = Word292 397 TypeDef LPCLIPFORMAT = *CLIPFORMAT 293 398 … … 356 461 /* [unique][in] */ ByRef rformatetcIn As FORMATETC, 357 462 /* [out] */ ByRef rmedium As STGMEDIUM) As HRESULT 358 359 463 Function /* [local] */ GetDataHere( 360 464 /* [unique][in] */ ByRef rformatetcIn As FORMATETC, 361 465 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT 362 363 466 Function QueryGetData( 364 467 /* [unique][in] */ ByRef pformatetc As FORMATETC) As HRESULT 365 366 468 Function GetCanonicalFormatEtc( 367 469 /* [unique][in] */ ByRef pformatetcIn As FORMATETC, 368 470 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT 369 370 471 Function /* [local] */ SetData( 371 472 /* [unique][in] */ pformatetcIn As *FORMATETC, 372 473 /* [out] */ pmedium As *STGMEDIUM, 373 474 /* [in] */ fRelease As BOOL) As HRESULT 374 375 475 Function EnumFormatEtc( 376 /* [in] */ ByVal dwDirection As DWord, 377 /* [out] */ ByRef rpenumFormatEtc As *IEnumFORMATETC) As HRESULT 378 476 /* [in] */ dwDirection As DWord, 477 /* [out] */ ByRef rpenumFormatEtc As IEnumFORMATETC) As HRESULT 379 478 Function DAdvise( 380 479 /* [in] */ ByRef pformatetc As FORMATETC, 381 /* [in] */ ByVal advf As DWord, 382 /* [unique][in] */ ByVal pAdvSink As *IAdviseSink, 383 /* [out] */ ByVal pdwConnection As *DWord) As HRESULT 384 480 /* [in] */ advf As DWord, 481 /* [unique][in] */ pAdvSink As IAdviseSink, 482 /* [out] */ pdwConnection As *DWord) As HRESULT 385 483 Function DUnadvise( 386 /* [in] */ ByVal dwConnection As DWord) As HRESULT 387 484 /* [in] */ dwConnection As DWord) As HRESULT 388 485 Function EnumDAdvise( 389 /* [out] */ ByRef rpenumAdvise As *IEnumSTATDATA) As HRESULT486 /* [out] */ ByRef rpenumAdvise As IEnumSTATDATA) As HRESULT 390 487 End Interface 391 488 -
Include/ole2.ab
r223 r285 1 1 #ifndef __OLE2_AB__ 2 2 #define __OLE2_AB__ 3 4 TypeDef CLIPFORMAT = Word5 3 6 4 ' 暫定措置 -
Include/windows.sbp
r179 r285 7 7 TypeDef OLECHAR = WCHAR 8 8 TypeDef LPOLESTR = *OLECHAR 9 TypeDef LPCOLESTR = LPOLESTR 10 11 TypeDef BSTR = LPOLESTR 9 TypeDef LPCOLESTR = *OLECHAR 12 10 13 11 TypeDef LANGID = Word -
Include/windows/WindowHandle.sbp
r282 r285 41 41 Declare Function _System_SetScrollInfo Lib "user32" Alias "SetScrollInfo" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL 42 42 Declare Function _System_GetSystemMenu Lib "user32" Alias "GetSystemMenu" (hWnd As HWND, bRevert As BOOL) As HMENU 43 Declare Function _System_GetDC Lib "gdi32" Alias "GetDC" (hwnd As HWND) As HDC 44 Declare Function _System_ReleaseDC Lib "gdi32" Alias "ReleaseDC" (hwnd As HWND, hdc As HDC) As BOOL 43 45 44 46 Class WindowHandle … … 147 149 148 150 Function GetDC() As HDC 149 Return GetDC(hwnd)151 Return _System_GetDC(hwnd) 150 152 End Function 151 153 … … 171 173 172 174 Const Function GetParent() As WindowHandle 173 Dim w As WindowHandle(_System_GetParent(hwnd)) 174 Return w 175 Return New WindowHandle(_System_GetParent(hwnd)) 175 176 End Function 176 177 … … 368 369 369 370 Function ReleaseDC(hdc As HDC) As Boolean 370 Return ReleaseDC(hwnd, hdc) As Boolean371 Return _System_ReleaseDC(hwnd, hdc) As Boolean 371 372 End Function 372 373
Note:
See TracChangeset
for help on using the changeset viewer.