Skip to content

Latest commit

 

History

History
106 lines (87 loc) · 2.9 KB

nf-userenv-getappcontainerfolderpath.md

File metadata and controls

106 lines (87 loc) · 2.9 KB
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.
GetAppContainerFolderPath
GetAppContainerFolderPath function [Windows Shell]
shell.getappcontainerfolderpath
userenv/GetAppContainerFolderPath
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
GetAppContainerFolderPath
userenv/GetAppContainerFolderPath
c++
APIRef
kbSyntax
DllExport
Userenv.dll
GetAppContainerFolderPath

GetAppContainerFolderPath function

-description

Gets the path of the local app data folder for the specified app container.

-parameters

-param pszAppContainerSid [in]

A pointer to the SID of the app container.

-param ppszPath [out]

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.

-returns

This function returns an HRESULT code, including but not limited to the following:

Return code Description
S_OK
The operation completed successfully.
E_INVALIDARG
The pszAppContainerSid or ppszPath parameter is NULL.

-remarks

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.

-see-also

GetAppContainerRegistryLocation