.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarNot 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarNot\fR (OLEAUT32.174) .SH SYNOPSIS HRESULT VarNot ( LPVARIANT \fIpVarIn\fR, LPVARIANT \fIpVarOut\fR ) .SH DESCRIPTION .PP Perform a not operation on a variant. .SH PARAMS \fIpVarIn\fR \fB[In]\fR Source variant. .PP \fIpVarOut\fR \fB[Out]\fR Destination for converted value. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. \fIpVarOut\fR contains the converted value. .PP \fBFailure:\fR An \fBHRESULT\fR error code indicating the error. .SH NOTES .PP \fB-\fR Strictly speaking, this function performs a bitwise ones complement on the variants value (after possibly converting to \fBVT_I4\fR, see below). This only behaves like a boolean not operation if the value in \fIpVarIn\fR is either \fBVARIANT_TRUE\fR or \fBVARIANT_FALSE\fR and the type is signed. .PP \fB-\fR To perform a genuine not operation, convert the variant to a \fBVT_BOOL\fR before calling this function. .PP \fB-\fR This function does not process by-reference variants. .PP \fB-\fR The type of the value stored in \fIpVarOut\fR depends on the type of \fIpVarIn\fR, according to the following table: .br Input Type Output Type .br ---------- ----------- .br VT_EMPTY VT_I2 .br VT_R4 VT_I4 .br VT_R8 VT_I4 .br VT_BSTR VT_I4 .br VT_DECIMAL VT_I4 .br VT_CY VT_I4 .br (All others) Unchanged .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/variant.c"\fR. .PP Debug channel \fB"variant"\fR.