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
LoadUserProfile
..msdn    Add comment     W32 Constants      Translate this page
Loads the specified user"s profile. The profile can be a local user profile or a roaming user profile.
Code examples:
How to load a user profile
Declaration:
BOOL WINAPI LoadUserProfile(
  _In_     HANDLE hToken,
  _Inout_  LPPROFILEINFO lpProfileInfo
);
FoxPro declaration:
DECLARE INTEGER LoadUserProfile IN userenv;
    INTEGER hToken,;
    INTEGER lpProfileInfo
Parameters:
hToken [in]
Type: HANDLE
Token for the user, which is returned by the LogonUser, CreateRestrictedToken, DuplicateToken, OpenProcessToken, or OpenThreadToken function.

lpProfileInfo [in, out]
Type: LPPROFILEINFO
Pointer to a PROFILEINFO structure.
Return value:
TRUE if successful; otherwise, FALSE.
My comment:
LoadUserProfile fails and returns ERROR_INVALID_PARAMETER if the dwSize member of the structure is not set to sizeof(PROFILEINFO) or if the lpUserName member is NULL.

See also: UnloadUserProfile
Word Index links for the LoadUserProfile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-03-12 08:52:44
Modified: 2015-03-12 09:03:02
Visited in last 7 days: 78
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.203.76)
4 sec.
Function group: 'Remote Access Service (RAS)'
9 sec.Function: 'RegQueryInfoKey'
14 sec.Function: 'GetWindowRgnBox'
19 sec.
Function group: 'Clipboard'
24 sec.Function: 'MAPIFreeBuffer'
30 sec.Function: 'FindNextFile'
35 sec.Function: 'SearchPath'
41 sec.Function: 'SetSearchPathMode'
47 sec.Function: 'GetProcAddress'
53 sec.Function: 'PlaySound'
Google
Advertise here!