Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The SPFILENOTIFY_TARGETNEWER notification is sent to the callback routine if the file to be copied was queued with the SP_COPY_NEWER or SP_COPY_FORCE_NEWER flags specified and a newer version of the file already exists in the target directory. It can be sent to the callback routine alone or ORed together with SPFILENOTIFY_LANGMISMATCH and/or SPFILENOTIFY_TARGETEXISTS.
SPFILENOTIFY_TARGETNEWER
Param1 = (UINT) FilePathInfo;
Param2 = (UINT) 0;
Param1
Pointer to a FILEPATHS structure that contains information about the paths for source and target files.
Param2
This parameter is not used unless this notification is combined, by using the OR operator, with SPFILENOTIFY_LANGMISMATCH.
The callback routine should return one of the following values.
Return code | Description |
---|---|
|
Overwrite the file in the target directory. |
|
Skip the current copy operation. |
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today