Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>dragqueryfile()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DragQueryFile()
Returns the file name of a dropped file
------------------------------------------------------------------------------

Syntax
DragQueryFile( <hDrop> , <nIndex>, @<cFileName>, <nLength> )
        -->   nResult

Arguments
<hDrop> is the handle of an internal structure containing
information about dropped files, and is passed as the nwParam
of a WM_DROPFILES message.

<nIndex> specifies the dropped file whose information will be
retrieved.  If <nIndex> is -1, the total number of dropped
files is returned.

@<cFileName> is the string that will receive the name of the
dropped file, or a numeric zero (0).  If this parameter is
zero (0), and <nIndex> is between zero and the total number of
files dropped, the length of the appropriate file name is
returned.

<nLength> specifies the maximum number of bytes that will be
retrieved in the @<cFileName> string.

Returns
The numeric value returned depends on the parameters passed
(see above).

Description
This function is used when a WM_DROPFILES message is received,
to determine the number or names of files that were dropped.
Note that @<cFileName> should be passed by reference so it can
be changed.

Example
See source\drop.prg and related files.

See Also: DragAcceptFiles() DragFinish() DragQueryPoint()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson