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 display the Properties dialog box for a file (ShellExecuteEx)
ShellExecuteEx
..msdn    Add comment     W32 Constants      Translate this page
Performs an action on a file.
Code examples:
How to display the Properties dialog box for a file (ShellExecuteEx)
Declaration:
BOOL ShellExecuteEx(
    LPSHELLEXECUTEINFO lpExecInfo
);
FoxPro declaration:
DECLARE INTEGER ShellExecuteEx IN Shell32;
    STRING @lpExecInfo
Parameters:
lpExecInfo
Address of a SHELLEXECUTEINFO structure that contains and receives information about the application being executed.
Return value:
Returns TRUE if successful, or FALSE otherwise.
My comment:
lpVerb in SHELLEXECUTEINFO Structure:
String, referred to as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object`s shortcut menu are available verbs.

cBuffer = num2dword(INFO_SIZE) +;
        num2dword(nFlag) +;
        num2dword(hWindow) +;
        num2dword(oVerb.GetAddr()) +;
        num2dword(oFile.GetAddr()) +;
        Repli(Chr(0), 40)

= ShellExecuteEx(@cBuffer)

The following verbs are commonly used:

edit
Launches an editor and opens the document for editing.

explore
Explores the folder specified by lpFile.

find
Initiates a search starting from the specified directory.

open
Opens the file specified by the lpFile parameter. The file can be an executable file, a document file, or a folder.

print
Prints the document file specified by lpFile.

properties
Displays the file or folder`s properties.
Word Index links for the ShellExecuteEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-07-24 17:20:52
Modified: 2007-06-10 10:18:08
Visited in last 7 days: 17
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.196.72.162)
7 sec.
Function group: 'Handle and Object'
14 sec.Function: 'IcmpCloseHandle'
21 sec.Function: 'CopyMemory'
28 sec.Function: 'GdipGetPropertyItem'
36 sec.Function: 'GetVersion'
43 sec.Function: 'SetTextAlign'
54 sec.Function: 'PathBuildRoot'
1.05 min.Function: 'UnhookWindowsHookEx'
1.2 min.Function: 'InternetCanonicalizeUrl'
1.35 min.Function: 'DeregisterEventSource'
Google
Advertise here!