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

# UlFromSzHex(3w)

## NAME

**UlFromSzHex** (MAPI32.155)

## SYNOPSIS

ULONG UlFromSzHex\
  (\
   LPCWSTR *lpszHex*\
  )

## DESCRIPTION

Read an integer from a hexadecimal string.

## PARAMS

lpSzHex **\[In\]**  String containing the hexadecimal number to read.

## RETURNS

**Success:** The number represented by *lpszHex*.

**Failure:** **0**, if *lpszHex* does not contain a hex string.

## NOTES

This function does not accept whitespace and stops at the first non-hex character.

## IMPLEMENTATION

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

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

Debug channel **"mapi"**.
