## Vanara.PInvoke.UserEnv  
PInvoke API (methods, structures and constants) imported from UserEnv.dll.

- Includes methods from userenv.dll  
- Current NuGet release: [![Nuget](https://img.shields.io/nuget/v/Vanara.PInvoke.UserEnv?logo=nuget&style=flat-square)![Nuget](https://img.shields.io/nuget/dt/Vanara.PInvoke.UserEnv?label=%20&style=flat-square)](https://www.nuget.org/packages/Vanara.PInvoke.UserEnv)  
### Methods - 100% API coverage (29 of 29 functions)  
Native Method | Header | Managed Method  
--- | --- | ---  
[CreateAppContainerProfile](https://www.google.com/search?num=5&q=CreateAppContainerProfile+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.CreateAppContainerProfile](https://github.com/dahall/Vanara/search?l=C%23&q=CreateAppContainerProfile)  
[CreateEnvironmentBlock](https://www.google.com/search?num=5&q=CreateEnvironmentBlock+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.CreateEnvironmentBlock](https://github.com/dahall/Vanara/search?l=C%23&q=CreateEnvironmentBlock)  
[CreateProfile](https://www.google.com/search?num=5&q=CreateProfile+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.CreateProfile](https://github.com/dahall/Vanara/search?l=C%23&q=CreateProfile)  
[DeleteAppContainerProfile](https://www.google.com/search?num=5&q=DeleteAppContainerProfile+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.DeleteAppContainerProfile](https://github.com/dahall/Vanara/search?l=C%23&q=DeleteAppContainerProfile)  
[DeleteProfile](https://www.google.com/search?num=5&q=DeleteProfileA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.DeleteProfile](https://github.com/dahall/Vanara/search?l=C%23&q=DeleteProfile)  
[DeriveAppContainerSidFromAppContainerName](https://www.google.com/search?num=5&q=DeriveAppContainerSidFromAppContainerName+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.DeriveAppContainerSidFromAppContainerName](https://github.com/dahall/Vanara/search?l=C%23&q=DeriveAppContainerSidFromAppContainerName)  
[DestroyEnvironmentBlock](https://www.google.com/search?num=5&q=DestroyEnvironmentBlock+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.DestroyEnvironmentBlock](https://github.com/dahall/Vanara/search?l=C%23&q=DestroyEnvironmentBlock)  
[EnterCriticalPolicySection](https://www.google.com/search?num=5&q=EnterCriticalPolicySection+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.EnterCriticalPolicySection](https://github.com/dahall/Vanara/search?l=C%23&q=EnterCriticalPolicySection)  
[ExpandEnvironmentStringsForUserA](https://www.google.com/search?num=5&q=ExpandEnvironmentStringsForUserA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.ExpandEnvironmentStringsForUser](https://github.com/dahall/Vanara/search?l=C%23&q=ExpandEnvironmentStringsForUser)  
[ExpandEnvironmentStringsForUserW](https://www.google.com/search?num=5&q=ExpandEnvironmentStringsForUserW+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.ExpandEnvironmentStringsForUser](https://github.com/dahall/Vanara/search?l=C%23&q=ExpandEnvironmentStringsForUser)  
[FreeGPOList](https://www.google.com/search?num=5&q=FreeGPOListA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.FreeGPOList](https://github.com/dahall/Vanara/search?l=C%23&q=FreeGPOList)  
[GetAllUsersProfileDirectory](https://www.google.com/search?num=5&q=GetAllUsersProfileDirectoryA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetAllUsersProfileDirectory](https://github.com/dahall/Vanara/search?l=C%23&q=GetAllUsersProfileDirectory)  
[GetAppContainerFolderPath](https://www.google.com/search?num=5&q=GetAppContainerFolderPath+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetAppContainerFolderPath](https://github.com/dahall/Vanara/search?l=C%23&q=GetAppContainerFolderPath)  
[GetAppContainerRegistryLocation](https://www.google.com/search?num=5&q=GetAppContainerRegistryLocation+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetAppContainerRegistryLocation](https://github.com/dahall/Vanara/search?l=C%23&q=GetAppContainerRegistryLocation)  
[GetAppliedGPOList](https://www.google.com/search?num=5&q=GetAppliedGPOListA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetAppliedGPOList](https://github.com/dahall/Vanara/search?l=C%23&q=GetAppliedGPOList)  
[GetDefaultUserProfileDirectory](https://www.google.com/search?num=5&q=GetDefaultUserProfileDirectoryA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetDefaultUserProfileDirectory](https://github.com/dahall/Vanara/search?l=C%23&q=GetDefaultUserProfileDirectory)  
[GetGPOListA](https://www.google.com/search?num=5&q=GetGPOListA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetGPOList](https://github.com/dahall/Vanara/search?l=C%23&q=GetGPOList)  
[GetGPOListW](https://www.google.com/search?num=5&q=GetGPOListW+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetGPOList](https://github.com/dahall/Vanara/search?l=C%23&q=GetGPOList)  
[GetProfilesDirectory](https://www.google.com/search?num=5&q=GetProfilesDirectoryA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetProfilesDirectory](https://github.com/dahall/Vanara/search?l=C%23&q=GetProfilesDirectory)  
[GetProfileType](https://www.google.com/search?num=5&q=GetProfileType+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetProfileType](https://github.com/dahall/Vanara/search?l=C%23&q=GetProfileType)  
[GetUserProfileDirectoryA](https://www.google.com/search?num=5&q=GetUserProfileDirectoryA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetUserProfileDirectory](https://github.com/dahall/Vanara/search?l=C%23&q=GetUserProfileDirectory)  
[GetUserProfileDirectoryW](https://www.google.com/search?num=5&q=GetUserProfileDirectoryW+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GetUserProfileDirectory](https://github.com/dahall/Vanara/search?l=C%23&q=GetUserProfileDirectory)  
[LeaveCriticalPolicySection](https://www.google.com/search?num=5&q=LeaveCriticalPolicySection+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.LeaveCriticalPolicySection](https://github.com/dahall/Vanara/search?l=C%23&q=LeaveCriticalPolicySection)  
[LoadUserProfile](https://www.google.com/search?num=5&q=LoadUserProfileA+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.LoadUserProfile](https://github.com/dahall/Vanara/search?l=C%23&q=LoadUserProfile)  
[RefreshPolicy](https://www.google.com/search?num=5&q=RefreshPolicy+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.RefreshPolicy](https://github.com/dahall/Vanara/search?l=C%23&q=RefreshPolicy)  
[RefreshPolicyEx](https://www.google.com/search?num=5&q=RefreshPolicyEx+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.RefreshPolicyEx](https://github.com/dahall/Vanara/search?l=C%23&q=RefreshPolicyEx)  
[RegisterGPNotification](https://www.google.com/search?num=5&q=RegisterGPNotification+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.RegisterGPNotification](https://github.com/dahall/Vanara/search?l=C%23&q=RegisterGPNotification)  
[UnloadUserProfile](https://www.google.com/search?num=5&q=UnloadUserProfile+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.UnloadUserProfile](https://github.com/dahall/Vanara/search?l=C%23&q=UnloadUserProfile)  
[UnregisterGPNotification](https://www.google.com/search?num=5&q=UnregisterGPNotification+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.UnregisterGPNotification](https://github.com/dahall/Vanara/search?l=C%23&q=UnregisterGPNotification)  
### Enumerations  
Native Enum | Header | Managed Enum  
--- | --- | ---  
[GPO_LINK](https://www.google.com/search?num=5&q=GPO_LINK+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GPO_LINK](https://github.com/dahall/Vanara/search?l=C%23&q=GPO_LINK)  
[GPO_LIST_FLAG](https://www.google.com/search?num=5&q=GPO_LIST_FLAG+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GPO_LIST_FLAG](https://github.com/dahall/Vanara/search?l=C%23&q=GPO_LIST_FLAG)  
[ProfileInfoFlags](https://www.google.com/search?num=5&q=ProfileInfoFlags+site%3Alearn.microsoft.com) | profinfo.h | [Vanara.PInvoke.UserEnv.ProfileInfoFlags](https://github.com/dahall/Vanara/search?l=C%23&q=ProfileInfoFlags)  
[ProfileType](https://www.google.com/search?num=5&q=ProfileType+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.ProfileType](https://github.com/dahall/Vanara/search?l=C%23&q=ProfileType)  
[RefreshPolicyOption](https://www.google.com/search?num=5&q=RefreshPolicyOption+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.RefreshPolicyOption](https://github.com/dahall/Vanara/search?l=C%23&q=RefreshPolicyOption)  
### Structures  
Native Structure | Header | Managed Structure  
--- | --- | ---  
[GROUP_POLICY_OBJECT](https://www.google.com/search?num=5&q=GROUP_POLICY_OBJECT+site%3Alearn.microsoft.com) | userenv.h | [Vanara.PInvoke.UserEnv.GROUP_POLICY_OBJECT](https://github.com/dahall/Vanara/search?l=C%23&q=GROUP_POLICY_OBJECT)  
[PROFILEINFO](https://www.google.com/search?num=5&q=PROFILEINFO+site%3Alearn.microsoft.com) | profinfo.h | [Vanara.PInvoke.UserEnv.PROFILEINFO](https://github.com/dahall/Vanara/search?l=C%23&q=PROFILEINFO)  
### Classes  
Native Class | Header | Managed Class  
--- | --- | ---  
[SafeCriticalPolicySectionHandle](https://www.google.com/search?num=5&q=SafeCriticalPolicySectionHandle+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.UserEnv.SafeCriticalPolicySectionHandle](https://github.com/dahall/Vanara/search?l=C%23&q=SafeCriticalPolicySectionHandle)  
