Schnittstelle OleAuto
- Alle Superschnittstellen:
AltCallingConvention
,Library
,StdCall
,StdCallLibrary
- Autor:
- scott.palmer
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic class
The Class DISPPARAMS.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Library
Library.Handler
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.win32.StdCallLibrary
StdCallLibrary.StdCallCallback
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
The Constant DISPATCH_METHOD.static final int
The Constant DISPATCH_PROPERTYGET.static final int
The Constant DISPATCH_PROPERTYPUT.static final int
The Constant DISPATCH_PROPERTYPUTREF.static final int
An array that is allocated on the stac.static final int
An array of BSTRs.static final int
An array of IDispatch*.static final int
An array that is embedded in a structure.static final int
An array that is embedded in a structure.static final int
An array that is embedded in a structure.static final int
An array that has a variant type.static final int
An array that is embedded in a structure.static final int
Bits reserved for future use.static final int
An array that is statically allocated.static final int
An array of IUnknown*.static final int
An array of VARIANTs.static final OleAuto
The instance.static final short
For VT_BOOL to VT_BSTR conversions, convert to "True"/"False" instead of "-1"/"0"static final short
SOUTHASIA calendar supportstatic final short
static final short
SOUTHASIA calendar supportstatic final short
For VT_BOOL to VT_BSTR and back, convert to local language rather than Englishstatic final short
For conversions to/from VT_BSTR, passes LOCALE_NOUSEROVERRIDE to core coercion routinesstatic final short
static final short
NLS function call supportVon Schnittstelle geerbte Felder com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
Von Schnittstelle geerbte Felder com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGetActiveObject
(Guid.GUID rclsid, WinDef.PVOID pvReserved, PointerByReference ppunk) Retrieves a pointer to a running object that has been registered with OLE.LoadRegTypeLib
(Guid.GUID rguid, int wVerMajor, int wVerMinor, WinDef.LCID lcid, PointerByReference pptlib) Uses registry information to load a type library.LoadTypeLib
(String szFile, PointerByReference pptlib) Loads and registers a type library.SafeArrayAccessData
(OaIdl.SAFEARRAY psa, PointerByReference ppvData) Lock array and retrieve pointer to dataSafeArrayCreate
(WTypes.VARTYPE vt, WinDef.UINT cDims, OaIdl.SAFEARRAYBOUND[] rgsabound) Creates a new array descriptor, allocates and initializes the data for the array, and returns a pointer to the new array descriptor.Destroys an existing array descriptor and all of the data in the array.Return number of dimensions of the SAFEARRAYSafeArrayGetElement
(OaIdl.SAFEARRAY psa, WinDef.LONG[] rgIndices, Pointer pv) Retrieves a single element of the array.Get size of one element in bytesSafeArrayGetLBound
(OaIdl.SAFEARRAY psa, WinDef.UINT nDim, WinDef.LONGByReference bound) Retrieve the lower bound for the specified dimension of the supplied arraySafeArrayGetUBound
(OaIdl.SAFEARRAY psa, WinDef.UINT nDim, WinDef.LONGByReference bound) Retrieve the upper bound for the specified dimension of the supplied arrayReturn VARTYPE of the SAFEARRAYIncrements the lock count of an array, and places a pointer to the array data in pvData of the array descriptor.SafeArrayPtrOfIndex
(OaIdl.SAFEARRAY psa, WinDef.LONG[] rgIndices, PointerByReference ppv) Retrieves the pointer to a single element of the array.SafeArrayPutElement
(OaIdl.SAFEARRAY psa, WinDef.LONG[] idx, Pointer pv) Stores the data element at the specified location in the array.SafeArrayRedim
(OaIdl.SAFEARRAY psa, OaIdl.SAFEARRAYBOUND psaboundNew) Changes the right-most (least significant) bound of the specified safe array.Unlock array and invalidate the pointer retrieved via SafeArrayAccessDataDecrements the lock count of an array so it can be freed or resized.SysAllocString
(String sz) This function allocates a new string and copies the passed string into it.void
SysFreeString
(WTypes.BSTR bstr) This function frees a string allocated previously by SysAllocString, SysAllocStringByteLen, SysReAllocString, SysAllocStringLen, or SysReAllocStringLen.int
SysStringByteLen
(WTypes.BSTR bstr) Returns the length (in bytes) of a BSTR.int
SysStringLen
(WTypes.BSTR bstr) Returns the length of a BSTR.int
SystemTimeToVariantTime
(WinBase.SYSTEMTIME lpSystemTime, DoubleByReference pvtime) Converts a system time to a variant representation.VariantChangeType
(Variant.VARIANT.ByReference pvargDest, Variant.VARIANT.ByReference pvarSrc, short wFlags, WTypes.VARTYPE vt) Converts a variant from one type to another.VariantChangeType
(Variant.VARIANT pvargDest, Variant.VARIANT pvarSrc, short wFlags, WTypes.VARTYPE vt) Converts a variant from one type to another.VariantClear
(Variant.VARIANT pvarg) Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory containing the VARIANTARG is freed (as when a local variable goes out of scope).VariantCopy
(Pointer pvargDest, Variant.VARIANT pvargSrc) First, free any memory that is owned by pvargDest, such as VariantClear (pvargDest must point to a valid initialized variant, and not simply to an uninitialized memory location).void
VariantInit
(Variant.VARIANT pvarg) The VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY.void
The VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY.int
VariantTimeToSystemTime
(double vtime, WinBase.SYSTEMTIME lpSystemTime) Converts a variant representation of time to a system time.
-
Felddetails
-
INSTANCE
The instance. -
DISPATCH_METHOD
static final int DISPATCH_METHODThe Constant DISPATCH_METHOD.- Siehe auch:
-
DISPATCH_PROPERTYGET
static final int DISPATCH_PROPERTYGETThe Constant DISPATCH_PROPERTYGET.- Siehe auch:
-
DISPATCH_PROPERTYPUT
static final int DISPATCH_PROPERTYPUTThe Constant DISPATCH_PROPERTYPUT.- Siehe auch:
-
DISPATCH_PROPERTYPUTREF
static final int DISPATCH_PROPERTYPUTREFThe Constant DISPATCH_PROPERTYPUTREF.- Siehe auch:
-
FADF_AUTO
static final int FADF_AUTOAn array that is allocated on the stac.- Siehe auch:
-
FADF_STATIC
static final int FADF_STATICAn array that is statically allocated.- Siehe auch:
-
FADF_EMBEDDED
static final int FADF_EMBEDDEDAn array that is embedded in a structure.- Siehe auch:
-
FADF_FIXEDSIZE
static final int FADF_FIXEDSIZEAn array that is embedded in a structure.- Siehe auch:
-
FADF_RECORD
static final int FADF_RECORDAn array that is embedded in a structure.- Siehe auch:
-
FADF_HAVEIID
static final int FADF_HAVEIIDAn array that is embedded in a structure.- Siehe auch:
-
FADF_HAVEVARTYPE
static final int FADF_HAVEVARTYPEAn array that has a variant type. The variant type can be retrieved with SafeArrayGetVartype.- Siehe auch:
-
FADF_BSTR
static final int FADF_BSTRAn array of BSTRs.- Siehe auch:
-
FADF_UNKNOWN
static final int FADF_UNKNOWNAn array of IUnknown*.- Siehe auch:
-
FADF_DISPATCH
static final int FADF_DISPATCHAn array of IDispatch*.- Siehe auch:
-
FADF_VARIANT
static final int FADF_VARIANTAn array of VARIANTs.- Siehe auch:
-
FADF_RESERVED
static final int FADF_RESERVEDBits reserved for future use.- Siehe auch:
-
VARIANT_NOVALUEPROP
static final short VARIANT_NOVALUEPROP- Siehe auch:
-
VARIANT_ALPHABOOL
static final short VARIANT_ALPHABOOLFor VT_BOOL to VT_BSTR conversions, convert to "True"/"False" instead of "-1"/"0"- Siehe auch:
-
VARIANT_NOUSEROVERRIDE
static final short VARIANT_NOUSEROVERRIDEFor conversions to/from VT_BSTR, passes LOCALE_NOUSEROVERRIDE to core coercion routines- Siehe auch:
-
VARIANT_CALENDAR_HIJRI
static final short VARIANT_CALENDAR_HIJRI- Siehe auch:
-
VARIANT_LOCALBOOL
static final short VARIANT_LOCALBOOLFor VT_BOOL to VT_BSTR and back, convert to local language rather than English- Siehe auch:
-
VARIANT_CALENDAR_THAI
static final short VARIANT_CALENDAR_THAISOUTHASIA calendar support- Siehe auch:
-
VARIANT_CALENDAR_GREGORIAN
static final short VARIANT_CALENDAR_GREGORIANSOUTHASIA calendar support- Siehe auch:
-
VARIANT_USE_NLS
static final short VARIANT_USE_NLSNLS function call support- Siehe auch:
-
-
Methodendetails
-
SysAllocString
This function allocates a new string and copies the passed string into it.- Parameter:
sz
- Null-terminated UNICODE string to copy.- Gibt zurück:
- Null if there is insufficient memory or if a null pointer is passed in.
-
SysFreeString
This function frees a string allocated previously by SysAllocString, SysAllocStringByteLen, SysReAllocString, SysAllocStringLen, or SysReAllocStringLen.- Parameter:
bstr
- Unicode string that was allocated previously, or NULL. Setting this parameter to NULL causes the function to simply return.
-
SysStringByteLen
Returns the length (in bytes) of a BSTR.- Parameter:
bstr
- Unicode string that was allocated previously.
-
SysStringLen
Returns the length of a BSTR.- Parameter:
bstr
- Unicode string that was allocated previously.
-
VariantInit
The VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY. Unlike VariantClear, this function does not interpret the current contents of the VARIANTARG. Use VariantInit to initialize new local variables of type VARIANTARG (or VARIANT).- Parameter:
pvarg
- The variant to initialize.
-
VariantInit
The VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY. Unlike VariantClear, this function does not interpret the current contents of the VARIANTARG. Use VariantInit to initialize new local variables of type VARIANTARG (or VARIANT).- Parameter:
pvarg
- The variant to initialize.
-
VariantCopy
First, free any memory that is owned by pvargDest, such as VariantClear (pvargDest must point to a valid initialized variant, and not simply to an uninitialized memory location). Then pvargDest receives an exact copy of the contents of pvargSrc.If pvargSrc is a VT_BSTR, a copy of the string is made. If pvargSrcis a VT_ARRAY, the entire array is copied. If pvargSrc is a VT_DISPATCH or VT_UNKNOWN, AddRef is called to increment the object's reference count.
If the variant to be copied is a COM object that is passed by reference, the vtfield of the pvargSrcparameter is VT_DISPATCH | VT_BYREF or VT_UNKNOWN | VT_BYREF. In this case, VariantCopy does not increment the reference count on the referenced object. Because the variant being copied is a pointer to a reference to an object, VariantCopy has no way to determine if it is necessary to increment the reference count of the object. It is therefore the responsibility of the caller to call IUnknown::AddRef on the object or not, as appropriate.
Note The VariantCopy method is not threadsafe.
- Parameter:
pvargDest
- [out] The destination variant.pvargSrc
- [in] The source variant.- Gibt zurück:
- the hresult
-
VariantClear
Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory containing the VARIANTARG is freed (as when a local variable goes out of scope).The function clears a VARIANTARG by setting the vt field to VT_EMPTY. The current contents of the VARIANTARG are released first. If the vtfield is VT_BSTR, the string is freed. If the vtfield is VT_DISPATCH, the object is released. If the vt field has the VT_ARRAY bit set, the array is freed.
If the variant to be cleared is a COM object that is passed by reference, the vtfield of the pvargparameter is VT_DISPATCH | VT_BYREF or VT_UNKNOWN | VT_BYREF. In this case, VariantClear does not release the object. Because the variant being cleared is a pointer to a reference to an object, VariantClear has no way to determine if it is necessary to release the object. It is therefore the responsibility of the caller to release the object or not, as appropriate.
In certain cases, it may be preferable to clear a variant in code without calling VariantClear. For example, you can change the type of a VT_I4 variant to another type without calling this function. Safearrays of BSTR will have SysFreeString called on each element not VariantClear. However, you must call VariantClear if a VT_type is received but cannot be handled. Safearrays of variant will also have VariantClear called on each member. Using VariantClear in these cases ensures that code will continue to work if Automation adds new variant types in the future.
Do not use VariantClear on unitialized variants; use VariantInit to initialize a new VARIANTARG or VARIANT.
Variants containing arrays with outstanding references cannot be cleared. Attempts to do so will return an HRESULT containing DISP_E_ARRAYISLOCKED.
- Parameter:
pvarg
- [in, out] The variant to clear.- Gibt zurück:
- the hresult
-
VariantChangeType
WinNT.HRESULT VariantChangeType(Variant.VARIANT pvargDest, Variant.VARIANT pvarSrc, short wFlags, WTypes.VARTYPE vt) Converts a variant from one type to another.- Parameter:
pvargDest
- [out] The destination variant. If this is the same as pvarSrc, the variant will be converted in place.pvarSrc
- [in] The variant to convert.wFlags
- Combination of the following flagsValue Meaning VARIANT_NOVALUEPROP
Prevents the function from attempting to coerce an object to a fundamental type by getting the Value property. Applications should set this flag only if necessary, because it makes their behavior inconsistent with other applications. VARIANT_ALPHABOOL
Converts a VT_BOOL
value to a string containing either "True" or "False".VARIANT_NOUSEROVERRIDE
For conversions to or from VT_BSTR
, passes LOCALE_NOUSEROVERRIDE to the core coercion routines.VARIANT_LOCALBOOL
For conversions from VT_BOOL
toVT_BSTR
and back, uses the language specified by the locale in use on the local computer.vt
- The type to convert to. If the return code isS_OK
, the vt field of the vargDest is guaranteed to be equal to this value.- Gibt zurück:
- This function can return one of these values:
Return code Description S_OK
Success. DISP_E_BADVARTYPE
The variant type is not a valid type of variant. DISP_E_OVERFLOW
The data pointed to by pvarSrc does not fit in the destination type. DISP_E_TYPEMISMATCH
The argument could not be coerced to the specified type. E_INVALIDARG
One of the arguments is not valid. E_OUTOFMEMORY
Insufficient memory to complete the operation. VT_BOOL
and the destination is of typeVT_UINT
, the pvarSrc argument is first converted toVT_I2
and then the conversion proceeds. A variant that hasVT_BYREF
set is coerced to a value by obtaining the referenced value. An object is coerced to a value by invoking the object's Value property (DISPID_VALUE
). Typically, the implementor ofIDispatch.Invoke
determines which member is being accessed, and then calls VariantChangeType to get the value of one or more arguments. For example, if the IDispatch call specifies a SetTitle member that takes one string argument, the implementor would call VariantChangeType to attempt to coerce the argument toVT_BSTR
. If VariantChangeType does not return an error, the argument could then be obtained directly from thebstrVal
field of theVARIANT
. If VariantChangeType returnsDISP_E_TYPEMISMATCH
, the implementor would setInvoke
puArgErr
parameter referenced value to 0 (indicating the argument in error) and return DISP_E_TYPEMISMATCH from Invoke. Arrays of one type cannot be converted to arrays of another type with this function. Note The type of aVARIANT
should not be changed in thergvarg
array in place.
-
VariantChangeType
WinNT.HRESULT VariantChangeType(Variant.VARIANT.ByReference pvargDest, Variant.VARIANT.ByReference pvarSrc, short wFlags, WTypes.VARTYPE vt) Converts a variant from one type to another.- Parameter:
pvargDest
- [out] The destination variant. If this is the same as pvarSrc, the variant will be converted in place.pvarSrc
- [in] The variant to convert.wFlags
- Combination of the following flagsValue Meaning VARIANT_NOVALUEPROP
Prevents the function from attempting to coerce an object to a fundamental type by getting the Value property. Applications should set this flag only if necessary, because it makes their behavior inconsistent with other applications. VARIANT_ALPHABOOL
Converts a VT_BOOL
value to a string containing either "True" or "False".VARIANT_NOUSEROVERRIDE
For conversions to or from VT_BSTR
, passes LOCALE_NOUSEROVERRIDE to the core coercion routines.VARIANT_LOCALBOOL
For conversions from VT_BOOL
toVT_BSTR
and back, uses the language specified by the locale in use on the local computer.vt
- The type to convert to. If the return code isS_OK
, the vt field of the vargDest is guaranteed to be equal to this value.- Gibt zurück:
- This function can return one of these values:
Return code Description S_OK
Success. DISP_E_BADVARTYPE
The variant type is not a valid type of variant. DISP_E_OVERFLOW
The data pointed to by pvarSrc does not fit in the destination type. DISP_E_TYPEMISMATCH
The argument could not be coerced to the specified type. E_INVALIDARG
One of the arguments is not valid. E_OUTOFMEMORY
Insufficient memory to complete the operation. VT_BOOL
and the destination is of typeVT_UINT
, the pvarSrc argument is first converted toVT_I2
and then the conversion proceeds. A variant that hasVT_BYREF
set is coerced to a value by obtaining the referenced value. An object is coerced to a value by invoking the object's Value property (DISPID_VALUE
). Typically, the implementor ofIDispatch.Invoke
determines which member is being accessed, and then calls VariantChangeType to get the value of one or more arguments. For example, if the IDispatch call specifies a SetTitle member that takes one string argument, the implementor would call VariantChangeType to attempt to coerce the argument toVT_BSTR
. If VariantChangeType does not return an error, the argument could then be obtained directly from thebstrVal
field of theVARIANT
. If VariantChangeType returnsDISP_E_TYPEMISMATCH
, the implementor would setInvoke
puArgErr
parameter referenced value to 0 (indicating the argument in error) and return DISP_E_TYPEMISMATCH from Invoke. Arrays of one type cannot be converted to arrays of another type with this function. Note The type of aVARIANT
should not be changed in thergvarg
array in place.
-
SafeArrayCreate
OaIdl.SAFEARRAY.ByReference SafeArrayCreate(WTypes.VARTYPE vt, WinDef.UINT cDims, OaIdl.SAFEARRAYBOUND[] rgsabound) Creates a new array descriptor, allocates and initializes the data for the array, and returns a pointer to the new array descriptor.- Parameter:
vt
- [in] The base type of the array (the VARTYPE of each element of the array). The VARTYPE is restricted to a subset of the variant types. Neither the VT_ARRAY nor the VT_BYREF flag can be set. VT_EMPTY and VT_NULL are not valid base types for the array. All other types are legal. cDimscDims
- the number of dimsrgsabound
- the rgsabound- Gibt zurück:
- Return value A safe array descriptor, or null if the array could not be created.
-
SafeArrayPutElement
Stores the data element at the specified location in the array.- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.idx
- the idxpv
- [in] The data to assign to the array. The variant types VT_DISPATCH, VT_UNKNOWN, and VT_BSTR are pointers, and do not require another level of indirection.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- DISP_E_BADINDEX
- The specified index is not valid.
- E_INVALIDARG
- One of the arguments is not valid.
- E_OUTOFMEMORY
- Memory could not be allocated for the element.
-
SafeArrayGetUBound
WinNT.HRESULT SafeArrayGetUBound(OaIdl.SAFEARRAY psa, WinDef.UINT nDim, WinDef.LONGByReference bound) Retrieve the upper bound for the specified dimension of the supplied array- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.nDim
- [in] the dimension, one basedbound
- [out] upper bound for the supplied dimension- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- DISP_E_BADINDEX
- The specified index is not valid.
- E_INVALIDARG
- One of the arguments is not valid.
-
SafeArrayGetLBound
WinNT.HRESULT SafeArrayGetLBound(OaIdl.SAFEARRAY psa, WinDef.UINT nDim, WinDef.LONGByReference bound) Retrieve the lower bound for the specified dimension of the supplied array- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.nDim
- [in] the dimension, one basedbound
- [out] lower bound for the supplied dimension- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- DISP_E_BADINDEX
- The specified index is not valid.
- E_INVALIDARG
- One of the arguments is not valid.
-
SafeArrayGetElement
Retrieves a single element of the array.The array is automaticly locked via SafeArrayLock and SafeArrayUnlock.
- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.rgIndices
- [in] A vector of indexes for each dimension of the array. The right-most (least significant) dimension is rgIndices[0]. The left-most dimension is stored at rgIndices[psa->cDims - 1].pv
- [out] The element of the array.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- DISP_E_BADINDEX
- The specified index is not valid.
- E_INVALIDARG
- One of the arguments is not valid.
- E_OUTOFMEMORY
- Memory could not be allocated for the element.
-
SafeArrayPtrOfIndex
WinNT.HRESULT SafeArrayPtrOfIndex(OaIdl.SAFEARRAY psa, WinDef.LONG[] rgIndices, PointerByReference ppv) Retrieves the pointer to a single element of the array.The caller is responsible for locking.
- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.rgIndices
- [in] A vector of indexes for each dimension of the array. The right-most (least significant) dimension is rgIndices[0]. The left-most dimension is stored at rgIndices[psa->cDims - 1].ppv
- [out] The element of the array.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- DISP_E_BADINDEX
- The specified index is not valid.
- E_INVALIDARG
- One of the arguments is not valid.
-
SafeArrayLock
Increments the lock count of an array, and places a pointer to the array data in pvData of the array descriptor.- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- E_UNEXPECTED
- The array could not be locked.
-
SafeArrayUnlock
Decrements the lock count of an array so it can be freed or resized.- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- E_UNEXPECTED
- The array could not be locked.
-
SafeArrayDestroy
Destroys an existing array descriptor and all of the data in the array. If objects are stored in the array, Release is called on each object in the array.- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- DISP_E_ARRAYISLOCKED
- The array could not be locked.
-
SafeArrayRedim
Changes the right-most (least significant) bound of the specified safe array.- Parameter:
psa
- [in, out] An array descriptor created by SafeArrayCreate.psaboundNew
- [in] New bounds for the least significant dimension- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- DISP_E_ARRAYISLOCKED
- The array could not be locked.
-
SafeArrayGetVartype
Return VARTYPE of the SAFEARRAY- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.pvt
- [in] Vartype of the SAFEARRAY- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
-
SafeArrayGetDim
Return number of dimensions of the SAFEARRAY- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- Return count of dimensions
-
SafeArrayAccessData
Lock array and retrieve pointer to data- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.ppvData
- [in] pointer to the data array- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- E_UNEXPECTED
- The array could not be locked.
-
SafeArrayUnaccessData
Unlock array and invalidate the pointer retrieved via SafeArrayAccessData- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- Return value
This function can return one of these values.
- S_OK
- Success.
- E_INVALIDARG
- The argument psa is not valid.
- E_UNEXPECTED
- The array could not be locked.
-
SafeArrayGetElemsize
Get size of one element in bytes- Parameter:
psa
- [in] An array descriptor created by SafeArrayCreate.- Gibt zurück:
- size in bytes
-
GetActiveObject
Retrieves a pointer to a running object that has been registered with OLE.- Parameter:
rclsid
- [in] The class identifier (CLSID) of the active object from the OLE registration database.pvReserved
- Reserved for future use. Must be null.ppunk
- [out] The requested active object.- Gibt zurück:
- Return value If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
-
LoadRegTypeLib
WinNT.HRESULT LoadRegTypeLib(Guid.GUID rguid, int wVerMajor, int wVerMinor, WinDef.LCID lcid, PointerByReference pptlib) Uses registry information to load a type library.- Parameter:
rguid
- The GUID of the library.wVerMajor
- The major version of the library.wVerMinor
- The minor version of the library.lcid
- The national language code of the library.pptlib
- The loaded type library. This function can return one of these values: S_OK Success. E_INVALIDARG One or more of the arguments is not valid. E_OUTOFMEMORY Insufficient memory to complete the operation. TYPE_E_IOERROR The function could not write to the file. TYPE_E_INVALIDSTATE The type library could not be opened. TYPE_E_INVDATAREAD The function could not read from the file. TYPE_E_UNSUPFORMAT The type library has an older format. TYPE_E_UNKNOWNLCID The LCID could not be found in the OLE-supported DLLs. TYPE_E_CANTLOADLIBRARY The type library or DLL could not be loaded.- Gibt zurück:
- status
-
LoadTypeLib
Loads and registers a type library.- Parameter:
szFile
- The name of the file from which the method should attempt to load a type library.pptlib
- The loaded type library. Return value This function can return one of these values. S_OK Success. E_INVALIDARG One or more of the arguments is not valid. E_OUTOFMEMORY Insufficient memory to complete the operation. TYPE_E_IOERROR The function could not write to the file. TYPE_E_INVALIDSTATE The type library could not be opened. TYPE_E_INVDATAREAD The function could not read from the file. TYPE_E_UNSUPFORMAT The type library has an older format. TYPE_E_UNKNOWNLCID The LCID could not be found in the OLE-supported DLLs. TYPE_E_CANTLOADLIBRARY The type library or DLL could not be loaded.- Gibt zurück:
- status
-
SystemTimeToVariantTime
Converts a system time to a variant representation.- Parameter:
lpSystemTime
- [in] The system time.pvtime
- [out] The variant time.- Gibt zurück:
- The function returns TRUE on success and FALSE otherwise.
-
VariantTimeToSystemTime
Converts a variant representation of time to a system time.- Parameter:
vtime
- [in] The variant time.lpSystemTime
- [out] The system time.- Gibt zurück:
- The function returns TRUE on success and FALSE otherwise.
-