.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarXor 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarXor\fR (OLEAUT32.167) .SH SYNOPSIS HRESULT VarXor ( LPVARIANT \fIpVarLeft\fR, LPVARIANT \fIpVarRight\fR, LPVARIANT \fIpVarOut\fR ) .SH DESCRIPTION .PP Perform a logical exclusive-or (\fBXOR\fR) operation on two variants. .SH PARAMS \fIpVarLeft\fR \fB[In]\fR First variant. .PP \fIpVarRight\fR \fB[In]\fR Variant to \fBXOR\fR with \fIpVarLeft\fR. .PP \fIpVarOut\fR \fB[Out]\fR Destination for \fBXOR\fR result. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. \fIpVarOut\fR contains the result of the operation with its type taken from the table below). .PP \fBFailure:\fR An \fBHRESULT\fR error code indicating the error. .SH NOTES .PP \fB-\fR Neither \fIpVarLeft\fR or \fIpVarRight\fR are modified by this function. .PP \fB-\fR This function does not process by-reference variants. .PP \fB-\fR Input types of \fBVT_BSTR\fR may be numeric strings or boolean text. .PP \fB-\fR The type of result stored in \fIpVarOut\fR depends on the types of \fIpVarLeft\fR and \fIpVarRight\fR, and will be one of \fBVT_UI1\fR, \fBVT_I2\fR, \fBVT_I4\fR, \fBVT_I8\fR, \fBVT_BOOL\fR, or \fBVT_NULL\fR if the function succeeds. .PP \fB-\fR Type promotion is inconsistent and as a result certain combinations of values will return \fBDISP_E_OVERFLOW\fR even when they could be represented. This matches the behaviour of native oleaut32. .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/variant.c"\fR. .PP Debug channel \fB"variant"\fR.