SccGetUserOption Function

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SccGetUserOption Function.

This function retrieves a variety of user-specific options.

SCCRTN SccGetUserOption(  
   LPVOID pContext,  
   LONG nOption,  
   LPLONG lpVal  
);  

Parameters

pContext
[in] The source control plug-in context pointer.

nOption
[in] Option to retrieve (see Remarks for possible options).

lpVal
[out] Value associated with option.

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

ValueDescription
SCC_OKOption was retrieved successfully.
SCC_E_OPNOTSUPPORTEDOption is not supported.
SCC_E_NONSPECIFICERRORAn unspecified error occurred.

The following options are supported by this command:

User OptionDescription
SCC_USEROPT_CHECKOUT_LOCALVERDetermines whether the user wants to check out local version of files. lpVal is assigned SCC_USEROPT_COLV_YES (user wants to check out local files) or SCC_USEROPT_COLV_NO.

Source Control Plug-in API Functions
Error Codes

Show: