32位

  1. Private Declare Function ShellExecute Lib "shell32.dll" _
  2. Alias "ShellExecuteA" (ByVal hWnd As Long, _
  3. ByVal lpOperation As String, ByVal lpfile As String, _
  4. ByVal lpparameters As String, ByVal lpdirectory As String, _
  5. ByVal nshowcmd As Long) As Long

64位

  1. Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" _
  2. Alias "ShellExecuteA" (ByVal hwnd As Long, _
  3. ByVal lpOperation As String, ByVal lpFile As String, _
  4. ByVal lpParameters As String, ByVal lpDirectory As String, _
  5. ByVal nShowCmd As Long) As Long

参考文献