NAME

VarBstrFromBool  (OLEAUT32.116)

SYNOPSIS

 HRESULT VarBstrFromBool
 (
  VARIANT_BOOL boolIn,
  LCID         lcid,
  ULONG        dwFlags,
  BSTR*        pbstrOut
 )

DESCRIPTION

Convert a VT_BOOL to a VT_BSTR.

PARAMS

boolIn [In] Source.
lcid [In] LCID for the conversion.
dwFlags [In] Flags controlling the conversion (VAR_ flags from "oleauto.h").
pbstrOut [Out] Destination.

RETURNS

Success: S_OK.

Failure: E_INVALIDARG, if pbstrOut is invalid. E_OUTOFMEMORY, if memory allocation fails.

NOTES

If dwFlags includes VARIANT_LOCALBOOL, this function converts to the localised text of "TRUE" or "FALSE". To convert a boolean into a numeric string of "0" or "-1", use VariantChangeTypeTypeEx.

IMPLEMENTATION

Declared in "include/oleauto.h". gitlab.winehq.org/wine/wine/blob/master/include/oleauto.h

Implemented in "dlls/oleaut32/vartype.c". gitlab.winehq.org/wine/wine/blob/master/dlls/oleaut32/vartype.c

Debug channel "variant".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.