NativeMethods.DragQueryFile Method

Retrieves the names of dropped files that result from a successful drag-and-drop operation.

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Shared Function DragQueryFile ( _
    hDrop As IntPtr, _
    iFile As UInteger, _
    lpszFile As Char(), _
    cch As UInteger _
) As UInteger
'Usage
Dim hDrop As IntPtr
Dim iFile As UInteger
Dim lpszFile As Char()
Dim cch As UInteger
Dim returnValue As UInteger

returnValue = NativeMethods.DragQueryFile(hDrop, _
    iFile, lpszFile, cch)
public static uint DragQueryFile(
    IntPtr hDrop,
    uint iFile,
    char[] lpszFile,
    uint cch
)
public:
static unsigned int DragQueryFile(
    IntPtr hDrop, 
    unsigned int iFile, 
    array<wchar_t>^ lpszFile, 
    unsigned int cch
)
public static function DragQueryFile(
    hDrop : IntPtr, 
    iFile : uint, 
    lpszFile : char[], 
    cch : uint
) : uint
static member DragQueryFile : 
        hDrop:IntPtr * 
        iFile:uint32 * 
        lpszFile:char[] * 
        cch:uint32 -> uint32 

Parameters

  • hDrop
    Type: System.IntPtr
    Identifier of the structure that contains the file names of the dropped files.
  • iFile
    Type: System.UInt32
    Index of the file that you want to query.
  • lpszFile
    Type: array<System.Char[]
    A buffer containing the file name of a dropped file.
  • cch
    Type: System.UInt32
    The size, in characters, of the lpszFile buffer.

Return Value

Type: System.UInt32

.NET Framework Security

See Also

Reference

NativeMethods Class

NativeMethods Members

Microsoft.VisualStudio Namespace