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

# DoEnvironmentSubst16(3w)

## NAME

**DoEnvironmentSubst16** (SHELL.37)

## SYNOPSIS

DWORD DoEnvironmentSubst16\
  (\
   LPSTR *str*,\
   WORD  *length*\
  )

## DESCRIPTION

Replace %KEYWORD% in the *str* with the value of variable **KEYWORD** from **"DOS"** environment. If it is not found the %KEYWORD% is left intact. If the buffer is too small, *str* is not modified.

## PARAMS

*str* **\[In\]**  **' '** terminated string with %keyword%.

**\[Out\]**  **' '** terminated string with %keyword% substituted.

*length* **\[In\]**  size of *str*.

## RETURNS

*str* *length* in the **LOWORD** and **1** in **HIWORD** if subst was successful.

## IMPLEMENTATION

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

Implemented in **"dlls/shell.dll16/shell.c"**.

Debug channel **"shell"**.
