clsCommonWrapper.UniShellExecuteW FunctionPerforms an operation on a specified file. Check MSDN for detailsSyntax
Public Function UniShellExecuteW (ByVal hWnd As Long, _
ByVal sExecute As String, _ Optional ByVal iOperation As eCtlShellExec = esew_open, _ Optional ByVal sParameters As String = "", _ Optional ByVal sWorkingDir As String = "", _ Optional ByVal WindowStyle As VbAppWinStyle = vbNormalFocus) As Long Parameters
Remarks
If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.
In this sample we'll open the Google homepage using the default browser Option Explicit |