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

# UlPropSize(3w)

## NAME

**UlPropSize** (MAPI32.77)

## SYNOPSIS

ULONG UlPropSize\
  (\
   LPSPropValue *lpProp*\
  )

## DESCRIPTION

Determine the size of a property in bytes.

## PARAMS

*lpProp* **\[In\]**  Property to determine the size of.

## RETURNS

**Success:** The size of the value in *lpProp*.

**Failure:** **0**, if a multi-value (array) property is invalid or the type of *lpProp* is unknown.

## NOTES

**-** The size returned does not include the size of the SPropValue struct or the size of the array of pointers for multi-valued properties that contain pointers (such as **PT\_MV\_STRING8** or PT-MV\_UNICODE).

**-** **MSDN** incorrectly states that this function returns **MAPI\_E\_CALL\_FAILED** if *lpProp* is invalid. In reality no checking is performed and this function will crash if passed an invalid property, or return **0** if the property type is **PT\_OBJECT** or is unknown.

## IMPLEMENTATION

Declared in **"mapiutil.h"**.

Implemented in **"dlls/mapi32/prop.c"**.

Debug channel **"mapi"**.
