*
Microsoft.com Home|Site Map
MSDN*
|Developer Centers|Library|Downloads|Code Center|Subscriptions|MSDN Worldwide
Search for


Advanced Search

MSDN Home MSDN Home
MSDN Home > Visual Studio > Previous Versions > Visual SourceSafe > Using > Visual SourceSafe OLE Automation Constants

Visual SourceSafe OLE Automation Constants

The following constants are used in the OLE Automation for Visual SourceSafe:

ConstantValueMeaning
Use these constants to set a file's read-only flag. Only one constant from this group may be used at a time, but we recommend you DO NOT USE this constant at all (it is too easy to use it incorrectly).
VSSFLAG_USERRONO
VSSFLAG_USERROYES
0x00000001
0x00000002
Set read-only flag to OFF.
Set read-only flag to ON (the default).
Use these constants to specify a file's timestamp. Usually used during a Get operation.. Only one constant from this group may be used at a time.
VSSFLAG_TIMENOW
VSSFLAG_TIMEMOD
VSSFLAG_TIMEUPD
0x00000004
0x00000008
0x0000000c
Timestamp uses the current time (the default).
Timestamp uses the last modified time.
Timestamp uses the last checkin time.
Use these constants to specify end-of-line options. Only one constant from this group may be used at a time.
VSSFLAG_EOLCR
VSSFLAG_EOLLF
VSSFLAG_EOLCRLF
0x00000010
0x00000020
0x00000030
Carriage-return character only.
Line feed character only.
Carriage return/line feed pair (the default).
Use these constants to to specify local machine action for writable files. Only one constant from this group may be used at a time.
VSSFLAG_REPASK
VSSFLAG_REPREPLACE
VSSFLAG_REPSKIP
VSSFLAG_REPMERGE
0x00000040
0x00000080
0x000000c0
0x00000100
Ask the user (via a dialog box—the default).
Replace writable files
Skip writable files
Merge changes into writable files.
Use these constants to specify difference comparison mechanism. Only one constant from this group may be used at a time. Use of the default checksum comparison is recommended.
VSSFLAG_CMPFULL
VSSFLAG_CMPTIME
VSSFLAG_CMPCHKSUM
VSSFLAG_CMPFAIL
0x00000200
0x00000400
0x00000600
0x00000800
Full text comparison
Timestamp comparison
Checksum comparison (the default).
Do not allow comparison.
Use these constants to to specify whether the operation is recursive or non-recursive. Only one constant from this group may be used at a time.
VSSFLAG_RECURSNO
VSSFLAG_RECURSYES
0x00001000
0x00002000
Non-recursive operation (the default).
Recursive operation.
Use these constants to o specify whether to override working folder settings or not. Only one constant from this group may be used at a time.
VSSFLAG_FORCEDIRNO
VSSFLAG_FORCEDIRYES
0x00004000
0x00008000
Override working folder specifications.
Do not override specifications (the default).
Use these constants to to specify whether to keep a file checked out during a Checkin operation. Only one constant from this group may be used at a time.
VSSFLAG_KEEPNO
VSSFLAG_KEEPYES
0x00010000
0x00020000
Do not keep the file checked out (the default).
Keep the file checked out.
Use these constants to to specify whether a file is deleted on checkin. Only one constant from this group may be used at a time.
VSSFLAG_DELNO
VSSFLAG_DELYES
VSSFLAG_DELNOREPLACE
0x00040000
0x00080000
0x000c0000
Not deleted (the default).
Deleted.
Replaced.
Use these constants to specify whether a file is binary or text. SourceSafe looks for embedded NULL characters during the test to determine type. Only one constant from this group may be used at a time.
VSSFLAG_BINTEST
VSSFLAG_BINBINARY
VSSFLAG_BINTEXT
0x00100000
0x00200000
0x00300000
Test for type (the default).
Mark file as binary.
Mark file as text.
Use these constants to specify whether to keep all versions of a file, or just the last version. Only one constant from this group may be used at a time.
VSSFLAG_DELTAYES
VSSFLAG_DELTANO
0x00400000
0x00800000
Keep all versions of a file.
Keep just the last version.
Use these constants to specify whether to update an unchanged file being checked in. Only one constant from this group may be used at a time.
VSSFLAG_UPDASK
VSSFLAG_UPDUPDATE
VSSFLAG_UPDUNCH
0x01000000
0x02000000
0x03000000
Ask the user
Update the file
Undo check out on the file.
Use these constants to specify whether to get the file to the user's computer during a checkout operation. Only one constant from this group may be used at a time.
VSSFLAG_GETYES
VSSFLAG_GETNO
0x04000000
0x08000000
Get the file
Do not get the file.
Use these constants to specify whether to exclusively check out a file. Only one constant from this group may be used at a time.
VSSFLAG_CHKEXCLUSIVEYES
VSSFLAG_CHKEXCLUSIVENO
0x10000000
0x20000000
Check out a file exclusively.
Check out a file non-exclusively (allow multiple checkouts).
Use this constant to specify project level history events only.
VSSFLAG_HISTIGNOREFILES0x40000000Ignore file level history events.
Use these flags to test the status bit returned by IsCheckout method. Only one flag from this group may be used at a time.
VSSFILE_NOTCHECKEDOUT
VSSFILE_CHECKEDOUT
VSSFILE_CHECKEDOUT_ME
0
1
2
Indicates the file is checked out.
Indicates the file is not checked out.
Indicates check out by a specific user.
Use these flags to test the status bit returned by Type method on VSSItem.. Only one flag from this group may be used at a time.
VSSITEM_PROJECT
VSSITEM_FILE
0
1
Indicates the item is a project.
Indicates the item is a file.

Top of Page Top of Page


©2004 Microsoft Corporation. All rights reserved. Terms of Use |Trademarks |Privacy Statement
Microsoft