Desktop Functions: Smart Device Functions:
|
CreateProfile (userenv)
C# Signature:[DllImport("userenv.dll", SetLastError = true, CharSet = CharSet.Auto)]static extern int CreateProfile( [MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath); VB Signature:User-Defined Types:None. Alternative Managed API:Do you know one? Please contribute it! Notes:None. Tips & Tricks:pszProfilePath's capacity must not exceed 260 characters or CreateProfile will return error code 0x800706f7. Sample Code:
using (System.Security.Principal.WindowsIdentity i = new System.Security.Principal.WindowsIdentity(token)) Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|