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

# StringTableAddString(3w)

## NAME

**StringTableAddString** (SETUPAPI.@)

## SYNOPSIS

DWORD StringTableAddString\
  (\
   HSTRING\_TABLE *hStringTable*,\
   LPWSTR        *lpString*,\
   DWORD         *dwFlags*\
  )

## DESCRIPTION

Adds a new string 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.

## 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"**.
