Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4fcd6d0f
Commit
4fcd6d0f
authored
Jan 24, 1999
by
Sylvain St.Germain
Committed by
Alexandre Julliard
Jan 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of the SafeArray family functions.
parent
c66f5d59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
141 additions
and
18 deletions
+141
-18
oleauto.h
include/oleauto.h
+119
-0
winerror.h
include/winerror.h
+3
-0
Makefile.in
ole/Makefile.in
+1
-0
safearray.c
ole/safearray.c
+0
-0
oleaut32.spec
relay32/oleaut32.spec
+18
-18
No files found.
include/oleauto.h
View file @
4fcd6d0f
...
@@ -26,6 +26,125 @@ int WINAPI SysStringLen32(BSTR32);
...
@@ -26,6 +26,125 @@ int WINAPI SysStringLen32(BSTR32);
typedef
void
ITypeLib
;
typedef
void
ITypeLib
;
typedef
ITypeLib
*
LPTYPELIB
;
typedef
ITypeLib
*
LPTYPELIB
;
/*****************************************************************
* SafeArray defines and structs
*/
#define FADF_AUTO ( 0x1 )
#define FADF_STATIC ( 0x2 )
#define FADF_EMBEDDED ( 0x4 )
#define FADF_FIXEDSIZE ( 0x10 )
#define FADF_BSTR ( 0x100 )
#define FADF_UNKNOWN ( 0x200 )
#define FADF_DISPATCH ( 0x400 )
#define FADF_VARIANT ( 0x800 )
#define FADF_RESERVED ( 0xf0e8 )
typedef
struct
tagSAFEARRAYBOUND
{
ULONG
cElements
;
/* Number of elements in dimension */
LONG
lLbound
;
/* Lower bound of dimension */
}
SAFEARRAYBOUND
;
typedef
struct
tagSAFEARRAY
{
USHORT
cDims
;
/* Count of array dimension */
USHORT
fFeatures
;
/* Flags describing the array */
ULONG
cbElements
;
/* Size of each element */
ULONG
cLocks
;
/* Number of lock on array */
PVOID
pvData
;
/* Pointer to data valid when cLocks > 0 */
SAFEARRAYBOUND
rgsabound
[
1
];
/* One bound for each dimension */
}
SAFEARRAY
;
/*****************************************************************
* SafeArray API
*/
HRESULT
WINAPI
SafeArrayAllocDescriptor32
(
UINT32
cDims
,
SAFEARRAY
**
ppsaOut
);
#define SafeArrayAllocDescriptor WINELIB_NAME(SafeArrayAllocDescriptor)
HRESULT
WINAPI
SafeArrayAllocData32
(
SAFEARRAY
*
psa
);
#define SafeArrayAllocData WINELIB_NAME(SafeArrayAllocData)
SAFEARRAY
*
WINAPI
SafeArrayCreate32
(
VARTYPE
vt
,
UINT32
cDims
,
SAFEARRAYBOUND
*
rgsabound
);
#define SafeArrayCreate WINELIB_NAME(SafeArrayCreate)
HRESULT
WINAPI
SafeArrayDestroyDescriptor32
(
SAFEARRAY
*
psa
);
#define SafeArrayDestroyDescriptor WINELIB_NAME(SafeArrayDestroyDescriptor)
HRESULT
WINAPI
SafeArrayPutElement32
(
SAFEARRAY
*
psa
,
LONG
*
rgIndices
,
void
*
pv
);
#define SafeArrayPutElement WINELIB_NAME(SafeArrayPutElement)
HRESULT
WINAPI
SafeArrayGetElement32
(
SAFEARRAY
*
psa
,
LONG
*
rgIndices
,
void
*
pv
);
#define SafeArrayGetElement WINELIB_NAME(SafeArrayGetElement)
HRESULT
WINAPI
SafeArrayLock32
(
SAFEARRAY
*
psa
);
#define SafeArrayLock WINELIB_NAME(SafeArrayLock)
HRESULT
WINAPI
SafeArrayUnlock32
(
SAFEARRAY
*
psa
);
#define SafeArrayUnlock WINELIB_NAME(SafeArrayUnlock)
HRESULT
WINAPI
SafeArrayGetUBound32
(
SAFEARRAY
*
psa
,
UINT32
nDim
,
LONG
*
plUbound
);
#define SafeArrayGetUBound WINELIB_NAME(SafeArrayGetUBound)
HRESULT
WINAPI
SafeArrayGetLBound32
(
SAFEARRAY
*
psa
,
UINT32
nDim
,
LONG
*
plLbound
);
#define SafeArrayGetLBound WINELIB_NAME(SafeArrayGetLBound)
UINT32
WINAPI
SafeArrayGetDim32
(
SAFEARRAY
*
psa
);
#define SafeArrayGetDim WINELIB_NAME(SafeArrayGetDim)
UINT32
WINAPI
SafeArrayGetElemsize32
(
SAFEARRAY
*
psa
);
#define SafeArrayGetElemsize WINELIB_NAME(SafeArrayGetElemsize)
HRESULT
WINAPI
SafeArrayAccessData32
(
SAFEARRAY
*
psa
,
void
**
ppvData
);
#define SafeArrayAccessData WINELIB_NAME(SafeArrayAccessData)
HRESULT
WINAPI
SafeArrayUnaccessData32
(
SAFEARRAY
*
psa
);
#define SafeArrayUnaccessData WINELIB_NAME(SafeArrayUnaccessData)
HRESULT
WINAPI
SafeArrayPtrOfIndex32
(
SAFEARRAY
*
psa
,
LONG
*
rgIndices
,
void
**
ppvData
);
#define SafeArrayPtrOfIndex WINELIB_NAME(SafeArrayPtrOfIndex)
HRESULT
WINAPI
SafeArrayCopyData32
(
SAFEARRAY
*
psaSource
,
SAFEARRAY
**
psaTarget
);
#define SafeArrayCopyData WINELIB_NAME(SafeArrayCopyData)
HRESULT
WINAPI
SafeArrayDestroyData32
(
SAFEARRAY
*
psa
);
#define SafeArrayDestroyData WINELIB_NAME(SafeArrayDestroyData)
HRESULT
WINAPI
SafeArrayDestroy32
(
SAFEARRAY
*
psa
);
#define SafeArrayDestroy WINELIB_NAME(SafeArrayDestroy)
HRESULT
WINAPI
SafeArrayCopy32
(
SAFEARRAY
*
psa
,
SAFEARRAY
**
ppsaOut
);
#define SafeArrayCopy WINELIB_NAME(SafeArrayCopy)
SAFEARRAY
*
WINAPI
SafeArrayCreateVector32
(
VARTYPE
vt
,
LONG
lLbound
,
ULONG
cElements
);
#define SafeArrayCreateVector WINELIB_NAME(SafeArrayCreateVector)
HRESULT
WINAPI
SafeArrayRedim32
(
SAFEARRAY
*
psa
,
SAFEARRAYBOUND
*
psaboundNew
);
#define SafeArrayRedim WINELIB_NAME(SafeArrayRedim)
/*
/*
* Data types for Variants.
* Data types for Variants.
...
...
include/winerror.h
View file @
4fcd6d0f
...
@@ -152,6 +152,9 @@ extern int WIN32_LastError;
...
@@ -152,6 +152,9 @@ extern int WIN32_LastError;
#define DISP_E_BADVARTYPE 0x80020008L
#define DISP_E_BADVARTYPE 0x80020008L
#define DISP_E_OVERFLOW 0x8002000AL
#define DISP_E_OVERFLOW 0x8002000AL
#define DISP_E_TYPEMISMATCH 0x80020005L
#define DISP_E_TYPEMISMATCH 0x80020005L
#define DISP_E_ARRAYISLOCKED 0x8002000D
#define DISP_E_BADINDEX 0x8002000B
/* Drag and Drop */
/* Drag and Drop */
...
...
ole/Makefile.in
View file @
4fcd6d0f
...
@@ -18,6 +18,7 @@ C_SRCS = \
...
@@ -18,6 +18,7 @@ C_SRCS = \
oleobj.c
\
oleobj.c
\
olesvr.c
\
olesvr.c
\
parsedt.c
\
parsedt.c
\
safearray.c
\
storage.c
\
storage.c
\
typelib.c
\
typelib.c
\
variant.c
variant.c
...
...
ole/safearray.c
0 → 100644
View file @
4fcd6d0f
This diff is collapsed.
Click to expand it.
relay32/oleaut32.spec
View file @
4fcd6d0f
...
@@ -15,19 +15,19 @@ type win32
...
@@ -15,19 +15,19 @@ type win32
12 stdcall VariantChangeType(ptr ptr) VariantChangeType32
12 stdcall VariantChangeType(ptr ptr) VariantChangeType32
13 stub VariantTimeToDosDateTime
13 stub VariantTimeToDosDateTime
14 stub DosDateTimeToVariantTime
14 stub DosDateTimeToVariantTime
15 st
ub SafeArrayCreate
15 st
dcall SafeArrayCreate(long long ptr) SafeArrayCreate32
16 st
ub SafeArrayDestroy
16 st
dcall SafeArrayDestroy(ptr) SafeArrayDestroy32
17 st
ub SafeArrayGetDim
17 st
dcall SafeArrayGetDim(ptr) SafeArrayGetDim32
18 st
ub SafeArrayGetElemsize
18 st
dcall SafeArrayGetElemsize(ptr) SafeArrayGetElemsize32
19 st
ub SafeArrayGetUBound
19 st
dcall SafeArrayGetUBound(ptr long long) SafeArrayGetUBound32
20 st
ub SafeArrayGetLBound
20 st
dcall SafeArrayGetLBound(ptr long long) SafeArrayGetLBound32
21 st
ub SafeArrayLock
21 st
dcall SafeArrayLock(ptr) SafeArrayLock32
22 st
ub SafeArrayUnlock
22 st
dcall SafeArrayUnlock(ptr) SafeArrayUnlock32
23 st
ub SafeArrayAccessData
23 st
dcall SafeArrayAccessData(ptr ptr) SafeArrayAccessData32
24 st
ub SafeArrayUnaccessData
24 st
dcall SafeArrayUnaccessData(ptr) SafeArrayUnaccessData32
25 st
ub SafeArrayGetElement
25 st
dcall SafeArrayGetElement(ptr ptr ptr) SafeArrayGetElement32
26 st
ub SafeArrayPutElement
26 st
dcall SafeArrayPutElement(ptr ptr ptr) SafeArrayPutElement32
27 st
ub SafeArrayCopy
27 st
dcall SafeArrayCopy(ptr ptr) SafeArrayCopy32
28 stub DispGetParam
28 stub DispGetParam
29 stub DispGetIDsOfNames
29 stub DispGetIDsOfNames
30 stub DispInvoke
30 stub DispInvoke
...
@@ -36,11 +36,11 @@ type win32
...
@@ -36,11 +36,11 @@ type win32
33 stub RegisterActiveObject
33 stub RegisterActiveObject
34 stub RevokeActiveObject
34 stub RevokeActiveObject
35 stub GetActiveObject
35 stub GetActiveObject
36 st
ub SafeArrayAllocDescriptor
36 st
dcall SafeArrayAllocDescriptor(long ptr) SafeArrayAllocDescriptor32
37 st
ub SafeArrayAllocData
37 st
dcall SafeArrayAllocData(ptr) SafeArrayAllocData32
38 st
ub SafeArrayDestroyDescriptor
38 st
dcall SafeArrayDestroyDescriptor(ptr) SafeArrayDestroyDescriptor32
39 st
ub SafeArrayDestroyData
39 st
dcall SafeArrayDestroyData(ptr) SafeArrayDestroyData32
40 st
ub SafeArrayRedim
40 st
dcall SafeArrayRedim(ptr ptr) SafeArrayRedim32
41 stub OACreateTypeLib2
41 stub OACreateTypeLib2
46 stub VarParseNumFromStr
46 stub VarParseNumFromStr
47 stub VarNumFromParseNum
47 stub VarNumFromParseNum
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment