Compartir a través de


NativeMethods.ShellExecute Method

Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Usage

'Usage
Dim hWnd As IntPtr
Dim lpOperation As String
Dim lpFile As String
Dim lpParameters As String
Dim lpDirectory As String
Dim nShowCmd As Integer
Dim returnValue As Integer

returnValue = NativeMethods.ShellExecute(hWnd, lpOperation, lpFile, lpParameters, lpDirectory, nShowCmd)

Syntax

'Declaration
Public Shared Function ShellExecute ( _
    hWnd As IntPtr, _
    lpOperation As String, _
    lpFile As String, _
    lpParameters As String, _
    lpDirectory As String, _
    nShowCmd As Integer _
) As Integer
public static int ShellExecute (
    IntPtr hWnd,
    string lpOperation,
    string lpFile,
    string lpParameters,
    string lpDirectory,
    int nShowCmd
)
public:
static int ShellExecute (
    IntPtr hWnd, 
    String^ lpOperation, 
    String^ lpFile, 
    String^ lpParameters, 
    String^ lpDirectory, 
    int nShowCmd
)
public static int ShellExecute (
    IntPtr hWnd, 
    String lpOperation, 
    String lpFile, 
    String lpParameters, 
    String lpDirectory, 
    int nShowCmd
)
public static function ShellExecute (
    hWnd : IntPtr, 
    lpOperation : String, 
    lpFile : String, 
    lpParameters : String, 
    lpDirectory : String, 
    nShowCmd : int
) : int

Parameters

  • hWnd
  • lpOperation
  • lpFile
  • lpParameters
  • lpDirectory
  • nShowCmd

Return Value

Type: Int32

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

NativeMethods Class
NativeMethods Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.