.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarInt 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarInt\fR (OLEAUT32.172) .SH SYNOPSIS HRESULT VarInt ( LPVARIANT \fIpVarIn\fR, LPVARIANT \fIpVarOut\fR ) .SH DESCRIPTION .PP Truncate a variants value to a whole number. .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 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_BOOL VT_I2 .br VT_EMPTY VT_I2 .br VT_BSTR VT_R8 .br All Others Unchanged .PP \fB-\fR The difference between this function and \fBVarFix(3w)\fR is that \fBVarFix(3w)\fR rounds negative numbers towards \fB0\fR, while this function rounds them away from zero. .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/variant.c"\fR. .PP Debug channel \fB"variant"\fR.