- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- Location:
- trunk/Include
- Files:
-
- 88 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/Strings/Strings.ab
r478 r497 191 191 192 192 Namespace Detail 193 Function Split(s As String, c As StrChar) As System.Collections.Generic.List<String>193 Function Split(s As String, c As Char) As System.Collections.Generic.List<String> 194 194 Split = New System.Collections.Generic.List<String> 195 195 -
trunk/Include/Classes/System/Data/Odbc/Odbc.ab
r1 r497 1 1 ' odbc.sbp 2 2 3 #ifndef _INC_SQLEXT 4 #include <api_sqlext.sbp> 5 #endif 6 7 3 #require <api_sqlext.sbp> 8 4 9 5 '=========================================================== … … 143 139 144 140 'ステートメントハンドルを取得する 145 SQLAllocHandle( SQL_HANDLE_STMT, hDbc, hStmt ) 141 SQLAllocHandle( SQL_HANDLE_STMT, hDbc, hStmt ) 146 142 147 143 'SQL文を発行 … … 154 150 155 151 'ステートメントハンドルを取得する 156 SQLAllocHandle( SQL_HANDLE_STMT, hDbc, hStmt ) 152 SQLAllocHandle( SQL_HANDLE_STMT, hDbc, hStmt ) 157 153 158 154 Prepare = SQLPrepare( hStmt, lpszSQL, SQL_NTS ) 'SQL文を設定する … … 244 240 SQLAllocHandle( SQL_HANDLE_STMT, 245 241 pobj_Command->pobj_Connection->GetDbcHandle(), 246 hStmt ) 242 hStmt ) 247 243 248 244 'SQL文を発行 -
trunk/Include/Classes/System/Drawing/CharacterRange.ab
r473 r497 1 1 ' Classes/System/Drawing/CharacterRange.ab 2 3 #ifndef __SYSTEM_DRAWING_CHARACTERRANGE_AB__4 #define __SYSTEM_DRAWING_CHARACTERRANGE_AB__5 2 6 3 Class CharacterRange … … 52 49 length As Long 53 50 End Class 54 55 #endif '__SYSTEM_DRAWING_CHARACTERRANGE_AB__ -
trunk/Include/Classes/System/Drawing/Color.ab
r473 r497 1 1 ' Classes/System/Drawing/Color.ab 2 2 3 #ifndef __SYSTEM_DRAWING_COLOR_AB__ 4 #define __SYSTEM_DRAWING_COLOR_AB__ 5 6 #include <Classes/System/Drawing/Imaging/misc.ab> 3 #require <Classes/System/Drawing/Imaging/misc.ab> 7 4 8 5 Class Color … … 309 306 argb As ARGB 310 307 End Class 311 312 #endif '__SYSTEM_DRAWING_COLOR_AB__ -
trunk/Include/Classes/System/Drawing/Drawing2D/Matrix.ab
r77 r497 1 1 ' Classes/System/Drawing/Drawing2D/Matrix.ab 2 3 #ifndef __SYSTEM_DRAWING_DRAWING2D_MATRIX_AB__4 #define __SYSTEM_DRAWING_DRAWING2D_MATRIX_AB__5 2 6 3 Class Matrix 7 4 End Class 8 9 #endif '__SYSTEM_DRAWING_DRAWING2D_MATRIX_AB__ -
trunk/Include/Classes/System/Drawing/Drawing2D/misc.ab
r77 r497 1 1 ' Classes/System/Drawing/Drawing2D/misc.ab 2 3 #ifndef __SYSTEM_DRAWING_DRAWING2D_MISC_AB__4 #define __SYSTEM_DRAWING_DRAWING2D_MISC_AB__5 2 6 3 Enum CombineMode … … 84 81 Device 85 82 End Enum 86 87 #endif '__SYSTEM_DRAWING_DRAWING2D_MISC_AB__ -
trunk/Include/Classes/System/Drawing/Font.ab
r473 r497 250 250 251 251 Const Function Name() As String 252 #ifdef __STRING_IS_NOT_UNICODE 252 #ifdef UNICODE 253 Dim lf As LOGFONTW 254 GetLogFontW(0, lf) 255 #else 253 256 Dim lf As LOGFONTA 254 257 GetLogFontA(0, lf) 255 #else256 Dim lf As LOGFONTW257 GetLogFontW(0, lf)258 258 #endif 259 259 Return lf.lfFaceName -
trunk/Include/Classes/System/Drawing/Graphics.ab
r473 r497 1 1 ' Classes/System/Drawing/Graphics.ab 2 3 #ifndef __SYSTEM_DRAWING_GRAPHICS_AB__4 #define __SYSTEM_DRAWING_GRAPHICS_AB__5 2 6 3 Class Brush : End Class … … 2011 2008 End Class 2012 2009 2013 #endif -
trunk/Include/Classes/System/Drawing/Imaging/MetafileHeader.ab
r12 r497 1 1 ' Classes/System/Drawing/Imaging/MetafileHeader.ab 2 3 #ifndef __SYSTEM_DRAWING_IMAGING_METAFILEHEADER_AB__4 #define __SYSTEM_DRAWING_IMAGING_METAFILEHEADER_AB__5 2 6 3 Type Align(8) ENHMETAHEADER3 … … 154 151 End Function 155 152 End Class 156 157 #endif '__SYSTEM_DRAWING_IMAGING_METAFILEHEADER_AB__ -
trunk/Include/Classes/System/Drawing/Imaging/misc.ab
r447 r497 1 1 ' Classes/System/Drawing/Imaging/misc.ab 2 2 3 #ifndef __SYSTEM_DRAWING_IMAGING_MISC_AB__ 4 #define __SYSTEM_DRAWING_IMAGING_MISC_AB__ 5 6 #include <Classes/System/Drawing/Color.ab> 3 #require <Classes/System/Drawing/Color.ab> 7 4 8 5 TypeDef ARGB = DWord … … 436 433 ColorChannelLast 437 434 End Enum 438 439 #endif '__SYSTEM_DRAWING_IMAGING_MISC_AB__ -
trunk/Include/Classes/System/Drawing/Text/misc.ab
r77 r497 1 1 ' Classes/System/Drawing/Text/misc.ab 2 3 #ifndef __SYSTEM_DRAWING_TEXT_MISC_AB__4 #define __SYSTEM_DRAWING_TEXT_MISC_AB__5 2 6 3 Enum TextRenderingHint … … 12 9 ClearTypeGridFit 13 10 End Enum 14 15 #endif '__SYSTEM_DRAWING_TEXT_MISC_AB__ -
trunk/Include/Classes/System/Environment.ab
r427 r497 20 20 Static Function CommandLine() As String 21 21 If Object.ReferenceEquals(cmdLine, Nothing) Then 22 #ifdef __STRING_IS_NOT_UNICODE 22 #ifdef UNICODE 23 cmdLine = New String(GetCommandLineW()) 24 #else 23 25 cmdLine = New String(GetCommandLineA()) 24 #else25 cmdLine = New String(GetCommandLineW())26 26 #endif 27 27 End If … … 120 120 Public 121 121 'NTでしか使用できない仕様 122 Static Function WorkingSet() As Int64122 Static Function WorkingSet() As SIZE_T 123 123 Dim hmodPSAPI = LoadLibrary("PSAPI.DLL") 124 124 If hmodPSAPI = 0 Then Return 0 … … 141 141 142 142 Static Function ExpandEnvironmentVariables(s As String) As String 143 If ActiveBasic.IsNothing(s) Then 144 Throw New ArgumentNullException("s") 145 End If 143 146 Dim src = ToTCStr(s) 144 147 Dim size = ExpandEnvironmentStrings(src, 0, 0) 145 Dim dst = GC_malloc_atomic(SizeOf (TCHAR) * size) As PTSTR 146 ExpandEnvironmentStrings(src, dst, size) 147 ExpandEnvironmentVariables = New String(dst, size - 1) 148 Dim dst = New Text.StringBuilder 149 dst.Length = size As Long 150 ExpandEnvironmentStrings(src, StrPtr(dst), size) 151 dst.Length = (size - 1) As Long 152 ExpandEnvironmentVariables = dst.ToString 148 153 End Function 149 154 … … 155 160 156 161 Static Function GetEnvironmentVariable(variable As String) As String 162 If ActiveBasic.IsNothing(variable) Then 163 Throw New ArgumentNullException("variable") 164 End If 157 165 Dim tcsVariable = ToTCStr(variable) 158 166 Dim size = _System_GetEnvironmentVariable(tcsVariable, 0, 0) 159 Dim p = GC_malloc_atomic(SizeOf (TCHAR) * size) As PTSTR 160 Dim len = _System_GetEnvironmentVariable(tcsVariable, p, size) 161 GetEnvironmentVariable = New String(p, len As Long) 167 Dim buf = New Text.StringBuilder 168 buf.Length = size As Long 169 buf.Length = _System_GetEnvironmentVariable(tcsVariable, StrPtr(buf), size) 170 GetEnvironmentVariable = buf.ToString 162 171 End Function 163 172 … … 176 185 177 186 Static Sub SetEnvironmentVariable(variable As String, value As String) 187 If ActiveBasic.IsNothing(variable) Then 188 Throw New ArgumentNullException("variable") 189 End If 178 190 _System_SetEnvironmentVariable(ToTCStr(variable), ToTCStr(value)) 179 191 End Sub -
trunk/Include/Classes/System/IO/Path.ab
r469 r497 10 10 Class Path 11 11 Public 12 Static Const AltDirectorySeparatorChar = &H2F As StrChar '/13 Static Const DirectorySeparatorChar = &H5C As StrChar '\14 Static Const PathSeparator = &H3B As StrChar ';15 Static Const VolumeSeparatorChar = &H3A As StrChar ':12 Static Const AltDirectorySeparatorChar = &H2F As Char '/ 13 Static Const DirectorySeparatorChar = &H5C As Char '\ 14 Static Const PathSeparator = &H3B As Char '; 15 Static Const VolumeSeparatorChar = &H3A As Char ': 16 16 17 17 '---------------------------------------------------------------- … … 135 135 If IsPathRooted(path) Then 136 136 If path.Contains(UniformNamingConventionString) Then 137 Return path.Remove(path.IndexOf(DirectorySeparatorChar, 137 Return path.Remove(path.IndexOf(DirectorySeparatorChar, 138 138 UniformNamingConventionString.Length) + 1) 139 139 Else … … 214 214 215 215 Private 216 Static Const ExtensionSeparatorChar = &H2E As StrChar216 Static Const ExtensionSeparatorChar = &H2E As Char 217 217 Static Const InvalidPathChars = Ex"\q<>|\0\t" As String 218 218 Static Const UniformNamingConventionString = "\\" As String … … 258 258 */ 259 259 Static Function GetLastSeparatorIndex(path As String) As Long 260 Return System.Math.Max(path.LastIndexOf(DirectorySeparatorChar), 260 Return System.Math.Max(path.LastIndexOf(DirectorySeparatorChar), 261 261 path.LastIndexOf(AltDirectorySeparatorChar)) As Long 262 262 End Function -
trunk/Include/Classes/System/IO/StreamReader.ab
r435 r497 93 93 @auther Egtra 94 94 */ 95 Override Function ReadImpl(buffer As * StrChar, index As Long, count As Long) As Long95 Override Function ReadImpl(buffer As *Char, index As Long, count As Long) As Long 96 96 Dim n = last - cur 97 97 If count <= n Then … … 143 143 文字数が足りなくても、元のストリームまで読みには行かない。 144 144 */ 145 Function ReadFromBuffer(p As * StrChar, index As Long, count As Long) As Long146 memcpy(VarPtr(p[index]), VarPtr(buf[cur]), count * SizeOf ( StrChar))145 Function ReadFromBuffer(p As *Char, index As Long, count As Long) As Long 146 memcpy(VarPtr(p[index]), VarPtr(buf[cur]), count * SizeOf (Char)) 147 147 cur += count 148 148 ReadFromBuffer = count -
trunk/Include/Classes/System/IO/StringReader.ab
r432 r497 75 75 @auther Egtra 76 76 */ 77 Override Function ReadImpl(buffer As * StrChar, index As Long, count As Long) As Long77 Override Function ReadImpl(buffer As *Char, index As Long, count As Long) As Long 78 78 ReadImpl = Math.Min(count, s.Length - i) 79 ActiveBasic.Strings.ChrCopy(VarPtr(buffer[index]) As * StrChar, (StrPtr(s) + i * SizeOf (StrChar)) As *StrChar, ReadImpl As SIZE_T) 'ToDo: ポインタに対する+演算79 ActiveBasic.Strings.ChrCopy(VarPtr(buffer[index]) As *Char, (StrPtr(s) + i * SizeOf (Char)) As *Char, ReadImpl As SIZE_T) 'ToDo: ポインタに対する+演算 80 80 End Function 81 81 -
trunk/Include/Classes/System/IO/TextReader.ab
r473 r497 31 31 @auther Egtra 32 32 */ 33 Function Read(buffer As * StrChar, index As Long, count As Long) As Long33 Function Read(buffer As *Char, index As Long, count As Long) As Long 34 34 If buffer = 0 Then 35 35 ElseIf index < 0 Then … … 76 76 ' Exit Do 77 77 End Select 78 sb.Append(ch As StrChar) 'ToDo キャスト不要にすべきというチケットを書くこと78 sb.Append(ch As Char) 'ToDo キャスト不要にすべきというチケットを書くこと 79 79 Loop 80 80 ReadLine = sb.ToString … … 93 93 Exit Function 94 94 End If 95 sb.Append(ch As StrChar)95 sb.Append(ch As Char) 96 96 Loop 97 97 End Function … … 109 109 @auther Egtra 110 110 */ 111 Virtual Function ReadImpl(buffer As * StrChar, index As Long, count As Long) As Long111 Virtual Function ReadImpl(buffer As *Char, index As Long, count As Long) As Long 112 112 Dim i As Long 113 113 Dim p = VarPtr(buffer[index]) … … 118 118 Exit Function 119 119 Else 120 p[i] = c As StrChar120 p[i] = c As Char 121 121 End If 122 122 Next … … 171 171 End Sub 172 172 173 Override Function ReadImpl(buffer As * StrChar, index As Long, count As Long) As Long173 Override Function ReadImpl(buffer As *Char, index As Long, count As Long) As Long 174 174 ' Using lock = cs.Lock 175 175 ReadImpl = base.ReadImpl(buffer, index, count) -
trunk/Include/Classes/System/Math.ab
r457 r497 2 2 3 3 #require <Classes/ActiveBasic/Math/Math.ab> 4 5 #ifndef __SYSTEM_MATH_AB__6 #define __SYSTEM_MATH_AB__7 4 8 5 Namespace System … … 600 597 Const _System_InverseLn10 = 0.43429448190325182765112891891661 '1 / (ln 10) 601 598 Const _System_InverseSqrt2 = 0.70710678118654752440084436210485 '1 / (√2) 602 603 #endif '__SYSTEM_MATH_AB__ -
trunk/Include/Classes/System/OperatingSystem.ab
r258 r497 1 1 ' Classes/System/OperatingSystem.ab 2 3 #ifndef __SYSYTEM_OPERATINGSYSTEM_AB__4 #define __SYSYTEM_OPERATINGSYSTEM_AB__5 2 6 3 #require <Classes/System/Version.ab> … … 86 83 87 84 End Namespace 88 89 #endif '__SYSYTEM_OPERATINGSYSTEM_AB__ -
trunk/Include/Classes/System/String.ab
r478 r497 1 1 ' Classes/System/String.ab 2 3 #require <basic/function.sbp>4 #require <Classes/System/Text/StringBuilder.ab>5 #require <Classes/ActiveBasic/Strings/Strings.ab>6 7 TypeDef StrChar = Char8 9 #ifdef UNICODE10 #define __STRING_IS_UNICODE11 #else12 #define __STRING_IS_NOT_UNICODE13 #endif14 2 15 3 Namespace System … … 270 258 271 259 Sub Assign(text As PCSTR, textLengthA As Long) 272 #ifdef __STRING_IS_NOT_UNICODE 273 AssignFromCharPtr(text, textLengthA) 274 #else 260 #ifdef UNICODE 275 261 Dim textLengthW = MultiByteToWideChar(CP_THREAD_ACP, 0, text, textLengthA, 0, 0) 276 262 If AllocStringBuffer(textLengthW) <> 0 Then … … 278 264 Chars[textLengthW] = 0 279 265 End If 266 #else 267 AssignFromCharPtr(text, textLengthA) 280 268 #endif 281 269 End Sub 282 270 283 271 Sub Assign(text As PCWSTR, textLengthW As Long) 284 #ifdef __STRING_IS_NOT_UNICODE 272 #ifdef UNICODE 273 AssignFromCharPtr(text, textLengthW) 274 #else 285 275 Dim textLengthA = WideCharToMultiByte(CP_THREAD_ACP, 0, text, textLengthW, 0, 0, 0, 0) 286 276 If AllocStringBuffer(textLengthA) <> 0 Then … … 288 278 Chars[textLengthA] = 0 289 279 End If 290 #else291 AssignFromCharPtr(text, textLengthW)292 280 #endif 293 281 End Sub … … 305 293 Public 306 294 Const Function Concat(text As PCSTR, len As Long) As String 307 #ifdef __STRING_IS_NOT_UNICODE 308 Return ConcatChar(This.Chars, m_Length, text, len) 309 #else 295 #ifdef UNICODE 310 296 With Concat 311 297 Dim lenW = MultiByteToWideChar(CP_THREAD_ACP, 0, text, len, 0, 0) … … 316 302 .Chars[m_Length + lenW] = 0 317 303 End With 304 #else 305 Return ConcatChar(This.Chars, m_Length, text, len) 318 306 #endif 319 307 End Function 320 308 321 309 Const Function Concat(text As PCWSTR, len As Long) As String 322 #ifdef __STRING_IS_NOT_UNICODE 310 #ifdef UNICODE 311 Return ConcatChar(This.Chars, m_Length, text, len) 312 #else 323 313 With Concat 324 314 Concat = New String … … 329 319 .Chars[m_Length + lenA] = 0 330 320 End With 331 #else332 Return ConcatChar(This.Chars, m_Length, text, len)333 321 #endif 334 322 End Function … … 600 588 601 589 Override Function GetHashCode() As Long 602 #ifdef __STRING_IS_NOT_UNICODE 590 #ifdef UNICODE 591 Dim size = m_Length 592 #else 603 593 Dim size = (m_Length + 1) >> 1 604 #else605 Dim size = m_Length606 594 #endif 607 595 Return _System_GetHashFromWordArray(Chars As *Word, size) Xor m_Length -
trunk/Include/Classes/System/Text/DecoderFallback.ab
r411 r497 77 77 len = length 78 78 End Sub 79 #if ndef __STRING_IS_NOT_UNICODE79 #ifdef UNICODE 80 80 /*! 81 81 @brief 指定された文字列でDecoderReplacementFallbackを構築する。 … … 124 124 End Function 125 125 126 #if ndef __STRING_IS_NOT_UNICODE126 #ifdef UNICODE 127 127 /*! 128 128 @brief 代替文字列を返す … … 167 167 End If 168 168 End Sub 169 #if ndef __STRING_IS_NOT_UNICODE169 #ifdef UNICODE 170 170 /*! 171 171 @brief 指定された文字列でDecoderReplacementFallbackを構築する。 -
trunk/Include/Classes/System/Text/Encoding.ab
r411 r497 1 #define __STRING_IS_NOT_UNICODE 'なぜか認識されないので2 3 1 /*! 4 2 @file Classes/System/Text/Encoding.ab … … 52 50 Return GetBytesCountCore(s, n) 53 51 End Function 54 #if ndef __STRING_IS_NOT_UNICODE52 #ifdef UNICODE 55 53 /*! 56 54 @brief 符号化して得られる文字列の長さを計算する。 … … 141 139 Return GetBytesCore(VarPtr(chars[index]), count, bytes, byteCount) 142 140 End Function 143 #if ndef __STRING_IS_NOT_UNICODE141 #ifdef UNICODE 144 142 /*! 145 143 @brief 符号化する。 … … 289 287 Abstract Function GetCharsCore(bytes As *Byte, byteCount As Long, chars As *WCHAR, charCount As Long) As Long 290 288 Public 291 #if ndef __STRING_IS_NOT_UNICODE289 #ifdef UNICODE 292 290 /*! 293 291 @brief 復号し、Stringで結果を返す。 -
trunk/Include/Classes/System/Text/StringBuilder.ab
r468 r497 1 1 'Classes/System/Text/StringBuilder.ab 2 3 #require <Classes/ActiveBasic/Strings/Strings.ab>4 2 5 3 Namespace System … … 7 5 8 6 Class StringBuilder 9 'Inherits ISerializable10 7 Public 11 8 Sub StringBuilder() … … 196 193 197 194 Override Function GetHashCode() As Long 198 #ifdef __STRING_IS_NOT_UNICODE 195 #ifdef UNICODE 196 Dim n = size 197 #else 199 198 Dim n = (size + 1) >> 1 200 #else201 Dim n = size202 199 #endif 203 200 Return _System_GetHashFromWordArray(chars As *Word, n As SIZE_T) Xor capacity Xor maxCapacity … … 214 211 Return This 215 212 End Function 216 #ifdef __STRING_IS_NOT_UNICODE 213 #ifdef UNICODE 214 Function Insert(i As Long, x As SByte) As StringBuilder 215 rangeCheck(i) 216 insertCore(i, Str$(x As Long)) 217 Return This 218 End Function 219 #else 217 220 Function Insert(i As Long, x As Word) As StringBuilder 218 221 rangeCheck(i) 219 222 insertCore(i, Str$(x As DWord)) 220 Return This221 End Function222 #else223 Function Insert(i As Long, x As SByte) As StringBuilder224 rangeCheck(i)225 insertCore(i, Str$(x As Long))226 223 Return This 227 224 End Function -
trunk/Include/Classes/System/Threading/Timeout.ab
r419 r497 1 1 ' Classes/System/Threading/Timeout.ab 2 3 #ifndef __SYSTEM_THREADING_TIMEOUT_AB__4 #define __SYSTEM_THREADING_TIMEOUT_AB__5 2 6 3 Namespace System … … 14 11 End Namespace 'Threading 15 12 End Namespace 'System 16 17 #endif -
trunk/Include/Classes/System/Version.ab
r257 r497 1 ' System/Version.ab 2 3 #ifndef __SYSTEM_VERSION_AB__ 4 #define __SYSTEM_VERSION_AB__ 5 6 #require <api_winsock2.sbp> 1 ' Classes/System/Version.ab 7 2 8 3 Namespace System … … 121 116 Function ToString(fieldCount As Long) As String 122 117 If fieldCount < 0 Or fieldCount > 4 Then 123 ' Throw ArgumentException 124 Debug 118 Throw New ArgumentOutOfRangeException("fieldCount") 125 119 End If 126 120 ToString = "" … … 132 126 133 127 If build < 0 Then 134 ' Throw ArgumentException 135 Debug 128 Throw New ArgumentException 136 129 End If 137 130 ToString = ToString + "." + Str$(build) … … 139 132 140 133 If revision < 0 Then 141 ' Throw ArgumentException 142 Debug 134 Throw New ArgumentException 143 135 End If 144 136 ToString = ToString + "." + Str$(revision) … … 152 144 153 145 End Namespace 'System 154 155 #endif '__SYSTEM_VERSION_AB__ -
trunk/Include/Classes/System/Xml/XmlDocument.ab
r468 r497 99 99 Virtual Sub Load( inStream As System.IO.Stream ) 100 100 Dim length = inStream.Length As DWord 101 Dim xmlBuffer = calloc( length + 1 ) As * StrChar101 Dim xmlBuffer = calloc( length + 1 ) As *Char 102 102 inStream.Read( xmlBuffer As *Byte, 0, length ) 103 103 inStream.Close() … … 124 124 Virtual Sub Save( outStream As System.IO.Stream ) 125 125 Dim xmlStr = InnerXmlSupportedIndent( True ) 126 outStream.Write( xmlStr.StrPtr As *Byte, 0, xmlStr.Length * SizeOf( StrChar ) )126 outStream.Write( xmlStr.StrPtr As *Byte, 0, xmlStr.Length * SizeOf( Char ) ) 127 127 outStream.Close() 128 128 End Sub -
trunk/Include/GdiPlus.ab
r473 r497 1 1 ' Gdiplus.ab 2 3 #ifndef GDIPLUS_AB4 #define GDIPLUS_AB5 2 6 3 Declare Function GdipAlloc Lib "Gdiplus.dll" (size As SIZE_T) As VoidPtr … … 17 14 '#require <Classes/System/Drawing/Imaging/misc.ab> 18 15 '#require <Classes/System/Drawing/Imaging/MetafileHeader.ab> 19 20 #endif 'GDIPLUS_AB -
trunk/Include/GdiPlusEnums.ab
r300 r497 1 1 ' GdiPlusEnums.ab 2 3 #ifndef __GDUPLUSENUMS_AB__4 #define __GDUPLUSENUMS_AB__5 2 6 3 Const FlatnessDefault = 1.0 / 4.0 … … 606 603 End Enum 607 604 608 609 605 Const Enum EmfToWmfBitsFlags 610 606 EmfToWmfBitsFlagsDefault = &h00000000 … … 619 615 TestControlGetBuildNumber = 2 620 616 End Enum 621 622 #endif '__GDUPLUSENUMS_AB__ -
trunk/Include/GdiPlusFlat.ab
r300 r497 1 1 ' GdiPlusFlat.ab 2 3 #ifndef __GDIPLUS_FLATAPI_AB__4 #define __GDIPLUS_FLATAPI_AB__5 2 6 3 #require <GdiPlusEnums.ab> … … 665 662 Declare Function GdiplusNotificationHook Lib "gdiplus.dll" (ByRef token As ULONG_PTR) As GpStatus 666 663 Declare Sub GdiplusNotificationUnhook Lib "gdiplus.dll" (ByVal token As ULONG_PTR) 667 668 #endif '__GDIPLUS_FLATAPI_AB__ -
trunk/Include/GdiPlusGpStubs.ab
r473 r497 1 1 ' GdiplusGpStubs.ab 2 3 #ifndef __GDIPLUSGPSTUBS_AB__4 #define __GDIPLUSGPSTUBS_AB__5 2 6 3 #require <Classes/System/Drawing/Drawing2D/misc.ab> … … 99 96 TypeDef GpFlushIntention = FlushIntention 100 97 TypeDef GpPathData = PathData 101 102 #endif '__GDIPLUSGPSTUBS_AB__103 -
trunk/Include/GdiPlusInit.ab
r473 r497 1 1 ' GdiPlusInit.ab 2 3 #ifndef __GDIPLUSINIT_AB__4 #define __GDIPLUSINIT_AB__5 2 6 3 Enum DebugEventLevel … … 42 39 43 40 Declare Sub GdiplusShutdown Lib "GdiPlus.dll" (ByVal token As ULONG_PTR) 44 45 #endif '__GDIPLUSINIT_AB__ -
trunk/Include/GdiPlusTypes.ab
r473 r497 1 1 ' GdiPlusTypes.sbp 2 3 #ifndef __GDIPLUSTYPES_AB__4 #define __GDIPLUSTYPES_AB__5 2 6 3 TypeDef ImageAbort = *Function(p As VoidPtr) As BOOL … … 62 59 */ 63 60 End Class 64 65 66 #endif '__GDIPLUSTYPES_AB__ -
trunk/Include/OAIdl.ab
r478 r497 4 4 5 5 #require <objidl.sbp> 6 7 #ifndef __IOleAutomationTypes_INTERFACE_DEFINED__8 #define __IOleAutomationTypes_INTERFACE_DEFINED__9 6 10 7 /* interface IOleAutomationTypes */ … … 788 785 TypeDef LPCUSTDATA = *CUSTDATA 789 786 790 #endif /* __IOleAutomationTypes_INTERFACE_DEFINED__ */791 792 #ifndef __ICreateTypeInfo_INTERFACE_DEFINED__793 #define __ICreateTypeInfo_INTERFACE_DEFINED__794 795 787 /* interface ICreateTypeInfo */ 796 788 /* [local][unique][uuid][object] */ 797 798 TypeDef LPCREATETYPEINFO = * /* [unique] */ ICreateTypeInfo799 789 800 790 Dim IID_ICreateTypeInfo = [&h00020405, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 866 856 End Interface 867 857 868 #endif /* __ICreateTypeInfo_INTERFACE_DEFINED__ */869 870 #ifndef __ICreateTypeInfo2_INTERFACE_DEFINED__871 #define __ICreateTypeInfo2_INTERFACE_DEFINED__872 873 858 /* interface ICreateTypeInfo2 */ 874 859 /* [local][unique][uuid][object] */ 875 876 TypeDef LPCREATETYPEINFO2 = /* [unique] */ *ICreateTypeInfo2877 860 878 861 Dim IID_ICreateTypeInfo2 = [&h0002040E, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 925 908 End Interface 926 909 927 #endif /* __ICreateTypeInfo2_INTERFACE_DEFINED__ */928 929 930 #ifndef __ICreateTypeLib_INTERFACE_DEFINED__931 #define __ICreateTypeLib_INTERFACE_DEFINED__932 933 910 /* interface ICreateTypeLib */ 934 911 /* [local][unique][uuid][object] */ 935 936 TypeDef LPCREATETYPELIB = /* [unique] */ *ICreateTypeLib937 912 938 913 Dim IID_ICreateTypeLib = [&h00020406, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 964 939 End Interface 965 940 966 #endif /* __ICreateTypeLib_INTERFACE_DEFINED__ */967 968 #ifndef __ICreateTypeLib2_INTERFACE_DEFINED__969 #define __ICreateTypeLib2_INTERFACE_DEFINED__970 971 941 /* interface ICreateTypeLib2 */ 972 942 /* [local][unique][uuid][object] */ 973 974 TypeDef LPCREATETYPELIB2 = /* [unique] */ *ICreateTypeLib2975 976 943 977 944 Dim IID_ICreateTypeLib2 = [&h0002040F, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 991 958 End Interface 992 959 993 994 #endif /* __ICreateTypeLib2_INTERFACE_DEFINED__ */995 996 #ifndef __IDispatch_INTERFACE_DEFINED__997 #define __IDispatch_INTERFACE_DEFINED__998 999 960 /* interface IDispatch */ 1000 961 /* [unique][uuid][object] */ 1001 1002 Typedef LPDISPATCH = /* [unique] */ *IDispatch1003 962 1004 963 Const DISPID_UNKNOWN = -1 … … 1047 1006 End Interface 1048 1007 1049 #endif /* __IDispatch_INTERFACE_DEFINED__ */1050 1051 #ifndef __IEnumVARIANT_INTERFACE_DEFINED__1052 #define __IEnumVARIANT_INTERFACE_DEFINED__1053 1054 1008 /* interface IEnumVARIANT */ 1055 1009 /* [unique][uuid][object] */ 1056 1057 Typedef LPENUMVARIANT = /* [unique] */ *IEnumVARIANT1058 1010 1059 1011 Dim IID_IEnumVARIANT = [&h00020404, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 1074 1026 End Interface 1075 1027 1076 #endif /* __IEnumVARIANT_INTERFACE_DEFINED__ */1077 1078 #ifndef __ITypeComp_INTERFACE_DEFINED__1079 #define __ITypeComp_INTERFACE_DEFINED__1080 1081 1028 /* interface ITypeComp */ 1082 1029 /* [unique][uuid][object] */ 1083 1084 TypeDef LPTYPECOMP = /* [unique] */ *ITypeComp1085 1030 1086 1031 /* [v1_enum] */ … … 1126 1071 End Interface 1127 1072 1128 #endif /* __ITypeComp_INTERFACE_DEFINED__ */1129 1130 #ifndef __ITypeInfo_INTERFACE_DEFINED__1131 #define __ITypeInfo_INTERFACE_DEFINED__1132 1133 1073 /* interface ITypeInfo */ 1134 1074 /* [unique][uuid][object] */ 1135 1136 TypeDef LPTYPEINFO = /* [unique] */ *ITypeInfo1137 1075 1138 1076 Dim IID_ITypeInfo = [&h00020401, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 1211 1149 End Interface 1212 1150 1213 #endif /* __ITypeInfo_INTERFACE_DEFINED__ */1214 1215 #ifndef __ITypeInfo2_INTERFACE_DEFINED__1216 #define __ITypeInfo2_INTERFACE_DEFINED__1217 1218 1151 /* interface ITypeInfo2 */ 1219 1152 /* [unique][uuid][object] */ 1220 1221 TypeDef LPTYPEINFO2 = /* [unique] */ *ITypeInfo21222 1153 1223 1154 Dim IID_ITypeInfo2 = [&h00020412, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 1279 1210 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT 1280 1211 End Interface 1281 1282 #endif /* __ITypeInfo2_INTERFACE_DEFINED__ */1283 1284 #ifndef __ITypeLib_INTERFACE_DEFINED__1285 #define __ITypeLib_INTERFACE_DEFINED__1286 1212 1287 1213 /* interface ITypeLib */ … … 1356 1282 End Interface 1357 1283 1358 #endif /* __ITypeLib_INTERFACE_DEFINED__ */1359 1360 1361 #ifndef __ITypeLib2_INTERFACE_DEFINED__1362 #define __ITypeLib2_INTERFACE_DEFINED__1363 1364 1284 /* interface ITypeLib2 */ 1365 1285 /* [unique][uuid][object] */ 1366 1367 TypeDef LPTYPELIB2 = /* [unique] */ *ITypeLib21368 1286 1369 1287 Dim IID_ITypeLib2 = [&h00020411, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 1379 1297 /* [out] */ ByRef chUniqueNames As DWord) As HRESULT 1380 1298 /* [local] */ Function GetDocumentation2( 1381 1382 1383 1384 1385 1299 /* [in] */ index As Long, 1300 /* [in] */ lcid As LCID, 1301 /* [out] */ ByRef bstrHelpString As BSTR, 1302 /* [out] */ ByRef dwHelpStringContext As DWord, 1303 /* [out] */ ByRef bstrHelpStringDll As BSTR) As HRESULT 1386 1304 Function GetAllCustData( 1387 1305 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT 1388 1306 End Interface 1389 1307 1390 #endif /* __ITypeLib2_INTERFACE_DEFINED__ */1391 1392 1393 #ifndef __ITypeChangeEvents_INTERFACE_DEFINED__1394 #define __ITypeChangeEvents_INTERFACE_DEFINED__1395 1396 1308 /* interface ITypeChangeEvents */ 1397 1309 /* [local][unique][uuid][object] */ 1398 1399 TypeDef LPTYPECHANGEEVENTS = /* [unique] */ *ITypeChangeEvents1400 1310 1401 1311 Enum CHANGEKIND … … 1426 1336 End Interface 1427 1337 1428 #endif /* __ITypeChangeEvents_INTERFACE_DEFINED__ */1429 1430 1431 #ifndef __IErrorInfo_INTERFACE_DEFINED__1432 #define __IErrorInfo_INTERFACE_DEFINED__1433 1434 1338 /* interface IErrorInfo */ 1435 1339 /* [unique][uuid][object] */ 1436 1437 TypeDef LPERRORINFO = /* [unique] */ *IErrorInfo1438 1340 1439 1341 Dim IID_IErrorInfo = [&h1CF2B120, &h547D, &h101B, [&h8E, &h65, &h08, &h00, &h2B, &h2B, &hD1, &h19]] As IID … … 1454 1356 End Interface 1455 1357 1456 #endif /* __IErrorInfo_INTERFACE_DEFINED__ */1457 1458 1459 #ifndef __ICreateErrorInfo_INTERFACE_DEFINED__1460 #define __ICreateErrorInfo_INTERFACE_DEFINED__1461 1462 1358 /* interface ICreateErrorInfo */ 1463 1359 /* [unique][uuid][object] */ … … 1482 1378 End Interface 1483 1379 1484 #endif /* __ICreateErrorInfo_INTERFACE_DEFINED__ */1485 1486 1487 #ifndef __ISupportErrorInfo_INTERFACE_DEFINED__1488 #define __ISupportErrorInfo_INTERFACE_DEFINED__1489 1490 1380 /* interface ISupportErrorInfo */ 1491 1381 /* [unique][uuid][object] */ 1492 1382 1493 TypeDef LPSUPPORTERRORINFO = /* [unique] */ *ISupportErrorInfo1494 1495 1383 Dim IID_ISupportErrorInfo = [&hDF0B3D60, &h548F, &h101B, [&h8E, &h65, &h08, &h00, &h2B, &h2B, &hD1, &h19]] As IID 1496 1384 … … 1501 1389 /* [in] */ ByRef riid As IID) As HRESULT 1502 1390 End Interface 1503 1504 #endif /* __ISupportErrorInfo_INTERFACE_DEFINED__ */1505 1506 1507 #ifndef __ITypeFactory_INTERFACE_DEFINED__1508 #define __ITypeFactory_INTERFACE_DEFINED__1509 1391 1510 1392 /* interface ITypeFactory */ … … 1521 1403 /* [iid_is][out] */ ByRef pv As IUnknown) As HRESULT 1522 1404 End Interface 1523 1524 #endif /* __ITypeFactory_INTERFACE_DEFINED__ */1525 1526 1527 #ifndef __ITypeMarshal_INTERFACE_DEFINED__1528 #define __ITypeMarshal_INTERFACE_DEFINED__1529 1405 1530 1406 /* interface ITypeMarshal */ … … 1558 1434 End Interface 1559 1435 1560 #endif /* __ITypeMarshal_INTERFACE_DEFINED__ */1561 1562 1563 #ifndef __IRecordInfo_INTERFACE_DEFINED__1564 #define __IRecordInfo_INTERFACE_DEFINED__1565 1566 1436 /* interface IRecordInfo */ 1567 1437 /* [uuid][object][local] */ 1568 1569 TypeDef LPRECORDINFO = /* [unique] */ *IRecordInfo1570 1438 1571 1439 Dim IID_IRecordInfo = [&h0000002F, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID … … 1621 1489 End Interface 1622 1490 1623 #endif /* __IRecordInfo_INTERFACE_DEFINED__ */1624 1625 1626 #ifndef __IErrorLog_INTERFACE_DEFINED__1627 #define __IErrorLog_INTERFACE_DEFINED__1628 1629 1491 /* interface IErrorLog */ 1630 1492 /* [unique][uuid][object] */ 1631 1632 TypeDef LPERRORLOG = *IErrorLog1633 1493 1634 1494 Dim IID_IErrorLog = [&h3127CA40, &h446E, &h11CE, [&h81, &h35, &h00, &hAA, &h00, &h4B, &hB8, &h51]] As IID … … 1642 1502 End Interface 1643 1503 1644 #endif /* __IErrorLog_INTERFACE_DEFINED__ */1645 1646 1647 #ifndef __IPropertyBag_INTERFACE_DEFINED__1648 #define __IPropertyBag_INTERFACE_DEFINED__1649 1650 1504 /* interface IPropertyBag */ 1651 1505 /* [unique][uuid][object] */ 1652 1653 TypeDef LPPROPERTYBAG = *IPropertyBag1654 1506 1655 1507 Dim IID_IPropertyBag = [&h55272A00, &h42CB, &h11CE, [&h81, &h35, &h00, &hAA, &h00, &h4B, &hB8, &h51]] As IID … … 1667 1519 /* [in] */ ByRef Var As VARIANT) As HRESULT 1668 1520 End Interface 1669 1670 #endif /* __IPropertyBag_INTERFACE_DEFINED__ */1671 -
trunk/Include/OleAuto.ab
r303 r497 1 1 ' OleAuto.ab 2 3 #ifndef _INC_OLEAUTO_AB4 #define _INC_OLEAUTO_AB5 2 6 3 ' EXTERN_C const IID IID_StdOle; … … 15 12 Const STDOLE2_LCID = &h0000 16 13 17 /*18 #ifndef _LCID_DEFINED19 TypeDef LCID = DWord20 #define _LCID_DEFINED21 #endif22 */23 24 14 #require <oaidl.ab> 25 'Dummy26 15 27 16 ' BSTR API … … 571 560 Declare Function VarTokenizeFormatString Lib "oleaut32" (pstrFormat As LPOLESTR, rgbTok As *Byte, cbTok As Long, iFirstDay As Long, iFirstWeek As Long, lcid As LCID, ByRef cbActual As Long) As HRESULT 572 561 573 ' ITypeLib574 TypeDef PTYPELIB = *ITypeLib575 576 562 ' ITypeInfo 577 563 TypeDef DISPID = Long … … 627 613 628 614 ' IDispatch implementation support 629 TypeDef LPDISPATCH = *IDispatch630 615 631 616 Type PARAMDATA … … 683 668 Declare Function OaBuildVersion Lib "oleaut32" () As DWord 684 669 Declare Sub ClearCustData Lib "oleaut32" (ByRef CustData As CUSTDATA) 685 686 #endif '_INC_OLEAUTO_AB -
trunk/Include/WinNT.ab
r322 r497 1 1 ' winnt.ab 2 3 #ifndef _WINNT_4 #define _WINNT_5 2 6 3 '#include <ctype.h> … … 72 69 #endif 73 70 74 '#ifndef VOID75 '#define VOID void76 71 TypeDef CHAR = SByte 77 72 TypeDef SHORT = Integer 78 73 TypeDef LONG = Long 79 74 TypeDef INT = Long 80 '#endif81 75 82 76 TypeDef WCHAR = Word … … 138 132 139 133 #ifdef UNICODE 140 141 #ifndef _TCHAR_DEFINED142 134 TypeDef TCHAR = WCHAR 143 135 TypeDef PTCHAR = *WCHAR 144 136 TypeDef TBYTE = WCHAR 145 137 TypeDef PTBYTE = *WCHAR 146 #define _TCHAR_DEFINED147 #endif148 138 149 139 TypeDef PTCH = PWCH … … 158 148 TypeDef LPCUTSTR = LPCUWSTR 159 149 'TypeDef LP = LPWSTR 160 161 150 #else 162 163 #ifndef _TCHAR_DEFINED164 151 TypeDef TCHAR = Char 165 152 TypeDef PTCHAR = *Char 166 153 TypeDef TBYTE = Byte 167 154 TypeDef PTBYTE = *Byte 168 #define _TCHAR_DEFINED169 #endif170 155 171 156 TypeDef PTCH = PCH … … 191 176 TypeDef FLONG = DWord 192 177 193 #ifndef _HRESULT_DEFINED194 #define _HRESULT_DEFINED195 178 TypeDef HRESULT = Long 196 #endif197 179 198 180 TypeDef CCHAR = CHAR … … 212 194 TypeDef PFLOAT128 = FLOAT128 213 195 214 '#define _ULONGLONG_215 196 TypeDef LONGLONG = Int64 216 197 TypeDef ULONGLONG = QWord 217 198 218 199 Const MAXLONGLONG = (&h7fffffffffffffff) 219 '#endif220 200 221 201 TypeDef PLONGLONG = *LONGLONG … … 242 222 TypeDef PLUID = *LUID 243 223 244 '#define _DWORDLONG_245 224 'TypeDef DWORDLONG = ULONGLONG 246 225 'TypeDef PDWORDLONG = DWORDLONG … … 285 264 #require <guiddef.ab> 286 265 287 #ifndef __OBJECTID_DEFINED288 #define __OBJECTID_DEFINED289 290 266 Type OBJECTID 291 267 Lineage As GUID 292 268 Uniquifier As DWord 293 269 End Type 294 #endif295 270 296 271 Const MINCHAR = &h80 … … 1077 1052 #endif 1078 1053 1079 #ifndef _LDT_ENTRY_DEFINED1080 #define _LDT_ENTRY_DEFINED1081 1082 1054 Type LDT_ENTRY 1083 1055 LimitLow As Word … … 1089 1061 End Type 1090 1062 TypeDef PLDT_ENTRY = *LDT_ENTRY 1091 1092 #endif1093 1063 1094 1064 Const WOW64_CONTEXT_i386 = &h00010000 … … 1250 1220 ' Security Id (SID) 1251 1221 1252 #ifndef SID_IDENTIFIER_AUTHORITY_DEFINED1253 #define SID_IDENTIFIER_AUTHORITY_DEFINED1254 1222 Type SID_IDENTIFIER_AUTHORITY 1255 1223 Value[ELM(6)] As Byte 1256 1224 End Type 1257 1225 TypeDef PSID_IDENTIFIER_AUTHORITY = *SID_IDENTIFIER_AUTHORITY 1258 #endif 1259 1260 #ifndef SID_DEFINED 1261 #define SID_DEFINED 1226 1262 1227 Type SID 1263 1228 Revision As Byte … … 1267 1232 End Type 1268 1233 TypeDef PSID = *SID 1269 #endif1270 1234 1271 1235 Const SID_REVISION = (1) … … 4191 4155 4192 4156 Const BTYPE(x) = ((x) And N_BTMASK) 4193 4194 #ifndef ISPTR4195 #define ISPTR4196 4157 Const ISPTR(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT)) 4197 #endif4198 4199 #ifndef ISFCN4200 #define ISFCN4201 4158 Const ISFCN(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT)) 4202 #endif4203 4204 #ifndef ISARY4205 #define ISARY4206 4159 Const ISARY(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_ARRAY << N_BTSHFT)) 4207 #endif4208 4209 #ifndef ISTAG4210 #define ISTAG4211 4160 Const ISTAG(x) = ((x) = IMAGE_SYM_CLASS_STRUCT_TAG Or (x) = IMAGE_SYM_CLASS_UNION_TAG Or (x) = IMAGE_SYM_CLASS_ENUM_TAG) 4212 #endif4213 4214 #ifndef INCREF4215 #define INCREF4216 4161 Const INCREF(x) = ((((x) And (Not N_BTMASK)) << N_TSHIFT) Or (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT) Or ((x) And N_BTMASK)) 4217 #endif4218 4219 #ifndef DECREF4220 #define DECREF4221 4162 Const DECREF(x) = ((((x) >> N_TSHIFT) And (Not N_BTMASK)) Or ((x) And N_BTMASK)) 4222 #endif4223 4163 4224 4164 ' Auxiliary entry format. … … 5196 5136 #endif 5197 5137 5198 ' for move macros5199 '#include <string.h>5200 5201 #ifndef _SLIST_HEADER_5202 #define _SLIST_HEADER_5203 5204 5138 #ifdef _WIN64 5205 5139 Type Align(16) SLIST_ENTRY … … 5254 5188 #endif 5255 5189 5256 #endif5257 5190 5258 5191 Declare Sub RtlInitializeSListHead Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) … … 5263 5196 Declare Function RtlQueryDepthSList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) As Word 5264 5197 5265 #ifndef _RTL_RUN_ONCE_DEF5266 #define _RTL_RUN_ONCE_DEF5267 5268 5198 'Const RTL_RUN_ONCE_INIT {0} 'Static initializer 5269 5199 … … 5280 5210 5281 5211 TypeDef PRTL_RUN_ONCE_INIT_FN = *Function(ByRef RunOnce As RTL_RUN_ONCE, Parameter As VoidPtr, ByRef Context As VoidPtr) As DWord'LOGICAL 5282 #endif5283 5212 5284 5213 Declare Sub RtlRunOnceInitialize Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE) … … 6108 6037 End Enum 6109 6038 6110 #ifndef _NTTMAPI_6111 #define _NTTMAPI_6039 '#ifndef _NTTMAPI_ 6040 '#define _NTTMAPI_ 6112 6041 6113 6042 '#include <ktmtypes.ab> … … 6170 6099 End Enum 6171 6100 6172 6173 6101 Enum TRANSACTION_STATE 6174 6102 TransactionStateNormal = 1 … … 6321 6249 TypeDef PKTMOBJECT_CURSOR = *KTMOBJECT_CURSOR 6322 6250 6323 #endif6251 '#endif 6324 6252 6325 6253 TypeDef TP_VERSION = DWord … … 6439 6367 '#endif // winnt_only 6440 6368 6441 #endif -
trunk/Include/api_commdlg.sbp
r300 r497 1 1 ' api_commdlg.sbp 2 3 #ifndef _INC_COMMDLG4 #define _INC_COMMDLG5 2 6 3 #ifdef UNICODE … … 485 482 #endif 486 483 Declare Function PrintDlg Lib "comdlg32" Alias _FuncName_PrintDlg (ByRef pd As PRINTDLG) As BOOL 487 488 489 #endif '_INC_COMMDLG -
trunk/Include/api_console.sbp
r300 r497 1 1 'api_console.sbp 2 3 #ifndef _INC_CONSOLE4 #define _INC_CONSOLE5 2 6 3 #ifdef UNICODE … … 225 222 Declare Function GetConsoleOutputCP Lib "kernel32" () As DWord 226 223 Declare Function SetConsoleOutputCP Lib "kernel32" (wCodePageID As DWord) As BOOL 227 228 229 230 #endif '_INC_CONSOLE -
trunk/Include/api_gdi.sbp
r300 r497 1 1 ' api_gdi.sbp - Graphics Device Integerface API 2 3 4 #ifndef _INC_GDI5 #define _INC_GDI6 2 7 3 #ifdef UNICODE … … 1344 1340 1345 1341 'Declare Function wglSwapMultipleBuffers Lib "opengl32" (u As DWord, lpwglswap As *WGLSWAP) As DWord 1346 1347 #endif '_INC_GDI -
trunk/Include/api_imm.sbp
r478 r497 250 250 Declare Function ImmSetOpenStatus Lib "imm32" (himc As HIMC, fOpen As BOOL) As BOOL 251 251 252 #ifdef _INC_GDI '_WINGDI_253 252 #ifndef NOGDI 254 253 Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As BOOL … … 268 267 #endif 269 268 #endif 'NOGDI 270 #endif '_INC_GDI271 269 272 270 Declare Function ImmConfigureIMEA Lib "imm32" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL -
trunk/Include/api_msg.sbp
r473 r497 1 1 ' api_msg.sbp - declarations file for window control. 2 3 4 #ifndef _INC_MSG5 #define _INC_MSG6 7 2 8 3 '------------------------------ … … 1061 1056 Const CBN_SELENDOK = 9 1062 1057 Const CBN_SELENDCANCEL = 10 1063 1064 1065 #endif '_INC_MSG -
trunk/Include/api_psapi.sbp
r300 r497 1 1 ' api_psapi.sbp 2 3 #ifndef _INC_PSAPI_4 #define _INC_PSAPI_5 2 6 3 #ifdef UNICODE … … 128 125 Declare Function EnumPageFiles Lib "psapi" Alias _FuncName_EnumPageFiles (pCallBackRoutine As PENUM_PAGE_FILE_CALLBACK, pContext As VoidPtr) As BOOL 129 126 Declare Function GetProcessImageFileName Lib "psapi" Alias _FuncName_GetProcessImageFileName (hProcess As HANDLE, lpImageFileName As LPTSTR, nSize As DWord) As DWORD 130 131 #endif '_INC_PSAPI -
trunk/Include/api_reg.sbp
r300 r497 1 1 ' api_reg.sbp 2 2 ' Registry Operation 3 4 5 #ifndef _INC_REG6 #define _INC_REG7 3 8 4 #ifdef UNICODE … … 165 161 Declare Function RegSaveKeyEx Lib "advapi32" Alias _FuncName_RegSaveKeyEx (hKey As HKEY, lpFile As LPCTSTR, lpSecurityAttributes As *SECURITY_ATTRIBUTES, Flags As DWord) As Long 166 162 '#endif 167 #endif '_INC_REG -
trunk/Include/api_shell.sbp
r300 r497 1 1 ' api_shell.sbp 2 3 4 #ifndef _INC_SHELL5 #define _INC_SHELL6 2 7 3 #ifdef UNICODE … … 712 708 /* [out] */ ByRef ppidlOut As LPITEMIDLIST) As HRESULT 713 709 End Interface 714 715 #endif '_INC_SHELL -
trunk/Include/api_shlwapi.sbp
r300 r497 1 1 ' api_shlwapi.sbp 2 3 4 #ifndef _INC_SHLWAPI5 #define _INC_SHLWAPI6 7 2 8 3 Declare Function PathGetArgsA Lib "shlwapi" (pszPath As LPCWSTR) As LPWSTR … … 86 81 Declare Function PathRenameExtension Lib "shlwapi" Alias "PathRenameExtensionA" (hKey As HKEY, pszSubKey As LPCSTR) As DWord 87 82 #endif 88 89 #endif '_INC_SHLWAPI -
trunk/Include/api_sql.sbp
r337 r497 1 1 ' api_sql.sbp 2 3 #ifndef _INC_SQL4 #define _INC_SQL5 6 2 7 3 /* API declaration data types */ … … 809 805 Declare Function SQLTransact Lib "odbc32.dll" (EnvironmentHandle As SQLHENV, 810 806 ConnectionHandle As SQLHDBC, CompletionType As SQLUSMALLINT) As SQLRETURN 811 812 813 #endif '_INC_SQL -
trunk/Include/api_sqlext.sbp
r300 r497 1 1 ' api_sqlext.sbp 2 2 3 4 #ifndef _INC_SQLEXT 5 #define _INC_SQLEXT 6 7 #ifndef _INC_SQL 8 #include <api_sql.sbp> 9 #endif 10 3 #require <api_sql.sbp> 11 4 12 5 /* generally useful constants */ … … 1793 1786 RetCode As RETCODE 1794 1787 End Type 1795 1796 1797 #endif /* _INC_SQLEXT */ -
trunk/Include/api_system.sbp
r466 r497 1 1 ' api_system.sbp - System API 2 3 #ifndef _INC_SYSTEM4 #define _INC_SYSTEM5 2 6 3 #ifdef UNICODE … … 970 967 Const MAKEINTATOM(i) = (i As Word As ULONG_PTR As LPTSTR) 971 968 Const INVALID_ATOM = 0 As ATOM 972 973 #endif '_INC_SYSTEM -
trunk/Include/api_tlhelp32.sbp
r300 r497 1 1 ' api_tlhelp32.sbp 2 3 #ifndef _INC_TOOLHELP324 #define _INC_TOOLHELP325 2 6 3 Const MAX_MODULE_NAME32 = 255 … … 134 131 Declare Function Module32First Lib "kernel32" (hSnapshot As HANDLE, ByRef me As MODULEENTRY32) As BOOL 135 132 Declare Function Module32Next Lib "kernel32" (hSnapshot As HANDLE, ByRef me As MODULEENTRY32) As BOOL 136 137 138 139 #endif ' _INC_TOOLHELP32 -
trunk/Include/api_window.sbp
r418 r497 1 1 ' api_window.sbp - Window Control API 2 3 4 #ifndef _INC_WINDOW5 #define _INC_WINDOW6 2 7 3 '------------- … … 1647 1643 lfMessageFont As LOGFONTA 1648 1644 End Type 1649 #ifdef 1645 #ifdef UNICODE 1650 1646 TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW 1651 1647 #else … … 2131 2127 Declare Function GetAltTabInfo Lib "user32" Alias "GetAltTabInfoA" (ByVal hwnd As HWND, ByVal iItem As Long, ByRef pati As ALTTABINFO, ByVal pszItemText As LPSTR, ByVal cchItemText As DWord) As BOOL 2132 2128 #endif ' !UNICODE 2133 #endif '_INC_WINDOW -
trunk/Include/api_windowstyles.sbp
r300 r497 1 1 ' api_windowstyles.sbp 2 3 4 #ifndef _INC_WINDOWSTYLES5 #define _INC_WINDOWSTYLES6 7 2 8 3 '--------------- … … 237 232 Const DS_CENTERMOUSE = &H1000 238 233 Const DS_CONTEXTHELP = &H2000 239 240 241 #endif '_INC_WINDOWSTYLES -
trunk/Include/api_winerror.sbp
r300 r497 1 1 ' api_winerror.sbp 2 3 4 #ifndef _INC_WINERROR5 #define _INC_WINERROR6 2 7 3 Const FACILITY_WINDOWSUPDATE = 36 … … 1608 1604 Const DNS_ERROR_DP_NOT_AVAILABLE = 9905 1609 1605 Const DNS_ERROR_DP_FSMO_ERROR = 9906 1610 #ifndef WSABASEERR 1611 #define WSABASEERR 1606 1612 1607 Const WSABASEERR = 10000 1613 1608 Const WSAEINTR = 10004 … … 1700 1695 Const WSA_QOS_ESHAPERATEOBJ = 11030 1701 1696 Const WSA_QOS_RESERVED_PETYPE = 11031 1702 #endif 1697 1703 1698 Const ERROR_SXS_SECTION_NOT_FOUND = 14000 1704 1699 Const ERROR_SXS_CANT_GEN_ACTCTX = 14001 … … 3098 3093 Const COMADMIN_E_REGISTRY_ACCESSDENIED = _HRESULT_TYPEDEF_(&h80110823) 3099 3094 Const COMADMIN_E_PARTITIONS_DISABLED = _HRESULT_TYPEDEF_(&h80110824) 3100 3101 #endif '_INC_WINERROR -
trunk/Include/api_wininet.sbp
r300 r497 1 1 ' api_wininet.sbp 2 3 4 #ifndef _INC_WININET5 #define _INC_WININET6 2 7 3 #ifdef UNICODE … … 107 103 hFind As HINTERNET, 108 104 ByREf vFindData As Any) As BOOL 109 110 111 #endif '_INC_WININET -
trunk/Include/api_winsock2.sbp
r300 r497 2 2 #define _WINSOCK2API_ 3 3 #define _WINSOCKAPI_ 4 /*5 #ifndef INCL_WINSOCK_API_PROTOTYPES6 #define INCL_WINSOCK_API_PROTOTYPES 17 #endif8 9 #ifndef INCL_WINSOCK_API_TYPEDEFS10 #define INCL_WINSOCK_API_TYPEDEFS 011 #endif12 */13 4 14 5 Const WINSOCK_VERSION = MAKEWORD(2, 2) … … 218 209 Const IMPLINK_HIGHEXPER = 158 219 210 220 #ifndef s_addr221 #define s_addr222 211 ' Internet address (old style... should be updated) 223 212 Type /*Class*/ in_addr … … 281 270 */ 282 271 End Type 'Class 283 #endif284 272 285 273 Const IN_CLASSA(i) = (((i) As DWord And &h80000000) = 0) … … 557 545 Const FD_ALL_EVENTS = ((1 << FD_MAX_EVENTS) - 1) 558 546 559 # include <api_winerror.sbp>547 #require <api_winerror.sbp> 560 548 561 549 ' Compatibility macros. … … 602 590 TypeDef LPWSABUF = *WSABUF 603 591 604 # include <qos.ab>592 #require <qos.ab> 605 593 606 594 Type QOS 'struct _QualityOfService … … 918 906 ' registration (RNR) API 919 907 920 #ifndef _tagBLOB_DEFINED921 #define _tagBLOB_DEFINED922 #define _BLOB_DEFINED923 #define _LPBLOB_DEFINED924 908 Type BLOB 925 909 cbSize As DWord … … 931 915 End Type 932 916 TypeDef LPBLOB = *BLOB 933 #endif934 917 935 918 ' Service Install Flags … … 970 953 Const RES_UNUSED_1 = (&h00000001) 971 954 Const RES_FLUSH_CACHE = (&h00000002) 972 #ifndef RES_SERVICE973 #define RES_SERVICE974 955 Const RES_SERVICE = (&h00000004) 975 #endif /* RES_SERVICE */976 956 977 957 ' Well known value names for Service Types 978 958 979 Const SERVICE_TYPE_VALUE_IPXPORTA = "IpxSocket"959 'Const SERVICE_TYPE_VALUE_IPXPORTA = "IpxSocket" 980 960 'Const SERVICE_TYPE_VALUE_IPXPORTW = L"IpxSocket" 981 Const SERVICE_TYPE_VALUE_SAPIDA = "SapId"961 'Const SERVICE_TYPE_VALUE_SAPIDA = "SapId" 982 962 'Const SERVICE_TYPE_VALUE_SAPIDW = L"SapId" 983 963 984 Const SERVICE_TYPE_VALUE_TCPPORTA = "TcpPort"964 'Const SERVICE_TYPE_VALUE_TCPPORTA = "TcpPort" 985 965 'Const SERVICE_TYPE_VALUE_TCPPORTW = L"TcpPort" 986 966 987 Const SERVICE_TYPE_VALUE_UDPPORTA = "UdpPort"967 'Const SERVICE_TYPE_VALUE_UDPPORTA = "UdpPort" 988 968 'Const SERVICE_TYPE_VALUE_UDPPORTW = L"UdpPort" 989 969 990 Const SERVICE_TYPE_VALUE_OBJECTIDA = "ObjectId"970 'Const SERVICE_TYPE_VALUE_OBJECTIDA = "ObjectId" 991 971 'Const SERVICE_TYPE_VALUE_OBJECTIDW = L"ObjectId" 992 993 #ifdef UNICODE994 972 /* 973 #ifdef UNICODE 995 974 Const SERVICE_TYPE_VALUE_SAPID = SERVICE_TYPE_VALUE_SAPIDW 996 975 Const SERVICE_TYPE_VALUE_TCPPORT = SERVICE_TYPE_VALUE_TCPPORTW 997 976 Const SERVICE_TYPE_VALUE_UDPPORT = SERVICE_TYPE_VALUE_UDPPORTW 998 977 Const SERVICE_TYPE_VALUE_OBJECTID = SERVICE_TYPE_VALUE_OBJECTIDW 999 */ 1000 #else 1001 978 #else 1002 979 Const SERVICE_TYPE_VALUE_SAPID = SERVICE_TYPE_VALUE_SAPIDA 1003 980 Const SERVICE_TYPE_VALUE_TCPPORT = SERVICE_TYPE_VALUE_TCPPORTA 1004 981 Const SERVICE_TYPE_VALUE_UDPPORT = SERVICE_TYPE_VALUE_UDPPORTA 1005 982 Const SERVICE_TYPE_VALUE_OBJECTID = SERVICE_TYPE_VALUE_OBJECTIDA 1006 1007 #endif 1008 1009 #ifndef __CSADDR_DEFINED__ 1010 #define __CSADDR_DEFINED__ 983 #endif 984 */ 985 Const SERVICE_TYPE_VALUE_IPXPORT = "IpxSocket" 986 Const SERVICE_TYPE_VALUE_SAPID = "SapId" 987 Const SERVICE_TYPE_VALUE_TCPPORT = "TcpPort" 988 Const SERVICE_TYPE_VALUE_UDPPORT = "UdpPort" 989 Const SERVICE_TYPE_VALUE_OBJECTID = "ObjectId" 1011 990 1012 991 ' SockAddr Information … … 1027 1006 TypeDef PCSADDR_INFO = *CSADDR_INFO 1028 1007 TypeDef LPCSADDR_INFO = *CSADDR_INFO 1029 #endif1030 1008 1031 1009 ' Address list returned via SIO_ADDRESS_LIST_QUERY … … 2136 2114 Const WSAGETSELECTERROR(lParam) = HIWORD(lParam) 2137 2115 2138 #ifdef IPV6STRICT2139 '# include <wsipv6ok.ab>2140 #endif2141 2142 #endif 2116 '#ifdef IPV6STRICT 2117 '#require <wsipv6ok.ab> 2118 '#endif 2119 2120 #endif -
trunk/Include/api_winspool.sbp
r300 r497 1 1 'api_winspool.sbp 2 3 4 #ifndef _INC_WINSPOOL5 #define _INC_WINSPOOL6 2 7 3 #ifdef UNICODE … … 60 56 Const SPOOL_FILE_PERSISTENT = &H00000001 61 57 Const SPOOL_FILE_TEMPORARY = &H00000002 62 63 64 #endif '_INC_WINSPOOL -
trunk/Include/basic.sbp
r468 r497 2 2 3 3 #_core 4 5 ' Unicodeが不安定な間の暫定対応6 #define __STRING_IS_NOT_ALWAYS_UNICODE7 8 #ifndef _INC_BASIC9 #define _INC_BASIC10 4 11 5 Sub _System_InitDllGlobalVariables() 'dummy … … 186 180 #require <basic\function.sbp> 187 181 #require <basic\command.sbp> 188 189 190 #endif '_INC_BASIC -
trunk/Include/basic/command.sbp
r478 r497 1 1 'command.sbp 2 3 4 #ifndef _INC_COMMAND5 #define _INC_COMMAND6 2 7 3 Const _System_Type_SByte = 1 … … 152 148 Sub INPUT_FromFile(FileNumber As Long) 153 149 FileNumber-- 154 150 155 151 Dim i = 0 As Long 156 152 Dim buffer = New System.Text.StringBuilder(256) 157 Dim temp[1] As StrChar153 Dim temp[1] As Char 158 154 Dim dwAccessBytes As DWord 159 155 Dim IsStr As Long … … 162 158 '次のデータをサーチ 163 159 Do 164 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf ( StrChar),VarPtr(dwAccessBytes),ByVal 0)160 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf (Char),VarPtr(dwAccessBytes),ByVal 0) 165 161 If ret=0 or dwAccessBytes=0 Then 166 162 'error … … 173 169 IsStr=0 174 170 While 1 175 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf ( StrChar),VarPtr(dwAccessBytes),ByVal 0)171 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf (Char),VarPtr(dwAccessBytes),ByVal 0) 176 172 If ret = 0 or dwAccessBytes = 0 Then 177 173 'error … … 183 179 If dwAccessBytes=0 or temp[0]=0 or temp[0]=13 or temp[0]=10 or (IsStr=0 and temp[0]=Asc(",")) or (IsStr=0 and (temp[0]=32 or temp[0]=9) and _System_InputDataType[i]<>_System_Type_String) Then 184 180 If temp[0]=13 Then 185 ReadFile(_System_hFile[FileNumber],temp,SizeOf ( StrChar),VarPtr(dwAccessBytes),ByVal 0)181 ReadFile(_System_hFile[FileNumber],temp,SizeOf (Char),VarPtr(dwAccessBytes),ByVal 0) 186 182 If Not(dwAccessBytes<>0 And temp[0]=10) Then 187 183 SetFilePointer(_System_hFile[FileNumber],-1,0,FILE_CURRENT) … … 202 198 End If 203 199 204 buffer.Append(0 As StrChar)200 buffer.Append(0 As Char) 205 201 Exit While 206 202 End If … … 252 248 Function _System_GetUsingFormat(UsingStr As String) As String 253 249 Dim i2 As Long, i3 As Long, i4 As Long, i5 As Long, ParmNum As Long 254 Dim temporary[255] As StrChar250 Dim temporary[255] As Char 255 251 Dim buffer = New System.Text.StringBuilder(1024) 256 252 … … 270 266 If UsingStr[i2]=Asc("#") Then 271 267 Dim dec As Long, sign As Long 272 Dim temp2 As * StrChar268 Dim temp2 As *Char 273 269 274 270 Dim length_num As Long, length_buf As Long … … 325 321 326 322 If dec > 0 Then 327 memcpy(VarPtr(buffer.Chars[i3]), temp2, SizeOf ( StrChar) * length_num)323 memcpy(VarPtr(buffer.Chars[i3]), temp2, SizeOf (Char) * length_num) 328 324 Else 329 325 buffer[i3] = &H30 … … 376 372 ActiveBasic.Strings.Detail.ChrFill(VarPtr(buffer.Chars[i3]), i4, &h20) 'Asc(" ") 377 373 End If 378 memcpy(VarPtr(buffer.Chars[i3]), _System_UsingStrData[ParmNum], SizeOf ( StrChar) * i5)374 memcpy(VarPtr(buffer.Chars[i3]), _System_UsingStrData[ParmNum], SizeOf (Char) * i5) 379 375 i3 += i4 380 376 Else … … 416 412 RecodeNumber-- 417 413 418 SetFilePointer(_System_hFile(FileNumber), SizeOf ( StrChar) * RecodeNumber * _System_FieldSize(FileNumber), 0, FILE_BEGIN)414 SetFilePointer(_System_hFile(FileNumber), SizeOf (Char) * RecodeNumber * _System_FieldSize(FileNumber), 0, FILE_BEGIN) 419 415 Dim t = ZeroString(_System_FieldSize(FileNumber)) 420 ReadFile(_System_hFile(FileNumber), StrPtr(t), SizeOf ( StrChar) * _System_FieldSize(FileNumber), VarPtr(dwAccessByte), ByVal 0)416 ReadFile(_System_hFile(FileNumber), StrPtr(t), SizeOf (Char) * _System_FieldSize(FileNumber), VarPtr(dwAccessByte), ByVal 0) 421 417 If dwAccessByte = _System_FieldSize(FileNumber) Then 422 418 buffer = t.ToString … … 431 427 RecodeNumber-- 432 428 433 SetFilePointer(_System_hFile(FileNumber), SizeOf ( StrChar) * RecodeNumber*_System_FieldSize(FileNumber), 0, FILE_BEGIN)434 WriteFile(_System_hFile(FileNumber), StrPtr(buffer), SizeOf ( StrChar) * _System_FieldSize(FileNumber), VarPtr(dwAccessByte), ByVal 0)429 SetFilePointer(_System_hFile(FileNumber), SizeOf (Char) * RecodeNumber*_System_FieldSize(FileNumber), 0, FILE_BEGIN) 430 WriteFile(_System_hFile(FileNumber), StrPtr(buffer), SizeOf (Char) * _System_FieldSize(FileNumber), VarPtr(dwAccessByte), ByVal 0) 435 431 End Macro 436 432 … … 444 440 DeleteFile(ToTCStr(path)) 445 441 End Macro 446 447 448 #endif '_INC_COMMAND -
trunk/Include/basic/dos_console.sbp
r473 r497 30 30 31 31 'データを変数に格納 32 Const comma = &h2c As StrChar 'Asc(",")32 Const comma = &h2c As Char 'Asc(",") 33 33 Dim broken = ActiveBasic.Strings.Detail.Split(input, comma) 34 34 Dim i As Long -
trunk/Include/basic/function.sbp
r457 r497 1 1 'function.sbp 2 3 4 #ifndef _INC_FUNCTION5 #define _INC_FUNCTION6 7 2 8 3 Const _System_PI = 3.14159265358979323846264 … … 10 5 Const _System_SQRT2 = 1.41421356237309504880168872421 11 6 Const _System_Log_N = 7 As Long 12 13 14 #require <Classes/System/Math.ab>15 #require <Classes/System/DateTime.ab>16 #require <Classes/System/Text/StringBuilder.ab>17 #require <Classes/ActiveBasic/Math/Math.ab>18 #require <Classes/ActiveBasic/Strings/Strings.ab>19 20 7 21 8 '------------- サポート関数の定義 ------------- … … 243 230 '------------ 244 231 245 Function Asc(buf As String) As StrChar232 Function Asc(buf As String) As Char 246 233 Asc = buf[0] 247 234 End Function 248 235 249 Function Chr$(code As StrChar) As String236 Function Chr$(code As Char) As String 250 237 Chr$ = New String(code, 1) 251 238 End Function 252 239 253 #if ndef __STRING_IS_NOT_UNICODE240 #ifdef UNICODE 254 241 Function AscW(s As String) As UCSCHAR 255 242 If String.IsNullOrEmpty(s) Then … … 275 262 Function ChrW(c As UCSCHAR) As String 276 263 If c <= &hFFFF Then 277 Return New String(c As StrChar, 1)264 Return New String(c As Char, 1) 278 265 ElseIf c <= &h10FFFF Then 279 266 c -= &h10000 … … 390 377 391 378 Function Space$(length As Long) As String 392 Return New String(&h20 As StrChar, length)393 End Function 394 395 Sub _ecvt_support(buf As * StrChar, count As Long, size As Long)379 Return New String(&h20 As Char, length) 380 End Function 381 382 Sub _ecvt_support(buf As *Char, count As Long, size As Long) 396 383 Dim i As Long 397 384 If buf[count] = 9 Then … … 410 397 End Sub 411 398 412 Sub _ecvt(buffer As * StrChar, value As Double, count As Long, ByRef dec As Long, ByRef sign As Boolean)399 Sub _ecvt(buffer As *Char, value As Double, count As Long, ByRef dec As Long, ByRef sign As Boolean) 413 400 Dim i As Long, i2 As Long 414 401 415 402 '値が0の場合 416 403 If value = 0 Then 417 ActiveBasic.Strings.ChrFill(buffer, count As SIZE_T, &h30 As StrChar)404 ActiveBasic.Strings.ChrFill(buffer, count As SIZE_T, &h30 As Char) 418 405 buffer[count] = 0 419 406 dec = 0 … … 442 429 443 430 For i = 0 To count - 1 444 buffer[i] = Int(value) As StrChar431 buffer[i] = Int(value) As Char 445 432 value = (value-CDbl(Int(value))) * 10 446 433 Next … … 471 458 End If 472 459 Dim dec As Long, sign As Boolean 473 Dim buffer[32] As StrChar, temp[15] As StrChar460 Dim buffer[32] As Char, temp[15] As Char 474 461 Dim i = 0 As Long 475 462 … … 585 572 End Function 586 573 587 Function String$(n As Long, s As StrChar) As String574 Function String$(n As Long, s As Char) As String 588 575 Return New String(s, n) 589 576 End Function 590 577 591 578 #ifdef _AB4_COMPATIBILITY_STRING$_ 592 579 Function String$(n As Long, s As String) As String … … 594 581 'Throw ArgumentOutOfRangeException 595 582 End If 596 597 583 Dim buf = New System.Text.StringBuilder(s.Length * n) 598 584 Dim i As Long 599 For i = 0To n585 For i = 1 To n 600 586 buf.Append(s) 601 587 Next … … 603 589 #else 604 590 Function String$(n As Long, s As String) As String 591 Dim c As Char 605 592 If String.IsNullOrEmpty(s) Then 606 Return New String(0 As StrChar, n) 607 Else 608 Return New String(s[0], n) 609 End If 593 c = 0 594 Else 595 c = s[0] 596 End If 597 String$ = New String(c, n) 610 598 End Function 611 599 #endif … … 613 601 Function Time$() As String 614 602 Dim time = System.DateTime.Now 615 616 603 Dim buf = New System.Text.StringBuilder(8) 617 618 604 'hour 619 605 If time.Hour < 10 Then … … 640 626 End Function 641 627 642 Function Val(buf As * StrChar) As Double628 Function Val(buf As *Char) As Double 643 629 Dim i As Long, i2 As Long, i3 As Long, i4 As Long 644 630 Dim temporary As String 645 Dim TempPtr As * StrChar631 Dim TempPtr As *Char 646 632 Dim dbl As Double 647 633 Dim i64data As Int64 … … 665 651 If Not (0<=i3 And i3<=7) Then Exit While 666 652 667 TempPtr[i]=i3 As StrChar653 TempPtr[i]=i3 As Char 668 654 i++ 669 655 Wend … … 688 674 End If 689 675 690 TempPtr[i]=i3 As StrChar676 TempPtr[i]=i3 As Char 691 677 i++ 692 678 Wend … … 703 689 Else 704 690 '10進数 705 #ifdef __STRING_IS_NOT_UNICODE 691 #ifdef UNICODE 692 swscanf(buf,"%lf",VarPtr(Val)) 693 #else 706 694 sscanf(buf,"%lf",VarPtr(Val)) 707 #else708 swscanf(buf,ToWCStr("%lf"),VarPtr(Val))709 695 #endif 710 696 End If … … 981 967 982 968 Function _System_IsLowSurrogate(c As WCHAR) As Boolean 983 Return &hDC00 <= c And c < &hE000 969 Return &hDC00 <= c And c < &hE000 984 970 End Function 985 971 … … 1000 986 _System_GetHashFromWordArray = hash As Long 1001 987 End Function 1002 1003 #endif '_INC_FUNCTION -
trunk/Include/basic/prompt.sbp
r411 r497 8 8 Namespace Prompt 9 9 Namespace Detail 10 10 11 11 Function _PromptSys_GetTextExtentPoint32(hdc As HDC, psz As PCSTR, cb As Long, ByRef Size As SIZE) As Long 12 12 _PromptSys_GetTextExtentPoint32 = GetTextExtentPoint32A(hdc, psz, cb, Size) … … 47 47 Type _PromptSys_LineInformation 48 48 Length As Long 49 Text As * StrChar49 Text As *Char 50 50 CharInfo As *_PromptSys_CharacterInformation 51 51 End Type … … 53 53 Dim _PromptSys_hFont As HFONT 54 54 Dim _PromptSys_FontSize As SIZE 55 Dim _PromptSys_InputStr[255] As StrChar55 Dim _PromptSys_InputStr[255] As Char 56 56 Dim _PromptSys_InputLen = -1 As Long 57 57 Dim _PromptSys_KeyChar As Byte … … 97 97 Next 98 98 _PromptSys_TextLine[100].Length = 0 99 _PromptSys_TextLine[100].Text = _System_calloc(SizeOf ( StrChar) * 255)99 _PromptSys_TextLine[100].Text = _System_calloc(SizeOf (Char) * 255) 100 100 _PromptSys_TextLine[100].CharInfo = _System_calloc(SizeOf (_PromptSys_CharacterInformation) * 255) 101 101 _PromptSys_CurPos.y-- … … 136 136 End If 137 137 With _PromptSys_FontSize 138 _PromptSys_TextOut(hDC, currentLineCharInfo[i2].StartPos, i * .cy, VarPtr(_PromptSys_TextLine[i].Text[i2]) As * StrChar, tempLen)138 _PromptSys_TextOut(hDC, currentLineCharInfo[i2].StartPos, i * .cy, VarPtr(_PromptSys_TextLine[i].Text[i2]) As *Char, tempLen) 139 139 End With 140 140 i2 += tempLen … … 191 191 EndIf 192 192 Dim p = buf.StrPtr 193 _PromptSys_GetTextExtentPoint32(hdc, VarPtr(p[i2]) As * StrChar, charLen, sz)193 _PromptSys_GetTextExtentPoint32(hdc, VarPtr(p[i2]) As *Char, charLen, sz) 194 194 currentLineCharInfo[.x + 1].StartPos = currentLineCharInfo[.x].StartPos + sz.cx 195 195 End If … … 421 421 End If 422 422 Dim tempStr = Nothing As String 423 Dim str As *StrChar 424 #ifdef __STRING_IS_NOT_UNICODE 425 Dim size = _PromptWnd_GetCompositionStringA(himc, str) 426 tempStr = New String(str, size As Long) 427 #else 423 Dim str As *Char 424 #ifdef UNICODE 428 425 Dim osver = System.Environment.OSVersion 429 426 With osver 430 ' GetCompositionStringW is not implimented in Windows 95 427 ' GetCompositionStringW is not implimented in Windows 95 431 428 If .Version.Major = 4 And .Version.Minor = 0 And .Platform = System.PlatformID.Win32Windows Then 432 429 Dim strA As PCSTR … … 438 435 End If 439 436 End With 437 #else 438 Dim size = _PromptWnd_GetCompositionStringA(himc, str) 439 tempStr = New String(str, size As Long) 440 440 #endif 441 441 ImmReleaseContext(hwnd, himc) … … 460 460 With _PromptSys_TextLine[i] 461 461 .Length = 0 462 .Text = _System_calloc(SizeOf ( StrChar) * 255)462 .Text = _System_calloc(SizeOf (Char) * 255) 463 463 .CharInfo = _System_calloc(SizeOf (_PromptSys_CharacterInformation) * 255) 464 464 End With … … 543 543 For i = 0 To 100 544 544 With _PromptSys_TextLine[i] 545 .Text[0] = 0 '_System_FillChar(_PromptSys_TextLine[i].Text, -1 As StrChar, 0)545 .Text[0] = 0 '_System_FillChar(_PromptSys_TextLine[i].Text, -1 As Char, 0) 546 546 .Length = 0 547 547 End With … … 589 589 590 590 'Set value to variable 591 Const comma = &h2c As StrChar 'Asc(",")591 Const comma = &h2c As Char 'Asc(",") 592 592 Dim broken = ActiveBasic.Strings.Detail.Split(New String(_PromptSys_InputStr), comma) 593 593 Dim i As Long … … 617 617 Dim i = _PromptSys_TextLine[y].Length 618 618 If i < x Then 619 ActiveBasic.Strings.ChrFill(VarPtr(_PromptSys_TextLine[y].Text[i]), x - i, &h20 As StrChar) 'Asc(" ")619 ActiveBasic.Strings.ChrFill(VarPtr(_PromptSys_TextLine[y].Text[i]), x - i, &h20 As Char) 'Asc(" ") 620 620 Dim i2 As Long 621 621 For i2 = i To ELM(x) -
trunk/Include/com/index.ab
r355 r497 1 ' com/index.ab2 3 1 #require <com/bstring.ab> 4 2 #require <com/variant.ab> -
trunk/Include/com/vbobject.ab
r355 r497 1 1 ' com/vbobject.ab 2 2 3 #ifndef _COM_VBIBJECT_AB 4 #define _COM_VBIBJECT_AB 5 6 #include <com/variant.ab> 3 #require <com/variant.ab> 7 4 8 5 Namespace ActiveBasic … … 371 368 End Namespace 'COM 372 369 End Namespace 'ActiveBasic 373 374 #endif '_COM_VBIBJECT_AB -
trunk/Include/crt.sbp
r400 r497 1 1 'crt.sbp 2 3 #ifndef _INC_CRT4 #define _INC_CRT5 2 6 3 #ifndef _DEFINE_CRTDLL_NAME … … 76 73 Declare Function memcmp cdecl lib "msvcrt" (p1 As VoidPtr, p2 As VoidPtr, n As SIZE_T) As Long 77 74 Declare Function wmemcmp cdecl lib "msvcrt" (p1 As *WCHAR, p2 As WCHAR, n As SIZE_T) As Long 78 79 80 #endif '_INC_CRT -
trunk/Include/directx9/d3d9caps.sbp
r1 r497 1 1 'd3d9caps.sbp 2 3 4 #ifndef _INC_D3D9CAPS5 #define _INC_D3D9CAPS6 7 2 8 3 Type D3DVSHADERCAPS2_0 … … 139 134 MaxVShaderInstructionsExecuted As DWord 140 135 MaxPShaderInstructionsExecuted As DWord 141 MaxVertexShader30InstructionSlots As DWord 136 MaxVertexShader30InstructionSlots As DWord 142 137 MaxPixelShader30InstructionSlots As DWord 143 138 End Type … … 163 158 Const D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD = &H00000020 164 159 165 ' Indicates that the device can perform a gamma correction from 160 ' Indicates that the device can perform a gamma correction from 166 161 ' a windowed back buffer containing linear content to the sRGB desktop. 167 162 Const D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION = &H00000080 … … 246 241 Const D3DPRASTERCAPS_SCISSORTEST = &H01000000 247 242 Const D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS = &H02000000 248 Const D3DPRASTERCAPS_DEPTHBIAS = &H04000000 243 Const D3DPRASTERCAPS_DEPTHBIAS = &H04000000 249 244 Const D3DPRASTERCAPS_MULTISAMPLE_TOGGLE = &H08000000 250 245 … … 395 390 Const D3DDTCAPS_FLOAT16_2 = &H00000100 396 391 Const D3DDTCAPS_FLOAT16_4 = &H00000200 397 398 399 #endif '_INC_D3D9CAPS -
trunk/Include/directx9/d3d9types.sbp
r1 r497 1 1 ' d3d9types.sbp 2 3 4 #ifndef _INC_D3D9TYPES5 #define _INC_D3D9TYPES6 7 2 8 3 Const D3DCOLOR_ARGB(a,r,g,b) = ((a and &HFF)<<24) or ((r and &HFF)<<16) or ((g and &HFF)<<8) or (b and &HFF) … … 263 258 D3DRS_FOGTABLEMODE = 35 'D3DFOGMODE 264 259 D3DRS_FOGSTART = 36 'Fog start (for both vertex and pixel fog) 265 D3DRS_FOGEND = 37 'Fog end 266 D3DRS_FOGDENSITY = 38 'Fog density 260 D3DRS_FOGEND = 37 'Fog end 261 D3DRS_FOGDENSITY = 38 'Fog density 267 262 D3DRS_RANGEFOGENABLE = 48 'Enables range-based fog 268 263 D3DRS_STENCILENABLE = 52 'BOOL enable/disable stenciling … … 983 978 Const D3DLOCK_NOOVERWRITE = &H00001000 984 979 Const D3DLOCK_NOSYSLOCK = &H00000800 985 Const D3DLOCK_DONOTWAIT = &H00004000 980 Const D3DLOCK_DONOTWAIT = &H00004000 986 981 Const D3DLOCK_NO_DIRTY_UPDATE = &H00008000 987 982 … … 1204 1199 PostTransformVertexCacheHitRate As Single 1205 1200 End Type 1206 1207 1208 #endif '_INC_D3D9TYPES -
trunk/Include/directx9/d3dx9.sbp
r1 r497 13 13 Const D3DX_FROM_FILE = -3 14 14 15 # include <directx9\d3d9.sbp>16 # include <directx9\d3dx9math.sbp>17 # include <directx9\d3dx9core.sbp>18 # include <directx9\d3dx9xof.sbp>19 # include <directx9\d3dx9mesh.sbp>20 # include <directx9\d3dx9shader.sbp>21 # include <directx9\d3dx9tex.sbp>15 #require <directx9\d3d9.sbp> 16 #require <directx9\d3dx9math.sbp> 17 #require <directx9\d3dx9core.sbp> 18 #require <directx9\d3dx9xof.sbp> 19 #require <directx9\d3dx9mesh.sbp> 20 #require <directx9\d3dx9shader.sbp> 21 #require <directx9\d3dx9tex.sbp> 22 22 23 23 -
trunk/Include/directx9/d3dx9core.sbp
r1 r497 1 1 ' d3dx9core.sbp 2 3 4 #ifndef _INC_D3DX9CORE5 #define _INC_D3DX9CORE6 7 2 8 3 Class ID3DXBuffer … … 214 209 215 210 Declare Function D3DXCreateLine Lib "dx9abm" Alias "D3DXCreateLine_abm" (pDevice As LPDIRECT3DDEVICE9, ppLine As **ID3DXLine) As DWord 216 217 218 #endif '_INC_D3DX9CORE -
trunk/Include/directx9/d3dx9math.sbp
r1 r497 1 1 'd3dx9math.sbp 2 3 4 #ifndef _INC_D3DX9MATH5 #define _INC_D3DX9MATH6 7 2 8 3 '--------------------------- … … 36 31 37 32 Type D3DXMATRIX 38 33 m[3,3] As Single 39 34 End Type 40 35 … … 265 260 266 261 Declare Function D3DXCreateMatrixStack Lib "dx9abm" Alias "D3DXCreateMatrixStack_abm" (Flags As DWord, ppStack As **ID3DXMatrixStack) As DWord 267 268 269 #endif '_INC_D3DX9MATH -
trunk/Include/directx9/d3dx9mesh.sbp
r1 r497 1 1 'd3dx9mesh.sbp 2 3 4 #ifndef _INC_D3DX9MESH5 #define _INC_D3DX9MESH6 7 2 8 3 ' patch mesh can be quads or tris … … 19 14 D3DXMESH_32BIT = &H001 'If set, then use 32 bit indices, if not set use 16 bit indices. 20 15 D3DXMESH_DONOTCLIP = &H002 'Use D3DUSAGE_DONOTCLIP for VB & IB. 21 D3DXMESH_POINTS = &H004 'Use D3DUSAGE_POINTS for VB & IB. 22 D3DXMESH_RTPATCHES = &H008 'Use D3DUSAGE_RTPATCHES for VB & IB. 23 D3DXMESH_NPATCHES = &H4000 'Use D3DUSAGE_NPATCHES for VB & IB. 16 D3DXMESH_POINTS = &H004 'Use D3DUSAGE_POINTS for VB & IB. 17 D3DXMESH_RTPATCHES = &H008 'Use D3DUSAGE_RTPATCHES for VB & IB. 18 D3DXMESH_NPATCHES = &H4000 'Use D3DUSAGE_NPATCHES for VB & IB. 24 19 D3DXMESH_VB_SYSTEMMEM = &H010 'Use D3DPOOL_SYSTEMMEM for VB. Overrides D3DXMESH_MANAGEDVERTEXBUFFER 25 D3DXMESH_VB_MANAGED = &H020 'Use D3DPOOL_MANAGED for VB. 20 D3DXMESH_VB_MANAGED = &H020 'Use D3DPOOL_MANAGED for VB. 26 21 D3DXMESH_VB_WRITEONLY = &H040 'Use D3DUSAGE_WRITEONLY for VB. 27 22 D3DXMESH_VB_DYNAMIC = &H080 'Use D3DUSAGE_DYNAMIC for VB. … … 74 69 75 70 Const Enum D3DXEFFECTDEFAULTTYPE 76 D3DXEDT_STRING = &H1 ' pValue points to a null terminated ASCII string 71 D3DXEDT_STRING = &H1 ' pValue points to a null terminated ASCII string 77 72 D3DXEDT_FLOATS = &H2 ' pValue points to an array of floats - number of floats is NumBytes / sizeof(float) 78 73 D3DXEDT_DWORD = &H3 ' pValue points to a DWORD … … 292 287 Abstract Function GetPatchInfo(PatchInfo As *D3DXPATCHINFO) As DWord 293 288 294 'Control mesh access 289 'Control mesh access 295 290 Abstract Function GetVertexBuffer(ppVB As **IDirect3DVertexBuffer9) As DWord 296 291 Abstract Function GetIndexBuffer(ppIB As **IDirect3DIndexBuffer9) As DWord … … 336 331 'Set min bone influence. Bone influences that are smaller than this are ignored 337 332 Abstract Function SetMinBoneInfluence(MinInfl As Single) As DWord 338 'Get min bone influence. 333 'Get min bone influence. 339 334 Abstract Function GetMinBoneInfluence() As Single 340 335 … … 350 345 Abstract Function Clone(ppSkinInfo As **ID3DXSkinInfo) As DWord 351 346 352 'Update bone influence information to match vertices after they are reordered. This should be called 347 'Update bone influence information to match vertices after they are reordered. This should be called 353 348 'if the target vertex buffer has been reordered externally. 354 349 Abstract Function Remap(NumVertices As DWord, pVertexRemap As DWordPtr) As DWord … … 367 362 Abstract Function ConvertToBlendedMesh(pMesh As *ID3DXMesh, Options As DWord, pAdjacencyIn As DWordPtr, pAdjacencyOut As DWordPtr, pFaceRemap As DWordPtr, ppVertexRemap As **ID3DXBuffer, pMaxFaceInfl As DWordPtr, pNumBoneCombinations As DWordPtr, ppBoneCombinationTable As **ID3DXBuffer, ppMesh As **ID3DXMesh) As DWord 368 363 369 'Takes a mesh and returns a new mesh with per vertex blend weights and indices 364 'Takes a mesh and returns a new mesh with per vertex blend weights and indices 370 365 'and a bone combination table that describes which bones palettes affect which subsets of the mesh 371 366 Abstract Function ConvertToIndexedBlendedMesh(pMesh As *ID3DXMesh, Options As DWord, paletteSize As DWord, pAdjacencyIn As DWordPtr, pAdjacencyOut As DWordPtr, pFaceRemap As DWordPtr, ppVertexRemap As **ID3DXBuffer, pMaxVertexInfl As DWordPtr, pNumBoneCombinations As DWordPtr, ppBoneCombinationTable As **ID3DXBuffer, ppMesh As **ID3DXMesh) As DWord … … 430 425 Declare Function D3DXOptimizeFaces Lib "dx9abm" Alias "D3DXOptimizeFaces_abm" (pbIndices As VoidPtr, cFaces As DWord, cVertices As DWord, b32BitIndices As Long, pFaceRemap As DWordPtr) As DWord 431 426 Declare Function D3DXOptimizeVertices Lib "dx9abm" Alias "D3DXOptimizeVertices_abm" (pbIndices As VoidPtr, cFaces As DWord, cVertices As DWord, b32BitIndices As Long, pFaceRemap As DWordPtr) As DWord 432 433 434 #endif '_INC_D3DX9MESH -
trunk/Include/directx9/d3dx9shader.sbp
r1 r497 1 1 ' d3dx9shader.sbp 2 3 4 #ifndef _INC_D3DX9SHADER5 #define _INC_D3DX9SHADER6 7 2 8 3 TypeDef D3DXHANDLE = BytePtr … … 217 212 Declare Function D3DXCompileShaderFromResource Lib "dx9abm" Alias "D3DXCompileShaderFromResource_abm" (hSrcModule As HINSTANCE, pSrcResource As BytePtr, pDefines As *D3DXMACRO, pInclude As LPD3DXINCLUDE, pFunctionName As BytePtr, pProfile As BytePtr, Flags As DWord, ppShader As *LPD3DXBUFFER, ppErrorMsgs As *LPD3DXBUFFER, ppConstantTable As *LPD3DXCONSTANTTABLE) As DWord 218 213 Declare Function D3DXCompileShader Lib "dx9abm" Alias "D3DXCompileShader_abm" (pSrcData As BytePtr, SrcDataLen As DWord, pDefines As *D3DXMACRO, pInclude As LPD3DXINCLUDE, pFunctionName As BytePtr, pProfile As BytePtr, Flags As DWord, ppShader As *LPD3DXBUFFER, ppErrorMsgs As *LPD3DXBUFFER, ppConstantTable As *LPD3DXCONSTANTTABLE) As DWord 219 220 221 #endif '_INC_D3DX9SHADER -
trunk/Include/directx9/d3dx9tex.sbp
r381 r497 1 1 'd3dx9tex.sbp 2 3 4 #ifndef _INC_D3DX9TEX5 #define _INC_D3DX9TEX6 7 2 8 3 ' D3DX_FILTER flags … … 143 138 Declare Function D3DXFillVolumeTextureTX Lib "dx9abm" Alias "D3DXFillVolumeTextureTX_abm" (pVolumeTexture As LPDIRECT3DVOLUMETEXTURE9, pTextureShader As LPD3DXTEXTURESHADER) As DWord 144 139 Declare Function D3DXComputeNormalMap Lib "dx9abm" Alias "D3DXComputeNormalMap_abm" (pTexture As LPDIRECT3DTEXTURE9, pSrcTexture As LPDIRECT3DTEXTURE9, pSrcPalette As *PALETTEENTRY, Flags As DWord, Channel As DWord, Amplitude As Single) As DWord 145 146 147 #endif '_INC_D3DX9TEX148 -
trunk/Include/directx9/d3dx9xof.sbp
r1 r497 1 1 ' d3dx9xof.sbp 2 3 4 #ifndef _INC_D3DX9XOF5 #define _INC_D3DX9XOF6 7 2 8 3 Class ID3DXFile … … 64 59 '未完成 65 60 'Declare Function Lib "dx9abm" Alias "_abm" () As DWord 66 67 68 #endif '_INC_D3DX9XOF -
trunk/Include/directx9/dmdls.sbp
r1 r497 1 1 ' dmdls.sbp - DLS download definitions for DirectMusic API's 2 3 4 #ifndef _INC_DMDLS5 #define _INC_DMDLS6 7 2 8 3 Type DMUS_NOTERANGE … … 10 5 dwHighNote As DWord 'Sets the high note for the range of MIDI note events to which the instrument responds. 11 6 End Type 12 13 14 #endif '_INC_DMDLS -
trunk/Include/directx9/dmplugin.sbp
r1 r497 1 1 ' dmplugin.sbp - This module contains the API for plugins for the DirectMusic performance layer 2 3 4 #ifndef _INC_DMPLUGIN5 #define _INC_DMPLUGIN6 7 2 8 3 Class IDirectMusicTool … … 53 48 Abstract Function EndPlay(pStateData As VoidPtr) As DWord 54 49 Abstract Function Play(pStateData As VoidPtr, mtStart As MUSIC_TIME, mtEnd As MUSIC_TIME, mtOffset As MUSIC_TIME, dwFlags As DWord, pPerf As *IDirectMusicPerformance, pSegSt As *IDirectMusicSegmentState, dwVirtualID As DWord) As DWord 55 Abstract Function GetParam(ByRef rguidType As GUID, mtTime As MUSIC_TIME, pmtNext As *MUSIC_TIME, pParam As VoidPtr) As DWord 50 Abstract Function GetParam(ByRef rguidType As GUID, mtTime As MUSIC_TIME, pmtNext As *MUSIC_TIME, pParam As VoidPtr) As DWord 56 51 Abstract Function SetParam(ByRef rguidType As GUID, mtTime As MUSIC_TIME, pParam As VoidPtr) As DWord 57 52 Abstract Function IsParamSupported(ByRef rguidType As GUID) As DWord … … 71 66 Abstract Function Join(pNewTrack As *IDirectMusicTrack, mtJoin As MUSIC_TIME, pContext As *IUnknown, dwTrackGroup As DWord, ppResultTrack As **IDirectMusicTrack) As DWord 72 67 End Class 73 74 75 #endif '_INC_DMPLUGIN -
trunk/Include/directx9/dmusic.sbp
r1 r497 6 6 7 7 8 # include <directx9\dsound.sbp>9 # include <directx9\dmdls.sbp>10 # include <directx9\dmusicc.sbp>11 # include <directx9\dmplugin.sbp>8 #require <directx9\dsound.sbp> 9 #require <directx9\dmdls.sbp> 10 #require <directx9\dmusicc.sbp> 11 #require <directx9\dmplugin.sbp> 12 12 13 13 -
trunk/Include/directx9/dmusicc.sbp
r1 r497 1 1 ' dmusicc.sbp - This module defines the DirectMusic core API's 2 3 4 #ifndef _INC_DMUSICC5 #define _INC_DMUSICC6 7 2 8 3 Const DMUS_MAX_DESCRIPTION = 128 … … 53 48 dwMemorySize As DWord 54 49 dwMaxChannelGroups As DWord 55 dwMaxVoices As DWord 50 dwMaxVoices As DWord 56 51 dwMaxAudioChannels As DWord 57 52 dwEffectFlags As DWord … … 262 257 Dim IID_IDirectMusicInstrument = [&Hd2ac287d, &Hb39b, &H11d1, [&H87, &H4, &H0, &H60, &H8, &H93, &Hb1, &Hbd]] As GUID 263 258 Dim IID_IDirectMusicDownloadedInstrument = [&Hd2ac287e, &Hb39b, &H11d1, [&H87, &H4, &H0, &H60, &H8, &H93, &Hb1, &Hbd]] As GUID 264 265 266 #endif '_INC_DMUSICC -
trunk/Include/directx9/dsound.sbp
r1 r497 1 1 ' dsound.sbp 2 3 4 #ifndef _INC_DSOUND5 #define _INC_DSOUND6 7 8 2 Const DIRECTSOUND_VERSION = &H0900 9 3 … … 634 628 ' Waves Reverberation {87FC0268-9A55-4360-95AA-004A1D9DE26C} 635 629 Dim GUID_DSFX_WAVES_REVERB = [&H87fc0268, &H9a55, &H4360, [&H95, &Haa, &H00, &H4a, &H1d, &H9d, &He2, &H6c]] As GUID 636 637 638 #endif '_INC_DSOUND -
trunk/Include/gl/gl.sbp
r184 r497 1 #ifndef _INC_GL 2 #define _INC_GL 1 'gl/gl.sbp 3 2 4 3 TypeDef GLenum = DWord … … 1018 1017 TypeDef PFNGLGETCOLORTABLEPARAMETERIVEXTPROC = *Sub(target As GLenum, pname As GLenum, params As *GLint) 1019 1018 TypeDef PFNGLGETCOLORTABLEPARAMETERFVEXTPROC = *Sub(target As GLenum, pname As GLenum, params As *GLfloat) 1020 1021 #endif /* _INC_GL */ -
trunk/Include/gl/glu.sbp
r1 r497 1 #ifndef _INC_GLU2 #define _INC_GLU3 4 1 Function gluErrorStringWIN(errCode As GLenum) As PSTR 5 2 gluErrorStringWIN = gluErrorString(errCode) As PSTR … … 224 221 Const GLU_ERROR = GLU_TESS_ERROR 225 222 Const GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG 226 227 #endif '_INC_GLU -
trunk/Include/gl/glut.sbp
r1 r497 1 #ifndef _INC_GLUT 2 #define _INC_GLUT 3 4 #include <GL/gl.sbp> 5 #include <GL/glu.sbp> 6 1 #require <GL/gl.sbp> 2 #require <GL/glu.sbp> 3 7 4 Const GLUT_XLIB_IMPLEMENTATION = 13 8 5 … … 351 348 Declare Sub glutLeaveGameMode Lib "glut32" () 352 349 Declare Function glutGameModeGet Lib "glut32" (mode As GLenum) As Long 353 354 #endif '_INC_GLUT -
trunk/Include/guiddef.ab
r300 r497 30 30 End Function 31 31 32 #ifndef _SYS_GUID_OPERATOR_EQ_33 #ifdef _NO_SYS_GUID_OPERATOR_EQ_34 #define _SYS_GUID_OPERATOR_EQ_35 32 /* 36 33 Function Operator ==(ByRef x As GUID, ByRef y As GUID) As Boolean … … 42 39 End Function 43 40 */ 44 #endif45 #endif -
trunk/Include/objbase.sbp
r303 r497 1 1 ' objbase.sbp 2 3 #ifndef _INC_OBJBASE4 #define _INC_OBJBASE5 2 6 3 TypeDef RPC_AUTH_IDENTITY_HANDLE = VoidPtr 'Declared in Rpcdce.sbp; include Rpc.sbp. … … 89 86 Const CLSCTX_INPROC = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER 90 87 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 91 #ifdef _WIN32_DCOM92 88 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 93 89 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 94 #else95 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER96 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER97 #endif90 '#else 91 'Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER 92 'Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER 93 '#endif 98 94 99 95 Const Enum REGCLS … … 115 111 116 112 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 117 #ifdef _WIN32_DCOM118 113 Const Enum COINIT 119 114 COINIT_MULTITHREADED = &h0 … … 124 119 Declare Function CoInitializeEx Lib "ole32" (pvReserved As VoidPtr, dwCoInit As DWord) As HRESULT 125 120 Declare Function CoGetCallerTID Lib "ole32" (ByRef dwTID AS DWord) As HRESULT 126 #endif121 '#endif 127 122 128 123 #ifdef __UNDECLARED__ … … 220 215 221 216 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 222 #ifdef _WIN32_DCOM223 217 224 218 /* Call Security. */ 225 219 220 /*SOLE_AUTHENTICATION_SERVICE未定義 226 221 Declare Function CoInitializeSecurity Lib "ole32" ( 227 222 ByVal pSecDesc As *SECURITY_DESCRIPTOR, … … 231 226 ByVal dwImpLevel As DWord, 232 227 ByVal pAuthList As VoidPtr, 233 ByVal dwCapabilities As DWord 228 ByVal dwCapabilities As DWord, 234 229 ByVal pReserved3 As VoidPtr) As HRESULT 230 */ 235 231 Declare Function CoGetCallContext Lib "ole32" ( 236 232 ByRef riid As IID, … … 243 239 ByVal pAuthnLevel As *DWord, 244 240 ByVal pImpLevel As *DWord, 245 ByVal pAuthInfo As *RPC_AUTH_IDENTITY_HANDLE 241 ByVal pAuthInfo As *RPC_AUTH_IDENTITY_HANDLE, 246 242 ByVal pCapabilites As *DWord) As HRESULT 247 243 Declare Function CoSetProxyBlanket Lib "ole32" ( … … 263 259 ByVal pAuthnLevel As *DWord, 264 260 ByVal pImpLevel As *DWord, 265 ByVal pPrivs As *RPC_AUTHZ_HANDLE 261 ByVal pPrivs As *RPC_AUTHZ_HANDLE, 266 262 ByVal pCapabilities As *DWord) As HRESULT 267 263 Declare Function CoImpersonateClient Lib "ole32" () As HRESULT … … 281 277 Const COM_RIGHTS_ACTIVATE_LOCAL = 8 282 278 Const COM_RIGHTS_ACTIVATE_REMOTE = 16 283 284 #endif ' DCOM 279 '#endif ' DCOM 285 280 286 281 Declare Function CoCreateInstance Lib "ole32" (ByRef clsid As CLSID, pUnknown As *IUnknown, dwClsContext As DWord, ByRef refiid As IID, ByRef pObj As Any) As HRESULT 287 282 288 283 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 289 #ifdef _WIN32_DCOM290 284 Declare Function CoGetInstanceFromFile Lib "ole32" ( 291 285 ByVal pServerInfo As *COSERVERINFO, … … 294 288 ByVal dwClsCtx As DWord, 295 289 ByVal grfMode As DWord, 296 ByVal pwszName As *OLECHAR 290 ByVal pwszName As *OLECHAR, 297 291 ByVal dwCount As DWord, 298 292 ByVal pResults As *MULTI_QI) As HRESULT … … 304 298 ByVal dwClsCtx As DWord, 305 299 ByVal grfMode As DWord, 306 ByVal pstg As *IStorage 300 ByVal pstg As *IStorage, 307 301 ByVal dwCount As DWord, 308 302 ByVal pResults As *MULTI_QI) As HRESULT … … 312 306 ByVal punkOuter As *IUnknown, 313 307 ByVal dwClsCtx As DWord, 314 ByVal pServerInfo As COSERVERINFO,308 ByVal pServerInfo As *COSERVERINFO, 315 309 ByVal dwCount As DWord, 316 310 ByVal pResults As *MULTI_QI) As HRESULT 317 #endif ' DCOM311 '#endif ' DCOM 318 312 319 313 /* Call related APIs */ 320 314 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 321 #ifdef _WIN32_DCOM322 323 315 Declare Function CoGetCancelObject Lib "ole32" (dwThreadId As DWord, ByRef iid As IID, ByRef pUnk As Any) As HRESULT 324 316 Declare Function CoSetCancelObject Lib "ole32" (pUnk As *IUnknown) As HRESULT … … 329 321 Declare Function CoAllowSetForegroundWindow Lib "ole32" (pUnk As *IUnknown, pvReserved As VoidPtr) As HRESULT 330 322 Declare Function DcomChannelSetHResult Lib "ole32" (pvReserved As HRESULT, pulReserved As DWord, appsHR As HRESULT) As HRESULT 331 332 #endif 323 '#endif 333 324 334 325 /* other helpers */ … … 353 344 354 345 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 355 #ifdef _WIN32_DCOM 356 Declare Function CoRegisterChannelHook Lib "ole32" (ByRef ExtensionUuid As GUID, pChannelHook As *IChannelHook) As HRESULT357 #endif ' DCOM346 'IChannelHook未定義 347 'Declare Function CoRegisterChannelHook Lib "ole32" (ByRef ExtensionUuid As GUID, pChannelHook As *IChannelHook) As HRESULT 348 '#endif ' DCOM 358 349 359 350 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 360 #ifdef _WIN32_DCOM361 351 362 352 Declare Function CoWaitForMultipleHandles Lib "ole32" ( … … 375 365 End Enum 376 366 377 #endif ' DCOM367 '#endif ' DCOM 378 368 379 369 /* for flushing OLESCM remote binding handles */ … … 551 541 ByVal pIbscCaller As *IBindStatusCallback, 552 542 ByRef pIbsc As *IBindStatusCallback) As HRESULT 553 554 555 #endif '_INC_OBJBASE -
trunk/Include/objidl.sbp
r478 r497 1 #ifndef _INC_OBJIDL 2 #define _INC_OBJIDL 1 'Include/objidl.sbp 3 2 4 3 TypeDef SNB = **OLECHAR … … 132 131 133 132 /* interface IExternalConnection */ 134 /* [uuid][local][object] */ 133 /* [uuid][local][object] */ 135 134 136 135 Const Enum EXTCONN … … 144 143 Interface IExternalConnection 145 144 Inherits IUnknown 146 145 147 146 Function AddConnection( 148 147 /* [in] */ extconn As DWord, 149 148 /* [in] */ reserved As DWord) As DWord 150 Function ReleaseConnection( 149 Function ReleaseConnection( 151 150 /* [in] */ extconn As DWord, 152 151 /* [in] */ reserved As DWord, … … 170 169 171 170 /* interface AsyncIMultiQI */ 172 /* [uuid][local][object] */ 171 /* [uuid][local][object] */ 173 172 174 173 … … 185 184 186 185 /* interface IInternalUnknown */ 187 /* [uuid][local][object] */ 186 /* [uuid][local][object] */ 188 187 Dim IID_IInternalUnknown = [&h00000021, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 189 188 Interface IInternalUnknown … … 539 538 End Interface 540 539 541 TypeDef LPSTREAM = *IStream542 543 540 /* interface IEnumSTATSTG */ 544 541 /* [unique][uuid][object] */ … … 561 558 /* interface IStorage */ 562 559 /* [unique][uuid][object] */ 563 564 TypeDef LPSTORAGE = /* [unique] */ *IStorage565 560 566 561 Type RemSNB … … 989 984 990 985 Dim IID_IGlobalInterfaceTable = [&h00000146, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 991 Interface IGlobalInterfaceTable 986 Interface IGlobalInterfaceTable 992 987 Inherits IUnknown 993 988 … … 1067 1062 1068 1063 ' IInitializeSpy 1069 1070 #endif '_INC_OBJIDL -
trunk/Include/ole2.ab
r478 r497 1 #ifndef __OLE2_AB__2 #define __OLE2_AB__3 4 1 ' 暫定措置 5 2 … … 309 306 Declare Function OleLoadPicture Lib "olepro32" (stream As IStream, lSize As Long, fRunmode As BOOL, ByRef riid As IID, ppvObj As VoidPtr) As HRESULT 310 307 #endif '__UNDEFINED 311 #endif ' __OLE2_AB__ -
trunk/Include/qos.ab
r300 r497 1 1 ' qos.ab 2 #ifndef _INC_QOS_AB3 #define _INC_QOS_AB4 2 5 3 ' Definitions for valued-based Service Type for each direction of data flow. … … 76 74 End Type 77 75 TypeDef LPQOS_SHAPING_RATE = *QOS_SHAPING_RATE 78 79 #endif '_INC_QOS_AB -
trunk/Include/system/string.sbp
r478 r497 1 1 'string.sbp 2 2 '文字列変数の操作用 3 4 #ifndef _INC_BASIC_STRING5 #define _INC_BASIC_STRING6 3 7 4 Function StrPtr(s As String) As *Char … … 319 316 320 317 #ifndef UNICODE 321 Type def BoxedStrChar = System.SByte318 TypeDef BoxedStrChar = System.SByte 322 319 #else 323 320 TypeDef BoxedStrChar = System.UInt16 324 321 #endif 325 326 #endif '_INC_BASIC_STRING -
trunk/Include/unknwn.sbp
r381 r497 1 1 ' unknwn.sbp 2 2 ' 本来はunknwn.idlから生成するのが正当ですが、これは手動で移植したものです。 3 4 #ifndef _INC_UNKNWN5 #define _INC_UNKNWN6 3 7 4 '------------------- … … 17 14 Function Release() As DWord 18 15 End Interface 19 TypeDef LPUNKNOWN = *IUnknown20 16 21 17 Dim IID_AsyncIUnknown = [&H000e0000, &H0000, &H0000, [&HC0, &H00, &H00, &H00, &H00, &H00, &H00, &H46]] As IID … … 37 33 Inherits IUnknown 38 34 39 Function CreateInstance(ByVal pUnkOuter As *IUnknown, ByRef riid As IID, ByRef ppvObject As Any) As HRESULT35 Function CreateInstance(ByVal unkOuter As IUnknown, ByRef riid As IID, ByRef ppvObject As Any) As HRESULT 40 36 Function LockServer(ByVal fLock As BOOL) As HRESULT 41 37 End Interface 42 43 #endif '_INC_UNKNWN -
trunk/Include/windef.ab
r300 r497 1 1 ' windef.ab 2 3 #ifndef _WINDEF_4 #define _WINDEF_5 2 6 3 '#ifndef WINVER … … 8 5 '#endif 9 6 10 #ifndef BASETYPES11 #define BASETYPES12 7 'TypeDef ULONG = DWord 13 8 'TypeDef PULONG = *ULONG … … 17 12 TypeDef PUCHAR = *UCHAR 18 13 'TypeDef PSZ = *SByte 19 #endif20 14 21 15 Const MAX_PATH = 260 22 16 23 '#ifndef NULL24 '#define NULL25 17 Const NULL = 0 As VoidPtr 26 '#endif 27 28 '#ifndef FALSE 29 '#define FALSE 18 30 19 Const FALSE = 0 31 '#endif32 33 '#ifndef TRUE34 '#define TRUE35 20 Const TRUE = 1 36 '#endif37 21 38 22 TypeDef DWORD = DWord … … 60 44 'TypeDef PUINT = *DWord 61 45 62 #ifndef NT_INCLUDED63 46 #require <winnt.ab> 64 #endif65 47 66 48 '#require <specstrings.ab> … … 88 70 Const LOWORD(dw) = ((dw As DWord) And &HFFFF) As Word 89 71 90 #ifndef WIN_INTERNAL91 72 Type _System_DeclareHandle_HWND:unused As DWord:End Type 92 73 TypeDef HWND = *_System_DeclareHandle_HWND 93 74 Type _System_DeclareHandle_HHOOK:unused As DWord:End Type 94 75 TypeDef HHOOK = *_System_DeclareHandle_HHOOK 95 #ifdef WINABLE 96 Type _System_DeclareHandleHEVENT:unused As DWord:End Type 76 Type _System_DeclareHandle_HEVENT:unused As DWord:End Type 97 77 TypeDef HEVENT = *_System_DeclareHandle_HEVENT 98 #endif99 #endif100 78 101 79 TypeDef ATOM = Word … … 117 95 TypeDef PHKEY = *HKEY 118 96 119 #ifndef WIN_INTERNAL120 97 Type _System_DeclareHandle_HACCEL:unused As DWord:End Type 121 98 TypeDef HACCEL = *_System_DeclareHandle_HACCEL 122 #endif123 #ifndef GDI_INTERNAL124 99 Type _System_DeclareHandle_HBITMAP:unused As DWord:End Type 125 100 TypeDef HBITMAP = *_System_DeclareHandle_HBITMAP 126 101 Type _System_DeclareHandle_HBRUSH:unused As DWord:End Type 127 102 TypeDef HBRUSH = *_System_DeclareHandle_HBRUSH 128 #endif129 103 Type _System_DeclareHandle_HCOLORSPACE:unused As DWord:End Type 130 104 TypeDef HCOLORSPACE = *_System_DeclareHandle_HCOLORSPACE 131 #ifndef GDI_INTERNAL132 105 Type _System_DeclareHandle_HDC:unused As DWord:End Type 133 106 TypeDef HDC = *_System_DeclareHandle_HDC 134 #endif135 107 Type _System_DeclareHandle_HGLRC:unused As DWord:End Type 136 108 TypeDef HGLRC = *_System_DeclareHandle_HGLRC … … 139 111 Type _System_DeclareHandle_HENHMETAFILE:unused As DWord:End Type 140 112 TypeDef HENHMETAFILE = *_System_DeclareHandle_HENHMETAFILE 141 #ifndef GDI_INTERNAL142 113 Type _System_DeclareHandle_HFONT:unused As DWord:End Type 143 114 TypeDef HFONT = *_System_DeclareHandle_HFONT 144 #endif145 115 Type _System_DeclareHandle_HICON:unused As DWord:End Type 146 116 TypeDef HICON = *_System_DeclareHandle_HICON 147 #ifndef WIN_INTERNAL148 117 Type _System_DeclareHandle_HMENU:unused As DWord:End Type 149 118 TypeDef HMENU = *_System_DeclareHandle_HMENU 150 #endif151 119 Type _System_DeclareHandle_HMETAFILE:unused As DWord:End Type 152 120 TypeDef HMETAFILE = *_System_DeclareHandle_HMETAFILE … … 154 122 TypeDef HINSTANCE = *_System_DeclareHandle_HINSTANCE 155 123 TypeDef HMODULE = HINSTANCE 156 #ifndef GDI_INTERNAL157 124 Type _System_DeclareHandle_HPALETTE:unused As DWord:End Type 158 125 TypeDef HPALETTE = *_System_DeclareHandle_HPALETTE 159 126 Type _System_DeclareHandle_HPEN:unused As DWord:End Type 160 127 TypeDef HPEN = *_System_DeclareHandle_HPEN 161 #endif162 128 Type _System_DeclareHandle_HRGN:unused As DWord:End Type 163 129 TypeDef HRGN = *_System_DeclareHandle_HRGN … … 249 215 TypeDef PFILETIME = *FILETIME 250 216 TypeDef LPFILETIME = *FILETIME 251 252 #define _FILETIME_253 217 254 218 Const DM_UPDATE = 1 … … 280 244 Const DC_ORIENTATION = 17 281 245 Const DC_COPIES = 18 282 283 #endif -
trunk/Include/windows.sbp
r473 r497 1 1 ' Windows.sbp - declarations file for Windows API. 2 3 4 #ifndef _INC_WINDOWS5 #define _INC_WINDOWS6 2 7 3 TypeDef OLECHAR = WCHAR … … 48 44 Const GET_X_LPARAM(lp) = ((LOWORD(lp) As Integer) As Long) 49 45 Const GET_Y_LPARAM(lp) = ((HIWORD(lp) As Integer) As Long) 50 51 #endif '_INC_WINDOWS -
trunk/Include/winver.ab
r300 r497 1 1 ' Winver.ab 2 3 #ifndef __WINVER_AB4 #define __WINVER_AB5 2 6 3 #ifdef UNICODE … … 210 207 ByRef uLen As DWord _ 211 208 ) As BOOL 212 213 #endif '__WINVER_AB
Note:
See TracChangeset
for help on using the changeset viewer.