Private 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 nShowCmd As Long) As Long
The significance of each of these parameters is shown in the following table:
parameter
significance
HWndlong, specify a handle of a window, sometimes the Windows program wants to display a message box lpopertsString before creating its own main window, specify the string "Open" to open the LPFLIE document, or specify "print" to print it LPFileString, want to use the association program Print or open a program name or file name LPParameterString, such as LPSZFLIE is an executable file, then this string contains the parameter lpdirectoryString that passes the execution program, and the full path NSHOWCMDLONG wants to use, define how to display the constant value of the launcher