TCDVcsCheckInFile
Return to Introduction  Previous page  Next page
Add or checkin a file.

Delphi (TCDirectIntf.pas)

function VcsCheckInFile( ProjID, FolderID: Cardinal; var FileID, RevisionID: Cardinal; FileName: String; CheckInInfo: PCheckInInfo ): Integer;  

Parameters

Name
Description
ProjID
If adding a new file, this should be the ID of the project you are adding the file to. Otherwise it should be zero.
FolderID
If adding a new file, this should be the ID of the folder you are adding the file to. Otherwise it should be zero.
FileID (In/Out)
If this is an existing file, this should contain the FileID of the file. If it is a new file, this will return the ID of the newly added file.
FileName
The full path to the local copy of the file
CheckInInfo
A pointer to a structure that contains checkin information.


Return Value

Err_OK if successful or an error code indicating the error.

Remarks

The pointer PCheckInInfo points to a structure that contains checkin information, including comments. There is a utility function, InitializeCheckInInfo, that will initialize the memory required for this pointer and a function, ReleaseCheckInInfo , that releases the memory.

Exported

function TCDVcsCheckInFile( ProjID, FolderID: Cardinal; var FileID, RevisionID: Cardinal; pFileName: PChar; CheckInInfo: PCheckInInfo ): Integer; stdcall;  


 


© 1995-2018 MCN Software