Mobile API Reference  MicroStrategy 2019
Msi_oleauto.h
Go to the documentation of this file.
1 // File: oleauto.h
2 // Date: 01/08/2001
3 // Author: Yuling Ma
4 //
5 // Copyright (C) 2001 MicroStrategy Incorporated
6 // All rights reserved
7 
8 // This header file stands in for the standard 'oleauto.h' header file used in VC++
9 // We make minimal effort to declare symbols and functions in the same file as
10 // used in Windows.
11 
12 
13 #if !defined( _OLEAUTO_H_ )
14 #define _OLEAUTO_H_
15 
16 #include "MsiCOM/MsiCOM/MsiCOM.h"
17 #include "PDCHeader/PDCwtypes.h"
18 #include "MsiCOM/MsiCOM/Msi_bstr.h"
20 
21 // Definition of the OLE Automation APIs, and macros.
22 
23 //#ifdef _OLEAUT32_
24 /*
25 #define WINOLEAUTAPI STDAPI
26 #define WINOLEAUTAPI_(type) STDAPI_(type)
27 */
28 /*#else
29 #define WINOLEAUTAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
30 #define WINOLEAUTAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
31 #endif
32 */
33 
34 /*---------------------------------------------------------------------*/
35 /* BSTR API */
36 /*---------------------------------------------------------------------*/
37 /*
38 WINOLEAUTAPI_(BSTR) SysAllocString(const OLECHAR *);
39 WINOLEAUTAPI_(INT) SysReAllocString(BSTR *, const OLECHAR *);
40 WINOLEAUTAPI_(BSTR) SysAllocStringLen(const OLECHAR *, UINT);
41 WINOLEAUTAPI_(INT) SysReAllocStringLen(BSTR *, const OLECHAR *, UINT);
42 WINOLEAUTAPI_(void) SysFreeString(BSTR);
43 WINOLEAUTAPI_(UINT) SysStringLen(BSTR);
44 
45 #ifdef _WIN32
46 WINOLEAUTAPI_(UINT) SysStringByteLen(BSTR bstr);
47 WINOLEAUTAPI_(BSTR) SysAllocStringByteLen(LPCSTR psz, UINT len);
48 #endif
49 
50 */
51 
52 /* Flags for IDispatch::Invoke */
53 #define DISPATCH_METHOD 0x1
54 #define DISPATCH_PROPERTYGET 0x2
55 #define DISPATCH_PROPERTYPUT 0x4
56 #define DISPATCH_PROPERTYPUTREF 0x8
57 
58 // ============================================================================
59 // ErrorInfo API
60 
62 WINOLEAUTAPI DLL_MSICOM_EXIM GetErrorInfo(ULONG dwReserved, IErrorInfo ** pperrinfo);
64 
65 /*---------------------------------------------------------------------*/
66 /* SafeArray API */
67 /*---------------------------------------------------------------------*/
68 
79 WINOLEAUTAPI_(UINT) DLL_MSICOM_EXIM SafeArrayGetDim(SAFEARRAY * psa);
80 WINOLEAUTAPI_(UINT) DLL_MSICOM_EXIM SafeArrayGetElemsize(SAFEARRAY * psa);
87 WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetElement(SAFEARRAY * psa, LONG * rgIndices, void * pv);
88 WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayPutElement(SAFEARRAY * psa, LONG * rgIndices, void * pv);
90 WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayPtrOfIndex(SAFEARRAY * psa, LONG * rgIndices, void ** ppvData);
100 
101 #endif /* _OLEAUTO_H_ */
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetElement(SAFEARRAY *psa, LONG *rgIndices, void *pv)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayPtrOfIndex(SAFEARRAY *psa, LONG *rgIndices, void **ppvData)
#define REFGUID
Definition: PDCwtypes.h:318
Definition: Msi_oaidl.h:189
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayUnaccessData(SAFEARRAY *psa)
Definition: Msi_oaidl.h:87
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayDestroy(SAFEARRAY *psa)
Definition: Msi_oaidl.h:163
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArraySetIID(SAFEARRAY *psa, REFGUID guid)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayDestroyData(SAFEARRAY *psa)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayAllocData(SAFEARRAY *psa)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayAllocDescriptorEx(VARTYPE vt, UINT cDims, SAFEARRAY **ppsaOut)
EXTERN_C DLL_MSICOM_EXIM SAFEARRAY *STDAPICALLTYPE SafeArrayCreateEx(VARTYPE vt, UINT cDims, SAFEARRAYBOUND *rgsabound, PVOID pvExtra)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayCopy(SAFEARRAY *psa, SAFEARRAY **ppsaOut)
WINOLEAUTAPI_(UINT) DLL_MSICOM_EXIM SafeArrayGetDim(SAFEARRAY *psa)
EXTERN_C DLL_MSICOM_EXIM SAFEARRAY *STDAPICALLTYPE SafeArrayCreate(VARTYPE vt, UINT cDims, SAFEARRAYBOUND *rgsabound)
unsigned int UINT
Definition: PDCwtypes.h:110
unsigned short VARTYPE
Definition: Msi_variant.h:32
#define STDAPICALLTYPE
Definition: PDCwtypes.h:79
WINOLEAUTAPI DLL_MSICOM_EXIM SetErrorInfo(ULONG dwReserved, IErrorInfo *perrinfo)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayCopyData(SAFEARRAY *psaSource, SAFEARRAY *psaTarget)
Definition: Msi_oaidl.h:95
WINOLEAUTAPI DLL_MSICOM_EXIM GetErrorInfo(ULONG dwReserved, IErrorInfo **pperrinfo)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayDestroyDescriptor(SAFEARRAY *psa)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayLock(SAFEARRAY *psa)
WINOLEAUTAPI DLL_MSICOM_EXIM CreateErrorInfo(ICreateErrorInfo **pperrinfo)
EXTERN_C DLL_MSICOM_EXIM SAFEARRAY *STDAPICALLTYPE SafeArrayCreateVector(VARTYPE vt, LONG lLbound, ULONG cElements)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayRedim(SAFEARRAY *psa, SAFEARRAYBOUND *psaboundNew)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayPutElement(SAFEARRAY *psa, LONG *rgIndices, void *pv)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArraySetRecordInfo(SAFEARRAY *psa, IRecordInfo *prinfo)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetIID(SAFEARRAY *psa, GUID *pguid)
#define HUGEP
Definition: Msi_objbase.h:90
long LONG
Definition: PDCwtypes.h:119
void __RPC_FAR * PVOID
Definition: PDCwtypes.h:149
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetVartype(SAFEARRAY *psa, VARTYPE *pvt)
WINOLEAUTAPI DLL_MSICOM_EXIM MSTRSafeArrayDestroy(SAFEARRAY *psa)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetRecordInfo(SAFEARRAY *psa, IRecordInfo **prinfo)
#define DLL_MSICOM_EXIM
Definition: MsiCOM.h:19
#define WINOLEAUTAPI
Definition: Msi_bstr.h:21
#define EXTERN_C
Definition: PDCwtypes.h:62
Definition: Msi_oaidl.h:712
EXTERN_C DLL_MSICOM_EXIM SAFEARRAY *STDAPICALLTYPE MSTRSafeArrayCreateVector(VARTYPE vt, LONG lLbound, ULONG cElements)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetLBound(SAFEARRAY *psa, UINT nDim, LONG *plLbound)
EXTERN_C DLL_MSICOM_EXIM SAFEARRAY *STDAPICALLTYPE SafeArrayCreateVectorEx(VARTYPE vt, LONG lLbound, ULONG cElements, PVOID pvExtra)
DWORD ULONG
Definition: PDCwtypes.h:127
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayAllocDescriptor(UINT cDims, SAFEARRAY **ppsaOut)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayAccessData(SAFEARRAY *psa, void HUGEP **ppvData)
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayUnlock(SAFEARRAY *psa)
Definition: Base/Base/GUID.h:32
WINOLEAUTAPI DLL_MSICOM_EXIM SafeArrayGetUBound(SAFEARRAY *psa, UINT nDim, LONG *plUbound)