UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:userenv.GetAppContainerFolderPath |
GetAppContainerFolderPath function (userenv.h) |
Gets the path of the local app data folder for the specified app container. |
|
shell\getappcontainerfolderpath.htm |
shell |
7D3AB78D-C094-4F89-8032-13F3C137E910 |
12/05/2018 |
GetAppContainerFolderPath, GetAppContainerFolderPath function [Windows Shell], shell.getappcontainerfolderpath, userenv/GetAppContainerFolderPath |
userenv.h |
Windows |
Windows 8 [desktop apps only] |
Windows Server 2012 [desktop apps only] |
Userenv.lib |
Userenv.dll |
Windows |
19H1 |
|
|
|
|
|
|
Gets the path of the local app data folder for the specified app container.
A pointer to the SID of the app container.
The address of a pointer to a string that, when this function returns successfully, receives the path of the local folder. It is the responsibility of the caller to free this string when it is no longer needed by calling the CoTaskMemFree function.
This function returns an HRESULT code, including but not limited to the following:
Return code | Description |
---|---|
|
The operation completed successfully. |
|
The pszAppContainerSid or ppszPath parameter is NULL. |
The path retrieved through this function is the same path that you would get by calling the SHGetKnownFolderPath function with FOLDERID_LocalAppData.
If a thread token is set, this function uses the app container for the current user. If no thread token is set, this function uses the app container associated with the process identity.