FILEDESCRIPTORFILEDESCRIPTOR*
*Contents  *Index  *Topic Contents
*Previous Topic: EXT_BUTTON
*Next Topic: FILEGROUPDESCRIPTOR

FILEDESCRIPTOR

Describes the properties of a file that is being copied by means of the clipboard during an OLE drag-and-drop operation.

Syntax

typedef struct _FILEDESCRIPTOR { 
    DWORD    dwFlags; 
    CLSID    clsid; 
    SIZEL    sizel; 
    POINTL   pointl; 
    DWORD    dwFileAttributes; 
    FILETIME ftCreationTime; 
    FILETIME ftLastAccessTime; 
    FILETIME ftLastWriteTime; 
    DWORD    nFileSizeHigh; 
    DWORD    nFileSizeLow; 
    TCHAR    cFileName[MAX_PATH]; 
} FILEDESCRIPTOR, *LPFILEDESCRIPTOR; 

Members

dwFlags
Array of flags that indicate which of the other structure members contain valid data. This member can be a combination of the following values:
FD_ACCESSTIMEThe ftLastAccessTime member is valid.
FD_ATTRIBUTESThe dwFileAttributes member is valid.
FD_CLSIDThe clsid member is valid.
FD_CREATETIMEThe ftCreationTime member is valid.
FD_FILESIZEThe nFileSizeHigh and nFileSizeLow members are valid.
FD_LINKUITreat the operation as "Link."
FD_SIZEPOINTThe sizel and pointl members are valid.
FD_WRITESTIMEThe ftLastWriteTime member is valid.
clsid
File class identifier.
sizel
Width and height of the file icon.
pointl
Screen coordinates of the file object.
dwFileAttributes
File attribute flags. This will be a combination of the FILE_ATTRIBUTE_ values described in GetFileAttributes.
ftCreationTime
FILETIME structure that contains the time of file creation.
ftLastAccessTime
FILETIME structure that contains the time that the file was last accessed.
ftLastWriteTime
FILETIME structure that contains the time of the last write operation.
nFileSizeHigh
High-order DWORD of the file size, in bytes.
nFileSizeLow
Low-order DWORD of the file size, in bytes.
cFileName
Null-terminated string that contains the name of the file.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.