2020-11-20 20:52:43 -05:00
## Vanara.PInvoke.UserEnv
2020-07-14 18:02:36 -04:00
PInvoke API (methods, structures and constants) imported from UserEnv.dll.
2020-11-20 20:52:43 -05:00
- 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)
2020-01-06 09:13:56 -05:00
Native Method | Header | Managed Method
--- | --- | ---
2020-06-03 00:02:36 -04:00
[CreateAppContainerProfile ](https://www.google.com/search?num=5&q=CreateAppContainerProfile+site%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.microsoft.com ) | userenv.h | [Vanara.PInvoke.UserEnv.UnregisterGPNotification ](https://github.com/dahall/Vanara/search?l=C%23&q=UnregisterGPNotification )
2020-01-05 22:51:15 -05:00
### Structures
Native Structure | Header | Managed Structure
2020-01-03 18:50:52 -05:00
--- | --- | ---
2020-06-03 00:02:36 -04:00
[GROUP_POLICY_OBJECT ](https://www.google.com/search?num=5&q=GROUP_POLICY_OBJECT+site%3Adocs.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%3Adocs.microsoft.com ) | profinfo.h | [Vanara.PInvoke.UserEnv.PROFILEINFO ](https://github.com/dahall/Vanara/search?l=C%23&q=PROFILEINFO )
2020-12-24 13:00:18 -05:00
### Classes
Native Class | Header | Managed Class
--- | --- | ---
[SafeCriticalPolicySectionHandle ](https://www.google.com/search?num=5&q=SafeCriticalPolicySectionHandle+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.UserEnv.SafeCriticalPolicySectionHandle ](https://github.com/dahall/Vanara/search?l=C%23&q=SafeCriticalPolicySectionHandle )