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:
Accessing the list of Windows Recent Documents
How to find the application associated with a file name
How to make application automatically close all documents it opened
FindExecutable
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the name of and handle to the executable (.exe) file associated with the specified file name.
Code examples:
How to make application automatically close all documents it opened
How to find the application associated with a file name
Accessing the list of Windows Recent Documents
Declaration:
HINSTANCE FindExecutable(
    LPCTSTR lpFile,
    LPCTSTR lpDirectory,
    LPTSTR lpResult
);

FoxPro declaration:
DECLARE INTEGER FindExecutable IN shell32;
    STRING lpFile,;
    STRING lpDirectory,;
    STRING @lpResult
Parameters:
lpFile
Address of a null-terminated string specifying a file name. This should be a document.

lpDirectory
Address of a null-terminated string specifying the default directory.

lpResult
Address of a buffer to receive the file name when the function returns.
Return value:
Returns a value greater than 32 if successful, or a value less than or equal to 32 otherwise.
Usage:
#DEFINE MAX_PATH 260

PROCEDURE FindExecutable( cPath As String ) As String
    LOCAL cBuffer
    cBuffer = REPLICATE( CHR(0), MAX_PATH )
    FindExecutable( cPath, NULL, @cBuffer) 
RETURN STRTRAN( m.cBuffer, CHR(0), "" )
My comment:
See also: ShellExecute, AssocQueryString
Word Index links for the FindExecutable :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-07 12:00:00
Modified: 2012-10-12 13:22:54
Visited in last 7 days: 27
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.81.178.153)
14 sec.Function: 'ws_select'
28 sec.Function: 'CeGetLastError'
41 sec.Function: 'SHGetSpecialFolderLocation'
53 sec.Function: 'StartPage'
1.08 min.Function: 'GetSystemPowerStatus'
1.3 min.Function: 'GdipReleaseDC'
1.52 min.Function: 'MAPISendDocuments'
1.72 min.Function: 'LsaClose'
Function group: 'Security'
1.9 min.Function: 'GdipDisposeImage'
2.12 min.Function: 'WSACloseEvent'
Google
Advertise here!