| Modifier and Type | Class and Description |
|---|---|
| public static class | OleAuto.DISPPARAMS
The Class DISPPARAMS. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DISPATCH_METHOD
The Constant DISPATCH_METHOD. |
| public static final int | DISPATCH_PROPERTYGET
The Constant DISPATCH_PROPERTYGET. |
| public static final int | DISPATCH_PROPERTYPUT
The Constant DISPATCH_PROPERTYPUT. |
| public static final int | DISPATCH_PROPERTYPUTREF
The Constant DISPATCH_PROPERTYPUTREF. |
| public static final int | FADF_AUTO
An array that is allocated on the stac. |
| public static final int | FADF_BSTR
An array of BSTRs. |
| public static final int | FADF_DISPATCH
An array of IDispatch*. |
| public static final int | FADF_EMBEDDED
An array that is embedded in a structure. |
| public static final int | FADF_FIXEDSIZE
An array that is embedded in a structure. |
| public static final int | FADF_HAVEIID
An array that is embedded in a structure. |
| public static final int | FADF_HAVEVARTYPE
An array that has a variant type. |
| public static final int | FADF_RECORD
An array that is embedded in a structure. |
| public static final int | FADF_RESERVED
Bits reserved for future use. |
| public static final int | FADF_STATIC
An array that is statically allocated. |
| public static final int | FADF_UNKNOWN
An array of IUnknown*. |
| public static final int | FADF_VARIANT
An array of VARIANTs. |
| public static final OleAuto | INSTANCE
The instance. |
| public static final short | VARIANT_ALPHABOOL
For VT_BOOL to VT_BSTR conversions, convert to "True"/"False" instead of "-1"/"0" |
| public static final short | VARIANT_CALENDAR_GREGORIAN
SOUTHASIA calendar support |
| public static final short | |
| public static final short | VARIANT_CALENDAR_THAI
SOUTHASIA calendar support |
| public static final short | VARIANT_LOCALBOOL
For VT_BOOL to VT_BSTR and back, convert to local language rather than English |
| public static final short | VARIANT_NOUSEROVERRIDE
For conversions to/from VT_BSTR, passes LOCALE_NOUSEROVERRIDE to core coercion routines |
| public static final short | |
| public static final short | VARIANT_USE_NLS
NLS function call support |
| Modifier and Type | Method and Description | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public WinNT. | Returns: Return value If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.[in] The class identifier (CLSID) of the active object
from the OLE registration database. rclsid,Reserved for future use. Must be null. pvReserved,[out] The requested active object. ppunk)Retrieves a pointer to a running object that has been registered with OLE. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: statusThe GUID of the library. rguid,The major version of the library. wVerMajor, int The minor version of the library. wVerMinor, WinDef.The national language code of the library. lcid,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. pptlib)Uses registry information to load a type library. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: statusThe name of the file from which the method should attempt
to load a type library. szFile, PointerByReference 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. pptlib)Loads and registers a type library. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[in] pointer to the data array ppvData)Lock array and retrieve pointer to data | |||||||||||||||||||||||||||||
| public OaIdl. | Returns: Return value A safe array descriptor, or null if the array could not be created.[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. cDims vt,the number of dims cDims,the rgsabound rgsaboundCreates a new array descriptor, allocates and initializes the data for the array, and returns a pointer to the new array descriptor. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psaDestroys an existing array descriptor and all of the data in the array. | |||||||||||||||||||||||||||||
| public WinDef. | Returns: Return count of dimensions[in] An array descriptor created by SafeArrayCreate. psaReturn number of dimensions of the SAFEARRAY | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[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]. rgIndices,[out] The element of the array. pv)Retrieves a single element of the array. | |||||||||||||||||||||||||||||
| public WinDef. | Returns: size in bytes[in] An array descriptor created by SafeArrayCreate. psaGet size of one element in bytes | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[in] the dimension, one based nDim,[out] lower bound for the supplied dimension boundRetrieve the lower bound for the specified dimension of the supplied array | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[in] the dimension, one based nDim,[out] upper bound for the supplied dimension boundRetrieve the upper bound for the specified dimension of the supplied array | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[in] Vartype of the SAFEARRAY pvtReturn VARTYPE of the SAFEARRAY | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psaIncrements the lock count of an array, and places a pointer to the array data in pvData of the array descriptor. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,[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]. rgIndices,[out] The element of the array. ppv)Retrieves the pointer to a single element of the array. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psa,the idx idx,[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. pv)Stores the data element at the specified location in the array. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in, out] An array descriptor created by
SafeArrayCreate. psa,[in] New bounds for the least significant dimension psaboundNewChanges the right-most (least significant) bound of the specified safe array. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psaUnlock array and invalidate the pointer retrieved via SafeArrayAccessData | |||||||||||||||||||||||||||||
| public WinNT. | Returns: Return value This function can return one of these values.
[in] An array descriptor created by SafeArrayCreate. psaDecrements the lock count of an array so it can be freed or resized. | |||||||||||||||||||||||||||||
| public WTypes. | Returns: Null if there is insufficient memory or if a null pointer is passed in.Null-terminated UNICODE string to copy. sz)This function allocates a new string and copies the passed string into it. | |||||||||||||||||||||||||||||
| public void | SysFreeString(WTypes.
Unicode string that was allocated previously, or NULL.
Setting this parameter to NULL causes the function to simply
return. bstrThis function frees a string allocated previously by SysAllocString, SysAllocStringByteLen, SysReAllocString, SysAllocStringLen, or SysReAllocStringLen. | |||||||||||||||||||||||||||||
| public int | SysStringByteLen(WTypes.
Unicode string that was allocated previously. bstrReturns the length (in bytes) of a BSTR. | |||||||||||||||||||||||||||||
| public int | SysStringLen(WTypes.
Unicode string that was allocated previously. bstrReturns the length of a BSTR. | |||||||||||||||||||||||||||||
| public int | Returns: The function returns TRUE on success and FALSE otherwise.[in] The system time. lpSystemTime,[out] The variant time. pvtime)Converts a system time to a variant representation. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: This function can return one of these values:
VT_BOOL and the
destination is of type VT_UINT, the pvarSrc
argument is first converted to VT_I2 and then the
conversion proceeds. A variant that has VT_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 of
IDispatch.
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 to VT_BSTR. If
VariantChangeType does not return an error, the argument could then be
obtained directly from the
bstrVal field of the
VARIANT. If VariantChangeType returns
DISP_E_TYPEMISMATCH, the implementor
would set Invoke
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 a VARIANT should not be
changed in the rgvarg array in place.[out] The destination variant. If this is the same as
pvarSrc, the variant will be converted in place. pvargDest,[in] The variant to convert. pvarSrc,Combination of the following flags
wFlags, WTypes.
The type to convert to. If the return code is
vtS_OK, the vt field of the vargDest
is guaranteed to be equal to this value.Converts a variant from one type to another. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: This function can return one of these values:
VT_BOOL and the
destination is of type VT_UINT, the pvarSrc
argument is first converted to VT_I2 and then the
conversion proceeds. A variant that has VT_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 of
IDispatch.
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 to VT_BSTR. If
VariantChangeType does not return an error, the argument could then be
obtained directly from the
bstrVal field of the
VARIANT. If VariantChangeType returns
DISP_E_TYPEMISMATCH, the implementor
would set Invoke
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 a VARIANT should not be
changed in the rgvarg array in place.[out] The destination variant. If this is the same as
pvarSrc, the variant will be converted in place. pvargDest,[in] The variant to convert. pvarSrc,Combination of the following flags
wFlags, WTypes.
The type to convert to. If the return code is vtS_OK, the vt
field of the vargDest is guaranteed to be equal to this value.Converts a variant from one type to another. | |||||||||||||||||||||||||||||
| public WinNT. | Returns: the hresult[in, out] The variant to clear. pvargUse 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). | |||||||||||||||||||||||||||||
| public WinNT. | Returns: the hresult[out] The destination variant. pvargDest, Variant.[in] The source variant. pvargSrcFirst, 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). | |||||||||||||||||||||||||||||
| public void | VariantInit(Variant.
The variant to initialize. pvargThe VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY. | |||||||||||||||||||||||||||||
| public void | VariantInit(Variant.
The variant to initialize. pvargThe VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY. | |||||||||||||||||||||||||||||
| public int | Returns: The function returns TRUE on success and FALSE otherwise.[in] The variant time. vtime, WinBase.[out] The system time. lpSystemTimeConverts a variant representation of time to a system time. |