ShellExecute
API: Lets Windows start another application
Syntax
ShellExecute( HWND, lpOperation, lpFile, lpParameters, lpDirectory, lpnShowCmd )
Parameters
Name | Type | Description |
---|---|---|
HWND | Long | Required. |
lpOperation | String | Required. |
lpFile | String | Required. |
lpParameters | String | Required. |
lpDirectory | String | Required. |
lpnShowCmd | Long | Required. |
Return value
Long
Code
Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" _
(ByVal HWND As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal lpnShowCmd As Long) As Long
Remarks
- This API is used to start another program in function StartAppl.
See also
- StartAppl