---
name: "VarMod"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VarMod"
---

# VarMod(3w)

## NAME

**VarMod** (OLEAUT32.155)

## SYNOPSIS

HRESULT VarMod\
  (\
   LPVARIANT *left*,\
   LPVARIANT *right*,\
   LPVARIANT *result*\
  )

## DESCRIPTION

Perform the modulus operation of the *right* hand variant on the *left*.

## PARAMS

*left* **\[In\]**  Left hand variant.

*right* **\[In\]**  Right hand variant.

*result* **\[Out\]**  Destination for converted value.

## RETURNS

**Success:** **S\_OK**. *result* contains the remainder.

**Failure:** An **HRESULT** error code indicating the error.

**NOTE:** If an error occurs the type of *result* will be modified but the value will not be. Doesn't support arrays or any special flags yet.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/variant.c"**.

Debug channel **"variant"**.
