VarBoolFromDisp
This function converts variant data types to BOOL from IDispatch.
HRESULT VarBoolFromDisp(
[in] IDispatch *pdispIn,
[in] LCID lcid,
[out] BOOL *pboolOut );
Parameters
- pdispIn
[in] The value to coerce. - lcid
[in] For conversions from string and VT_DISPATCH input, the LCID to use for the conversion. - pboolOut
[out] Points to the coerced value.
Return Values
The return value obtained from the returned HRESULT is one of the following.
Value | Description |
---|---|
S_OK | Success. |
DISP_E_BADVARTYPE | The input parameter is not a valid type of variant. |
DISP_E_OVERFLOW | The data pointed to by the output parameter 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 invalid. |
E_OUTOFMEMORY | Memory could not be allocated for the conversion. |
Remarks
Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Oleauto.h | Oleaut32.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.