FILEPATHS

The FILEPATHS structure stores source and target path information. The setup functions send the FILEPATHS structure as a parameter in several of the notifications sent to callback routines. For more information, see Notifications.

typedef struct _FILEPATHS {
    PCTSTR Target;
    PCTSTR Source;  
    UINT   Win32Error;
    DWORD  Flags; 
} FILEPATHS, *PFILEPATHS;
 

Members

Target
The path to the target file.
Source
The path to the source file. This member is not used when the FILEPATHS structure is used with a file delete operation.
Win32Error
If an error occurs, this parameter takes the Win32 error value associated with the specified paths. If no error has occurred, it takes the value NO_ERROR.
Flags
Specifies additional information that depends on the notification sent with the FILEPATHS structure.

For SPFILENOTIFY_COPYERROR notifications, Flags specifies dialog box behavior and can be one of the following values.

SP_COPY_WARNIFSKIP
Inform the user that skipping the file may affect the installation.
SP_COPY_NOSKIP
Do not offer the user the option to skip the file.
SP_COPY_NOBROWSE
Do not offer the user the option to browse.

For SPFILENOTIFY_FILEOPDELAYED notifications, Flags specifies the type of file operation delayed and can be one of the following values.
FILEOP_DELETE A file delete operation was delayed.
FILEOP_COPY A file copy operation was delayed.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in setupapi.h.

See Also

Overview, Structures