A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



FindExecutable

The FindExecutable function retrieves the name and handle to the executable (.EXE) file associated with the specified filename.

VB4-32,5,6
Declare Function FindExecutable Lib "shell32.dll" Alias "FindExecutableA" (ByVal lpFile As String, ByVal lpDirectory As String, ByVal lpResult As String) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Shell32

Parameter Information
- lpFile
Pointer to a null-terminated string specifying a filename. This can be a document or executable file.

- lpDirectory
Pointer to a null-terminated string specifying the default directory.

- lpResult
Pointer to a buffer to receive the filename when the function returns. This filename is a null-terminated string specifying the executable file started when an “open” association is run on the file specified in the lpFile parameter.

Return Values
When FindExecutable returns, the lpResult parameter may contain the path to the DDE server started if no server responds to a request to initiate a DDE conversation.

Last update: 07 April 2006