Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
LoadUserProfile
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
UnloadUserProfile
WinHelp
Code examples:
How to load a user profile
UnloadUserProfile
..msdn    Add comment     W32 Constants      Translate this page
Unloads a user"s profile that was loaded by the LoadUserProfile function.
Code examples:
How to load a user profile
Declaration:
BOOL WINAPI UnloadUserProfile(
  _In_  HANDLE hToken,
  _In_  HANDLE hProfile
);
FoxPro declaration:
DECLARE UnloadUserProfile IN userenv;
    INTEGER hToken,;
    INTEGER hProfile
Parameters:
hToken [in]
Type: HANDLE
Token for the user, returned from the LogonUser, CreateRestrictedToken, DuplicateToken, OpenProcessToken, or OpenThreadToken function.

hProfile [in]
Type: HANDLE
Handle to the registry key. This value is the hProfile member of the PROFILEINFO structure.
Return value:
TRUE if successful; otherwise, FALSE.
My comment:
Before calling UnloadUserProfile you should ensure that all handles to keys that you have opened in the user"s registry hive are closed. If you do not close all open registry handles, the user"s profile fails to unload.

See also: LoadUserProfile
Word Index links for the UnloadUserProfile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-03-12 08:55:52
Modified: 2015-03-12 09:02:42
Visited in last 7 days: 70
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.245.10)
14 sec.Function: 'FillConsoleOutputAttribute'
28 sec.Function: 'ShowHTMLDialog'
41 sec.Function: 'ImageList_GetImageCount'
55 sec.Function: 'GetCurrentThread'
1.15 min.Function: 'CommDlgExtendedError'
1.37 min.Function: 'GetShellWindow'
1.6 min.Function: 'PathGetShortPath'
1.87 min.Function: 'CeRemoveDirectory'
2.12 min.Function: 'GetCurrentThread'
2.37 min.Function: 'GdipBitmapGetPixel'
Google
Advertise here!