Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell Functions
 DragAcceptFiles Function

  Switch on low bandwidth view
DragAcceptFiles Function

Registers whether a window accepts dropped files.

Syntax

VOID DragAcceptFiles(      
    HWND hWnd,     BOOL fAccept );

Parameters

hWnd
The identifier of the window that is registering whether it will accept dropped files.
fAccept
A value that indicates if the window identified by the hWnd parameter accepts dropped files. This value is TRUE to accept dropped files or FALSE to discontinue accepting dropped files.

Return Value

No return value.

Remarks

An application that calls DragAcceptFiles with the fAccept parameter set to TRUE has identified itself as able to process the WM_DROPFILES message from File Manager.

Function Information

Minimum DLL Versionshell32.dll version 4.0 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.lib
Minimum operating systems Windows NT 3.1, Windows 95
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
vb.net syntax      dmex   |   Edit   |   Show History
<DllImport("shell32.dll", CharSet:=CharSet.Ansi, ExactSpelling:=True)> Public Shared Sub DragAcceptFiles(ByVal hWnd As HandleRef, ByVal fAccept As Boolean)
End Sub
Tags What's this?: Add a tag
Flag as ContentBug
C# syntax      dmex   |   Edit   |   Show History
[DllImport("shell32.dll", CharSet=CharSet.Ansi, ExactSpelling=true)]
public static extern void DragAcceptFiles(HandleRef hWnd, bool fAccept);
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker