Changeset 285 for Include/OAIdl.ab


Ignore:
Timestamp:
Jul 26, 2007, 5:43:54 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

wtypes.abを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/OAIdl.ab

    r268 r285  
    1616#define __IOleAutomationTypes_INTERFACE_DEFINED__
    1717
    18 TypeDef VARTYPE = Word ' WTypes.ab
    19 TypeDef VARIANT_BOOL = Integer ' WTypes.ab
    20 Const VARIANT_TRUE = (-1 As VARIANT_BOOL) ' WTypes.ab
    21 Const VARIANT_FALSE = (0 As VARIANT_BOOL) ' WTypes.ab
    2218TypeDef SCODE = Long
    23 TypeDef CY = Int64
    24 'Type /*Class*/ CY ' WTypes.ab
    25 'Public
    26 '   int64 As Int64
    27 /*
    28     Function Lo() As DWord
    29         Return GetDWord(VarPtr(int64))
    30     End Function
    31 
    32     Sub Lo(lo As DWord)
    33         SetDWord(VarPtr(int64), lo)
    34     End Sub
    35 
    36     Function Hi() As Long
    37         Return GetDWord(VarPtr(int64) + SizeOf (DWord)) As Long
    38     End Function
    39 
    40     Sub Lo(lo As Long)
    41         SetDWord(VarPtr(int64) + SizeOf (DWord, lo As DWord))
    42     End Sub
    43 */
    44 'End Type'Class
    45 
    46 Const DECIMAL_NEG = (&h80 As Byte) 'WTypes.ab
    47 
    48 Type /*Class*/ DECIMAL 'WTypes.ab
    49 'Public
    50     wReserved As Word
    51     signscale As Word
    52     Hi32 As DWord
    53     Lo64 As QWord
    54 /*
    55     Function scale() As Byte
    56         Return GetByte(VarPtr(signscale))
    57     End Function
    58 
    59     Sub scale(s As Byte)
    60         SetByte(VarPtr(signscale), s)
    61     End Sub
    62 
    63     Function sign() As Byte
    64         Return GetByte(VarPtr(signscale) + SizeOf (Byte))
    65     End Function
    66 
    67     Sub sign(s As Byte)
    68         SetByte(VarPtr(signscale) + SizeOf (Byte), s)
    69     End Sub
    70 
    71     Function Lo32() As DWord
    72         Return GetDWord(VarPtr(Lo64) As *DWord)
    73     End Function
    74 
    75     Sub Lo32(l As DWord)
    76         SetDWord(VarPtr(Lo64) As *DWord, l)
    77     End Sub
    78 
    79     Function Mid32() As DWord
    80         Return GetDWord(VarPtr(Lo64) As *DWord)
    81     End Function
    82 
    83     Sub Mid32(m As DWord)
    84         SetDWord(VarPtr(Lo64) As *DWord + SizeOf (DWord), m)
    85     End Sub
    86 */
    87 End Type ' Class
    88 
    89 TypeDef DATE = Double ' WTypes.ab
    9019
    9120/* interface IOleAutomationTypes */
     
    15786Const FADF_VARIANT = &h800
    15887Const FADF_RESERVED = &hf008
    159 
    160 Const Enum VARENUM 'WTypes.idl
    161     VT_EMPTY    = 0
    162     VT_NULL = 1
    163     VT_I2   = 2
    164     VT_I4   = 3
    165     VT_R4   = 4
    166     VT_R8   = 5
    167     VT_CY   = 6
    168     VT_DATE = 7
    169     VT_BSTR = 8
    170     VT_DISPATCH = 9
    171     VT_ERROR    = 10
    172     VT_BOOL = 11
    173     VT_VARIANT  = 12
    174     VT_UNKNOWN  = 13
    175     VT_DECIMAL  = 14
    176     VT_I1   = 16
    177     VT_UI1  = 17
    178     VT_UI2  = 18
    179     VT_UI4  = 19
    180     VT_I8   = 20
    181     VT_UI8  = 21
    182     VT_INT  = 22
    183     VT_UINT = 23
    184     VT_VOID = 24
    185     VT_HRESULT  = 25
    186     VT_PTR  = 26
    187     VT_SAFEARRAY    = 27
    188     VT_CARRAY   = 28
    189     VT_USERDEFINED  = 29
    190     VT_LPSTR    = 30
    191     VT_LPWSTR   = 31
    192     VT_RECORD   = 36
    193     VT_INT_PTR  = 37
    194     VT_UINT_PTR = 38
    195     VT_FILETIME = 64
    196     VT_BLOB = 65
    197     VT_STREAM   = 66
    198     VT_STORAGE  = 67
    199     VT_STREAMED_OBJECT  = 68
    200     VT_STORED_OBJECT    = 69
    201     VT_BLOB_OBJECT  = 70
    202     VT_CF   = 71
    203     VT_CLSID    = 72
    204     VT_VERSIONED_STREAM = 73
    205     VT_BSTR_BLOB    = &hfff
    206     VT_VECTOR   = &h1000
    207     VT_ARRAY    = &h2000
    208     VT_BYREF    = &h4000
    209     VT_RESERVED = &h8000
    210     VT_ILLEGAL  = &hffff
    211     VT_ILLEGALMASKED    = &hfff
    212     VT_TYPEMASK = &hfff
    213 End Enum
    21488
    21589Type /*Class*/ VARIANT
Note: See TracChangeset for help on using the changeset viewer.