DoEnvironmentSubst (shell32)
Last changed: jachymko-213.199.128.177

.
Summary

this is already deprecated in win32, you should use ExpandEnvironmentStrings

or better yet, use the dotnet function "System.Environment.ExpandEnvironmentVariables"

C# Signature:

[DllImport("shell32.dll")]
static extern uint DoEnvironmentSubst(StringBuilder pszString, uint cbSize);

VB.NET Signature:

Private Declare Function DoEnvironmentSubst Lib "shell32.dll" Alias "DoEnvironmentSubstW" (ByVal szString As String, ByVal cbString As Long) As Long

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

System.Environment.ExpandEnvironmentVariables

Do you know one? Please contribute it!

Documentation