This function adds new files to the source control system.
[in] The source control plug-in context structure.
[in] A handle to the IDE window that the source control plug-in can use as a parent for any dialog boxes that it provides.
[in] Number of files selected to be added to the current project as given in the lpFileNames array.
[in] Array of fully qualified local names of files to be added.
[in] The comment to be applied to all of the files being added.
[in] Array of command flags, provided on a per-file basis.
[in] Source control plug-in-specific options.
The source control plug-in implementation of this function is expected to return one of the following values:
The add operation was successful.
The selected file is already under source control.
The type of the file (for example, binary) is not supported by the source control system.
The source control system does not support this operation.
There was a problem accessing the source control system, probably due to network or contention issues. A retry is recommended.
The user is not allowed to perform this operation.
Nonspecific failure; add not performed.
The operation was cancelled before completion.
A file or project needs to be reloaded.
Local file was not found.
The usual fOptions are replaced here by an array, pfOptions, with one LONG option specification per file. This is because the file type may vary from file to file.
It is invalid to specify both SCC_FILETYPE_TEXT and SCC_FILETYPE_BINARY options for the same file, but it is valid to specify neither. Setting neither is the same as setting SCC_FILETYPE_AUTO, in which case the source control plug-in autodetects the file type.
Below is the list of flags used in the pfOptions array:
The source control plug-in should detect the file type.
Indicates an ASCII text file.
Indicates a file type other than ASCII text.
Stores only the latest copy of the file, no deltas.
Treats the file as ANSI text.
Treats the file as Unicode text in UTF8 format.
Treats the file as Unicode text in UTF16 Little Endian format.
Treats the file as Unicode text in UTF16 Big Endian format.