SccCheckin Function


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

This function checks in previously checked-out files to the source control system, storing the changes and creating a new version. This function is called with a count and an array of names of the files to be checked in.

SCCRTN SccCheckin (  
   LPVOID    pvContext,  
   HWND      hWnd,  
   LONG      nFiles,  
   LPSTR*    lpFileNames,  
   LPCSTR    lpComment,  
   LONG      fOptions,  
   LPCMDOPTS pvOptions  


[in] The source control plug-in context structure.

[in] A handle to the IDE window that the SCC plug-in can use as a parent for any dialog boxes that it provides.

[in] Number of files selected to be checked in.

[in] Array of fully qualified local path names of files to be checked in.

[in] Comment to be applied to each of the selected files being checked in. This is NULL if the source control plug-in should prompt for a comment.

[in] Command flags, either 0 or SCC_KEEP_CHECKEDOUT.

[in] SCC plug-in-specific options.

The source control plug-in implementation of this function is expected to return one of the following values:

SCC_OKFiles was successfully checked in.
SCC_E_FILENOTCONTROLLEDThe selected file is not under source code control.
SCC_E_ACCESSFAILUREThere was a problem accessing the source control system, probably due to network or contention issues. A retry is recommended.
SCC_E_NONSPECIFICERRORNonspecific failure. File was not checked in.
SCC_E_NOTCHECKEDOUTThe user has not checked out the file, so cannot check it in.
SCC_E_CHECKINCONFLICTCheckin could not be performed because:

- Another user has checked in ahead and bAutoReconcile was false.


- The auto-merge cannot be done (for example, when files are binary).
SCC_E_VERIFYMERGEFile has been auto-merged but has not been checked in pending user verification.
SCC_E_FIXMERGEFile has been auto-merged but has not been checked in due to a merge conflict that must be manually resolved.
SCC_E_NOTAUTHORIZEDThe user is not allowed to perform this operation.
SCC_I_OPERATIONCANCELEDOperation was cancelled before completion.
SCC_I_RELOADFILEA file or project needs to be reloaded.
SCC_E_FILENOTEXISTLocal file was not found.

The comment applies to all files being checked in. The comment argument can be a null string, in which case the source control plug-in can prompt the user for a comment string for each file.

The fOptions argument can be given a value of the SCC_KEEP_CHECKEDOUT flag to indicate the user's intent to check the file in and check it out again.

Source Control Plug-in API Functions