Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "DeleteProfile" in [All]

userenv

. .
Summary
The DeleteProfile function deletes the user profile and all user-related settings from the specified computer. The caller must have administrative privileges to delete a user's profile.
.

private static extern int DeleteProfile(string lpSidString, string lpProfilePath, string lpComputerName);

.

    int retValue = DeleteProfile(oSid.SidString, null, "SERVER01");

.
Documentation
[DeleteProfile] on MSDN
.
Summary
The DeleteProfile function deletes the user profile and all user-related settings from the specified computer. The caller must have administrative privileges to delete a user's profile.
.

static extern bool DeleteProfile(string lpSidString, string lpProfilePath, lpComputerName);

.
Documentation
[DeleteProfile] on MSDN

wlanapi

.

public static extern uint WlanDeleteProfile(IntPtr hClientHandle,ref Guid pInterfaceGuid,string strProfileName,IntPtr pReserved);

.

Declare Function WlanDeleteProfile Lib "wlanapi.dll" (TODO) As TODO

.
Documentation
[WlanDeleteProfile] on MSDN

 
Access PInvoke.net directly from VS: