source: branch/egtra-gdiplus/guiddef.ab@ 406

Last change on this file since 406 was 170, checked in by イグトランス (egtra), 18 years ago

winnt.ab, windef.ab, guiddef.abを導入

File size: 1.1 KB
Line 
1' guiddef.ab
2
3Type GUID
4 Data1 As DWord
5 Data2 As Word
6 Data3 As Word
7 Data4[7] As Byte
8End Type
9
10Dim GUID_NULL = [0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0]] As GUID
11
12TypeDef IID = GUID
13TypeDef CLSID = GUID
14TypeDef FMTID = GUID
15
16'Dim IID_NULL = GUID_NULL
17'Dim CLSID_NULL = GUID_NULL
18'Dim FMTID_NULL = GUID_NULL
19
20Function IsEqualGUID(ByRef x As GUID, ByRef y As GUID) As BOOL
21 IsEqualGUID = (memcmp(VarPtr(x), VarPtr(y), SizeOf (GUID)) = 0)
22End Function
23
24Function IsEqualIID(ByRef x As IID, ByRef y As IID) As BOOL
25 IsEqualIID = (memcmp(VarPtr(x), VarPtr(y), SizeOf (IID)) = 0)
26End Function
27
28Function IsEqualCLSID(ByRef x As CLSID, ByRef y As CLSID) As BOOL
29 IsEqualCLSID = (memcmp(VarPtr(x), VarPtr(y), SizeOf (CLSID)) = 0)
30End Function
31
32#ifndef _SYS_GUID_OPERATOR_EQ_
33#ifdef _NO_SYS_GUID_OPERATOR_EQ_
34#define _SYS_GUID_OPERATOR_EQ_
35/*
36Function Operator ==(ByRef x As GUID, ByRef y As GUID) As Boolean
37 Return IsEqualGUID(x, y) <> FALSE
38End Function
39
40Function Operator <>(ByRef x As GUID, ByRef y As GUID) As Boolean
41 Return IsEqualGUID(x, y) = FALSE
42End Function
43*/
44#endif
45#endif
Note: See TracBrowser for help on using the repository browser.