.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarBstrFromBool 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarBstrFromBool\fR (OLEAUT32.116) .SH SYNOPSIS HRESULT VarBstrFromBool ( VARIANT_BOOL \fIboolIn\fR, LCID \fIlcid\fR, ULONG \fIdwFlags\fR, BSTR* \fIpbstrOut\fR ) .SH DESCRIPTION .PP Convert a \fBVT_BOOL\fR to a \fBVT_BSTR\fR. .SH PARAMS \fIboolIn\fR \fB[In]\fR Source. .PP \fIlcid\fR \fB[In]\fR \fBLCID\fR for the conversion. .PP \fIdwFlags\fR \fB[In]\fR Flags controlling the conversion (\fBVAR_\fR flags from \fB"oleauto.h"\fR). .PP \fIpbstrOut\fR \fB[Out]\fR Destination. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. .PP \fBFailure:\fR \fBE_INVALIDARG\fR, if \fIpbstrOut\fR is invalid. \fBE_OUTOFMEMORY\fR, if memory allocation fails. .SH NOTES .PP If \fIdwFlags\fR includes \fBVARIANT_LOCALBOOL\fR, this function converts to the localised text of \fB"TRUE"\fR or \fB"FALSE"\fR. To convert a boolean into a numeric string of \fB"0"\fR or \fB"-1"\fR, use \fBVariantChangeTypeTypeEx(3w)\fR. .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/vartype.c"\fR. .PP Debug channel \fB"variant"\fR.