NAME

DoEnvironmentSubstW  (SHELL32.@)

SYNOPSIS

 DWORD DoEnvironmentSubstW
 (
  LPWSTR pszString,
  UINT   cchString
 )

DESCRIPTION

Replace all %KEYWORD% in the string with the value of the named environment variable. If the buffer is too small, the string is not modified.

PARAMS

pszString [In] '\0' terminated string with %keyword%.
[Out] '\0' terminated string with %keyword% substituted.
cchString [In] size of str.

RETURNS

Success: The string in the buffer is updated

HIWORD: TRUE

LOWORD: characters used in the buffer, including space for the terminating 0

Failure: buffer too small. The string is not modified.

HIWORD: FALSE

LOWORD: provided size of the buffer in characters

IMPLEMENTATION

Declared in "shellapi.h". https://source.winehq.org/source/include/shellapi.h

Implemented in "dlls/shell32/shellord.c". https://source.winehq.org/source/dlls/shell32/shellord.c

Debug channel "shell".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.