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

# StringTableAddStringEx(3w)

## NAME

**StringTableAddStringEx** (SETUPAPI.@)

## SYNOPSIS

DWORD StringTableAddStringEx\
  (\
   HSTRING\_TABLE *hStringTable*,\
   LPWSTR        *lpString*,\
   DWORD         *dwFlags*,\
   LPVOID        *lpExtraData*,\
   DWORD         *dwExtraDataSize*\
  )

## DESCRIPTION

Adds a new string plus extra data to the string table.

## PARAMS

*hStringTable* **\[In\]**  Handle to the string table.

*lpString* **\[In\]**  String to be added to the string table.

*dwFlags* **\[In\]**  Flags 1: case sensitive compare.

*lpExtraData* **\[In\]**  Pointer to the extra data.

*dwExtraDataSize* **\[In\]**  Size of the extra data.

## RETURNS

**Success:** String **ID**

**Failure:** ~0u.

## NOTES

If the given string already exists in the string table it will not be added again. The Id of the existing string will be returned in this case.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/setupapi/stringtable.c"**.

Debug channel **"setupapi"**.
