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

# SHSearchMapInt(3w)

## NAME

**SHSearchMapInt** (SHLWAPI.198)

## SYNOPSIS

int SHSearchMapInt\
  (\
   const int\* *lpKeys*,\
   const int\* *lpValues*,\
   int        *iLen*,\
   int        *iKey*\
  )

## DESCRIPTION

Return the value associated with a key in a map.

## PARAMS

*lpKeys* **\[In\]**  A list of keys of length *iLen*.

*lpValues* **\[In\]**  A list of values associated with *lpKeys*, of length *iLen*.

*iLen* **\[In\]**  Length of both *lpKeys* and *lpValues*.

*iKey* **\[In\]**  The key value to look up in *lpKeys*.

## RETURNS

The value in *lpValues* associated with *iKey*, or **-1** if *iKey* is not found in *lpKeys*.

## NOTES

**-** If two elements in the map share the same key, this function returns the value closest to the start of the map

**-** The native version of this function crashes if *lpKeys* or *lpValues* is **NULL**.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
